由于我添加了一个外部库,因此我遇到了模拟包的问题。
我已经尝试过这个:
-keep public class * extends android.content.pm.IPackageStatsObserver
-keep public class * implements android.content.pm.IPackageStatsObserver
-keepclassmembers class * {
public static android.content.pm.IPackageStatsObserver asInterface(android.os.IBinder);
}
和
-keep public class com.(namespace).corelib.** {*;}
-libraryjars libs/corelib.jar
-dontwarn com.(namespace).corelib.**
其中(命名空间)它是corelib域。
但是这个编译问题仍然存在:
[proguard] Reading program jar
[/mnt/data/jenkins/workspace/xxx/libs/corelib.jar]
BUILD FAILED
/home/jenkins/android-sdk-base/tools/ant/build.xml:875: Can't read
[/mnt/data/jenkins/workspace/xxx/libs/corelib.jar] (Can't process class
[android/content/pm/IPackageStatsObserver$Stub.class] (64000))