Android ProGuard error with org.xmlpull.v1.XmlPullParser

前端 未结 8 943
我寻月下人不归
我寻月下人不归 2021-02-05 09:36

When my application is build with ProGuard, it fails with following message. I use a default proguard.cfg generated by Android SDK with some -libraryjars. What can I do for it?<

8条回答
  •  自闭症患者
    2021-02-05 10:01

    Sometimes it happens when you include one of your test libraries as a regular module dependency. For example don't do:

    implementation 'com.android.support.test:runner:1.0.2' //wrong!!
    

    do:

    androidTestImplementation 'com.android.support.test:runner:1.0.2' //right (:
    

提交回复
热议问题