概述
支付宝混淆时报错:
Proguard returned with error code 1. See console
Note: there were 341 duplicate class definitions.
Warning: com.alipay.apmobilesecuritysdk.face.APSecuritySdk$RunningTask$1: can't find superclass or interface com.taobao.dp.client.IInitResultListener
Warning: com.alipay.apmobilesecuritysdk.face.APSecuritySdk: can't find referenced class com.taobao.dp.DeviceSecuritySDK
Warning: com.alipay.apmobilesecuritysdk.face.APSecuritySdk: can't find referenced class com.taobao.dp.DeviceSecuritySDK
Warning: com.alipay.apmobilesecuritysdk.face.APSecuritySdk: can't find referenced class com.taobao.dp.DeviceSecuritySDK
Warning: com.alipay.apmobilesecuritysdk.face.APSecuritySdk$RunningTask: can't find referenced class com.taobao.dp.DeviceSecuritySDK
Warning: com.alipay.apmobilesecuritysdk.face.APSecuritySdk$RunningTask: can't find referenced class com.taobao.dp.DeviceSecuritySDK
Warning: com.alipay.apmobilesecuritysdk.face.APSecuritySdk$RunningTask: can't find referenced class com.taobao.dp.DeviceSecuritySDK
Warning: com.alipay.apmobilesecuritysdk.face.APSecuritySdk$RunningTask: can't find referenced class com.taobao.dp.DeviceSecuritySDK
Warning: com.alipay.apmobilesecuritysdk.face.APSecuritySdk$RunningTask$1: can't find referenced class com.taobao.dp.client.IInitResultListener
You should check if you need to specify additional program jars.
Warning: there were 9 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars').
java.io.IOException: Please correct the above warnings first.
at proguard.Initializer.execute(Initializer.java:321)
at proguard.ProGuard.initialize(ProGuard.java:211)
at proguard.ProGuard.execute(ProGuard.java:86)
at proguard.ProGuard.main(ProGuard.java:492)
解决方案 :
在proguard_project.txt中加入红色内容
-libraryjars libs/alipaySDK-20151014.jar
-keep class com.alipay.android.app.IAlixPay{*;}
-keep class com.alipay.android.app.IAlixPay$Stub{*;}
-keep class com.alipay.android.app.IRemoteServiceCallback{*;}
-keep class com.alipay.android.app.IRemoteServiceCallback$Stub{*;}
-keep class com.alipay.sdk.app.PayTask{ public *;}
-keep class com.alipay.sdk.app.AuthTask{ public *;}
-keep class com.alipay.mobilesecuritysdk.*
-dontwarn com.alipay.apmobilesecuritysdk.face**
-keep class com.alipay.apmobilesecuritysdk.face.**{*;}
-keep class com.ut.*
最后
以上就是玩命皮皮虾为你收集整理的com.alipay.apmobilesecuritysdk.face.APSecuritySdk$RunningTask$1: can't find superclass or interface的全部内容,希望文章能够帮你解决com.alipay.apmobilesecuritysdk.face.APSecuritySdk$RunningTask$1: can't find superclass or interface所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复