无法忽略proguard警告

时间:2018-05-09 07:45:55

标签: proguard android-proguard detox

我正在尝试将Detox e2e测试添加到我的项目中,当我运行assembleAndroidTest时,我得到了未能构建的proguard警告:

Warning: library class android.content.Intent depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.content.IntentFilter depends on program class org.xmlpull.v1.XmlSerializer Warning: library class android.content.IntentFilter depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.graphics.drawable.BitmapDrawable depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.graphics.drawable.Drawable depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.util.Xml depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.util.Xml depends on program class org.xmlpull.v1.XmlSerializer Warning: library class android.util.Xml depends on program class org.xmlpull.v1.XmlPullParser Note: there were 13 unresolved dynamic references to classes or interfaces. You should check if you need to specify additional program jars. (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass) Note: there were 39 accesses to class members by means of introspection. You should consider explicitly keeping the mentioned class members (using '-keep' or '-keepclassmembers'). (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclassmember) Warning: there were 89 unresolved references to classes or interfaces. You may need to add missing library jars or update their versions. If your code works fine without the missing classes, you can suppress the warnings with '-dontwarn' options. (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass) Warning: there were 16 instances of library classes depending on program classes. You must avoid such dependencies, since the program classes will be processed, while the library classes will remain unchanged. (http://proguard.sourceforge.net/manual/troubleshooting.html#dependency)

找不到任何压缩它的dontwarn并允许我构建项目,This SO thread也没有用。

由于

0 个答案:

没有答案