Getting error while generating the .apk file if proguard is ON

前端 未结 2 1362
挽巷
挽巷 2021-02-06 19:06

I am using proguard to obfuscate the code. I am getting the following error in console

Proguard returned with error code 1. See console
Warning: org.apache.cordo         


        
2条回答
  •  轮回少年
    2021-02-06 19:21

    I fixed it by adding this in my proguard-project.txt

    -keep public class * extends com.phonegap.api.Plugin 
    -keep public class org.apache.cordova.DroidGap 
    -keep public class org.apache.cordova.** 
    -libraryjars /Users/Nasir/Desktop/libs/commons-codec.jar
    -dontwarn android.webkit.*
    

提交回复
热议问题