生成签名apk时出现Proguard错误

时间:2014-12-01 11:34:06

标签: android apk proguard signed

我正在使用最新的google play服务库项目,我在我的应用程序中定位android 17(4.2.2),而min SDK版本是android 11(3.0)。我使用邮件功能使用GMail发件人发送邮件,推送通知,还包括谷歌播放库服务jar文件和库项目,以支持谷歌地图和谷歌分析,以跟踪应用程序屏幕的可用性。在签署apk时,proguard显示此错误" com.google.android.gms.cast.TextTrackStyle:无法找到引用的类android.view.accessibility.CaptioningManager"。这是我的项目properties.txt文件

-libraryjars \libs\activation.jar
-libraryjars \libs\additionnal.jar
-libraryjars \libs\android-support-v4.jar
-libraryjars \libs\gcm.jar
-libraryjars \libs\libGoogleAnalyticsServices.jar
-libraryjars \libs\mail.jar
-libraryjars \NiceSupportMapFragment.jar
-libraryjars \nineoldandroids-library-2.4.0.jar
-libraryjars \libs\otr4j.jar

-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-verbose 

-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.app.Fragment
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService

-keep class android.support.v4.** { *; }   
-dontwarn android.support.v4.**
-dontwarn javax.activation.**
-dontwarn javax.security.**
-dontwarn java.awt.**

-keep class javax.** {*;}
-keep class com.sun.** {*;}
-keep class myjava.** {*;}
-keep class org.apache.harmony.** {*;}
-keep public class Mail {*;}    
-keep public class com.google.** {*;}    
-dontshrink


-keepclasseswithmembernames class * {
native <methods>;
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * extends java.util.ListResourceBundle {
    protected Object[][] getContents();
}

-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
    public static final *** NULL;
}

-keepnames @com.google.android.gms.common.annotation.KeepName class *

-keepclassmembernames class * {
    @com.google.android.gms.common.annotation.KeepName *;
}

-keepnames class * implements android.os.Parcelable {
    public static final ** CREATOR;
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}

0 个答案:

没有答案