1

私はdx.Jarandoridのツールを使用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に同様のオプションがありますか

4

0 に答える 0