4

我正在尝试将 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抑制它并允许我构建项目的东西,这个 SO 线程也不起作用。

谢谢

4

0 回答 0