我是靠谱客的博主 玩命皮皮虾,最近开发中收集的这篇文章主要介绍com.alipay.apmobilesecuritysdk.face.APSecuritySdk$RunningTask$1: can't find superclass or interface,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

支付宝混淆时报错:

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所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(63)

评论列表共有 0 条评论

立即
投稿
返回
顶部