Reputation: 1062
I have a problem after adding module Google cloud message. I get this error:
Error: Execution failed for task ': app: preDexRelease'.
> Com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process' command 'C: \ Program Files \ Java \ jdk1.8.0_45 \ bin \ java.exe' finished with non zero exit value 1
Deleting
compile project (path ': backend' configuration 'android-endpoints')
everything works perfectly.
What can I do?
Upvotes: 0
Views: 562
Reputation: 66
In my case I had both of these dependencies implemented:
compile 'com.google.android.gms:play-services:8.4.0'
compile project(path: ':backend', configuration: 'android-endpoints')
Somehow adding these two together causes the problem and I don't know why. Anyway I added the first dependency so that I can add Ads. I substituted it with:
'com.google.android.gms:play-services-ads:8.4.0'
and the problem is gone.
Upvotes: 2