Android Proguard - ClassNotFoundException

前端 未结 2 1616
轻奢々
轻奢々 2020-12-19 10:44

I enabled proguard for my android app. I can build the project successfully but it crashes on startup with classNotFoundException. It doesn\'t even find the launcher activit

2条回答
  •  一个人的身影
    2020-12-19 11:05

    You'll want to also make sure to add in the New Relic proguard exceptions found here: https://docs.newrelic.com/docs/mobile-monitoring/mobile-monitoring-installation/android/installing-android-apps-gradle-android-studio#proguard

    -keep class com.newrelic.** { *; }
    -dontwarn com.newrelic.**
    -keepattributes Exceptions, Signature, InnerClasses
    

提交回复
热议问题