0

After I added compile 'com.google.android.gms:play-services-gcm:7.+' to my project I can't generate release apk anymore.

Also, my Proguard_rules.pro is below:

-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.** {*;}

How to fix this error?!

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
ʍѳђઽ૯ท
  • 16,646
  • 7
  • 53
  • 108
Zahra.HY
  • 1,684
  • 1
  • 15
  • 25

1 Answers1

1

Okay, try this:

compile 'com.google.android.gms:play-services-gcm:8.4.0'

And try to change your ip to an another country because we or (iran's ip) is blocked for the reasons.

And like i said, after that you need to click on Install Repository and sync project For installing the specific(or needed) package.

ʍѳђઽ૯ท
  • 16,646
  • 7
  • 53
  • 108