添加播放服务后无法创建发布版本(使用 proguard)
Unable to create release build after adding play services(with proguard)
将编译 'com.google.android.gms:play-services-gcm:7.+'
添加到我的项目后,我无法再生成发布 apk。
另外,我的Proguard_rules.pro
如下:
-keepclassmembers class fqcn.of.javascript.interface.for.webview { public *;}
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
-keep class com.pushwoosh.** { *; }
-dontwarn com.pushwoosh.**
-keepattributes SourceFile,LineNumberTable
-keep class com.parse.*{ *; }
-dontwarn com.parse.**
-dontwarn com.squareup.picasso.**
-keepclasseswithmembernames class * { native <methods>;}
-keep public class com.google.android.gms.ads.** { public *;}
-keep public class com.google.ads.** { public *;}
-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 com.shephertz.** {*;}
如何解决这个错误?!
Error:Execution failed for task ':app:dexRelease'.>com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException: Process 'command 'C:\ProgramFiles\Java\jdk1.8.0_66\bin\java.exe'' finished with non-zero exit value 1
好的,试试这个:
compile 'com.google.android.gms:play-services-gcm:8.4.0'
并尝试把你的ip换成别的国家,因为我们或者(伊朗的ip)被封的原因。
就像我说的,之后你需要点击 Install Repository and sync project
用于安装特定的(或需要的)包。
将编译 'com.google.android.gms:play-services-gcm:7.+'
添加到我的项目后,我无法再生成发布 apk。
另外,我的Proguard_rules.pro
如下:
-keepclassmembers class fqcn.of.javascript.interface.for.webview { public *;}
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
-keep class com.pushwoosh.** { *; }
-dontwarn com.pushwoosh.**
-keepattributes SourceFile,LineNumberTable
-keep class com.parse.*{ *; }
-dontwarn com.parse.**
-dontwarn com.squareup.picasso.**
-keepclasseswithmembernames class * { native <methods>;}
-keep public class com.google.android.gms.ads.** { public *;}
-keep public class com.google.ads.** { public *;}
-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 com.shephertz.** {*;}
如何解决这个错误?!
Error:Execution failed for task ':app:dexRelease'.>com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException: Process 'command 'C:\ProgramFiles\Java\jdk1.8.0_66\bin\java.exe'' finished with non-zero exit value 1
好的,试试这个:
compile 'com.google.android.gms:play-services-gcm:8.4.0'
并尝试把你的ip换成别的国家,因为我们或者(伊朗的ip)被封的原因。
就像我说的,之后你需要点击 Install Repository and sync project
用于安装特定的(或需要的)包。