“Invalid signature file” when attempting to run a .jar

后端 未结 21 2255
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 05:34

My java program is packaged in a jar file and makes use of an external jar library, bouncy castle. My code compiles fine, but running the jar leads to the following error:

21条回答
  •  日久生厌
    2020-11-22 06:25

    If you're getting this when trying to bind JAR files for a Xamarin.Android bindings project like so:

    JARTOXML : warning J2XA006: missing class error was raised while reflecting com.your.class : Invalid signature file digest for Manifest main attributes

    Just open the JAR files using Winzip and delete the meta-inf directories. Rebuild - job done

提交回复
热议问题