私はdx.Jar
andoridのツールを使用wechat-SDKandroid-with-mta-5.1.6.Jar
してdexファイルにコンパイルし、プロジェクトに入れようとしています。
しかし、次の警告が表示されました。
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.tencent.mm.opensdk.diffdev.a.c) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
複数のバージョンの dx.jar ツール (1.16、1.7) を試し-- optimize
、 , no-strict
,keep-classes
コマンドも使用しました
java -jar dx.jar --dex --output=\JavaTempPath\classes.dex \wechat-sdk-android-with-mta-5.1.6.jar
また
java -jar dx.jar --dex --no-optimize --no-strict --keep-classes --output=\JavaTempPath\classes.dex \wechat-sdk-android-with-mta-5.1.6.jar
パッケージングにAndroidスタジオツールを使用していないことに注意してください.dx.jarツールを直接使用しているだけな-keepattributes EnclosingMethod
ので、proguardファイルに次のような命令を追加して整理することはできません. dx.jarに同様のオプションがありますか