Clone the project https://github.com/googlesamples/google-services/tree/master/android/gcm and everything works perfectly.
When I try to add the module "App Engine Backend with Google Cloud Messaging" with the wizard I get the following error:
Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.transform.api.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1
Now I try to add this in my build.gradle defaultConfig
multiDexEnabled true
and clean the project and recompile. But I always get the same error. Finally I try to delete the form from the project (thinking to resume normal functioning) but I get the following error:
Installing gcm.play.android.samples.com.gcmquickstart
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/gcm.play.android.samples.com.gcmquickstart"
pkg: /data/local/tmp/gcm.play.android.samples.com.gcmquickstart
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.example.gcm.permission.C2D_MESSAGE pkg=it.elipse.tnttrackingapp]
DEVICE SHELL COMMAND: pm uninstall gcm.play.android.samples.com.gcmquickstart
DELETE_FAILED_INTERNAL_ERROR
Could someone help me? to you taking the same steps you find yourself in my situation? Thank you in advance