我将编译'com.google.android.gms:play-services-gcm:7.+'
添加到我的项目后,我再也无法生成发布版了。
此外,我的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
答案 0 :(得分:1)
好的,试试这个:
compile 'com.google.android.gms:play-services-gcm:8.4.0'
并尝试将您的IP更改为另一个国家/地区,因为我们或(伊朗的IP)因为原因而被阻止。
就像我说的那样,之后你需要点击Install Repository and sync project
用于安装特定(或需要)的包。