签署 Android 应用程序时出错 Proguard
Error Proguard when signing Android Aplication
我尝试使用 Proguard 签署我的 Android 应用程序,但出现这样的错误
[2015-01-28 12:04:22 - PriestsNDevils-android] Proguard returned with error code 1. See console
[2015-01-28 12:04:22 - PriestsNDevils-android] Warning: com.badlogic.gdx.sqlite.android.AndroidCursor: can't find referenced method 'void log(java.lang.String,java.lang.String,java.lang.Exception)' in class com.badlogic.gdx.Application
[2015-01-28 12:04:22 - PriestsNDevils-android] You should check if you need to specify additional program jars.
[2015-01-28 12:04:22 - PriestsNDevils-android] Warning: there were 1 unresolved references to program class members.
[2015-01-28 12:04:22 - PriestsNDevils-android] Your input classes appear to be inconsistent.
[2015-01-28 12:04:22 - PriestsNDevils-android] You may need to recompile them and try again.
[2015-01-28 12:04:22 - PriestsNDevils-android] Alternatively, you may have to specify the option
[2015-01-28 12:04:22 - PriestsNDevils-android] '-dontskipnonpubliclibraryclassmembers'.
[2015-01-28 12:04:22 - PriestsNDevils-android] java.io.IOException: Please correct the above warnings first.
[2015-01-28 12:04:22 - PriestsNDevils-android] at proguard.Initializer.execute(Initializer.java:321)
[2015-01-28 12:04:22 - PriestsNDevils-android] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-01-28 12:04:22 - PriestsNDevils-android] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-01-28 12:04:22 - PriestsNDevils-android] at proguard.ProGuard.main(ProGuard.java:492)
我必须做什么?
project.properties
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
target=android-19
我已经添加了proguard-android.txt
-dontwarn com.badlogic.gdx.sqlite.android.AndroidCursor.**
-dontwarn **CompatHoneycomb -keep public class * extends android.support.v4.app.Fragment
-dontwarn javax.jdo.** -dontwarn com.google.api.client.googleapis.extensions.android.gms.**
将以下行添加到您的 proguard-android.txt
-dontwarn com.badlogic.gdx.sqlite.android.AndroidCursor.**
尝试在 proguard .cfg 文件的末尾添加这一行
-dontwarn **CompatHoneycomb
-保持 public class * 扩展 android.support.v4.app.Fragment
-不要警告 javax.jdo。**
-dontwarn com.google.api.client.googleapis.extensions.android.gms.**
我尝试使用 Proguard 签署我的 Android 应用程序,但出现这样的错误
[2015-01-28 12:04:22 - PriestsNDevils-android] Proguard returned with error code 1. See console
[2015-01-28 12:04:22 - PriestsNDevils-android] Warning: com.badlogic.gdx.sqlite.android.AndroidCursor: can't find referenced method 'void log(java.lang.String,java.lang.String,java.lang.Exception)' in class com.badlogic.gdx.Application
[2015-01-28 12:04:22 - PriestsNDevils-android] You should check if you need to specify additional program jars.
[2015-01-28 12:04:22 - PriestsNDevils-android] Warning: there were 1 unresolved references to program class members.
[2015-01-28 12:04:22 - PriestsNDevils-android] Your input classes appear to be inconsistent.
[2015-01-28 12:04:22 - PriestsNDevils-android] You may need to recompile them and try again.
[2015-01-28 12:04:22 - PriestsNDevils-android] Alternatively, you may have to specify the option
[2015-01-28 12:04:22 - PriestsNDevils-android] '-dontskipnonpubliclibraryclassmembers'.
[2015-01-28 12:04:22 - PriestsNDevils-android] java.io.IOException: Please correct the above warnings first.
[2015-01-28 12:04:22 - PriestsNDevils-android] at proguard.Initializer.execute(Initializer.java:321)
[2015-01-28 12:04:22 - PriestsNDevils-android] at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-01-28 12:04:22 - PriestsNDevils-android] at proguard.ProGuard.execute(ProGuard.java:86)
[2015-01-28 12:04:22 - PriestsNDevils-android] at proguard.ProGuard.main(ProGuard.java:492)
我必须做什么?
project.properties
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
target=android-19
我已经添加了proguard-android.txt
-dontwarn com.badlogic.gdx.sqlite.android.AndroidCursor.**
-dontwarn **CompatHoneycomb -keep public class * extends android.support.v4.app.Fragment
-dontwarn javax.jdo.** -dontwarn com.google.api.client.googleapis.extensions.android.gms.**
将以下行添加到您的 proguard-android.txt
-dontwarn com.badlogic.gdx.sqlite.android.AndroidCursor.**
尝试在 proguard .cfg 文件的末尾添加这一行
-dontwarn **CompatHoneycomb -保持 public class * 扩展 android.support.v4.app.Fragment
-不要警告 javax.jdo。** -dontwarn com.google.api.client.googleapis.extensions.android.gms.**