- Home /
 
 
               Question by 
               Bimzy · Oct 30, 2017 at 08:27 AM · 
                androidgameobjectbuildgoogle playgoogle play games  
              
 
              CommandInvokationFailure: Gradle build failed.
Hi,
I've been struggling with this problem for hours now. I am trying to build to my android device, I have all of the SDK's and JDK's working because I have crated builds to my device in the past and published to the Google Play Console. I am trying to implement the Google Play Services onto my game so that i can have achievements and leader boards. However once i downloaded and imported the latest GPG package into my Unity scene it will no longer let me build to my device. The GPG version is 0.9.41 and i have already gone through the android setup for the GPG.
Here is my error:
 CommandInvokationFailure: Gradle build failed. 
 C:/Program Files (x86)/Java/jdk1.8.0_144\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-2.14.jar" org.gradle.launcher.GradleMain "assembleRelease"
 
 stderr[
 D:\GitHub\MonstersOfMayhem\MonstersOfMayhem\INB379 - Game Project\MonstersOfMayhem\Temp\gradleOut\GooglePlayGamesManifest.plugin\build\intermediates\bundles\release\aapt\AndroidManifest.xml:35:28-65: AAPT: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
     
 
 FAILURE: Build failed with an exception.
 
 * What went wrong:
 Execution failed for task ':GooglePlayGamesManifest.plugin:processReleaseResources'.
 > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\New\AppData\Local\Android\sdk\build-tools\27.0.0\aapt.exe'' finished with non-zero exit value 1
 
 * Try:
 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 ]
 stdout[
 Incremental java compilation is an incubating feature.
 :preBuild UP-TO-DATE
 :preReleaseBuild UP-TO-DATE
 :checkReleaseManifest
 :preDebugBuild UP-TO-DATE
 :GooglePlayGamesManifest.plugin:preBuild UP-TO-DATE
 :GooglePlayGamesManifest.plugin:preReleaseBuild UP-TO-DATE
 :GooglePlayGamesManifest.plugin:compileReleaseNdk UP-TO-DATE
 :GooglePlayGamesManifest.plugin:compileLint
 :GooglePlayGamesManifest.plugin:copyReleaseLint UP-TO-DATE
 :GooglePlayGamesManifest.plugin:mergeReleaseProguardFiles
 :GooglePlayGamesManifest.plugin:packageReleaseRenderscript UP-TO-DATE
 :GooglePlayGamesManifest.plugin:checkReleaseManifest
 :GooglePlayGamesManifest.plugin:prepareReleaseDependencies
 :GooglePlayGamesManifest.plugin:compileReleaseRenderscript
 :GooglePlayGamesManifest.plugin:generateReleaseResValues
 :GooglePlayGamesManifest.plugin:generateReleaseResources
 :GooglePlayGamesManifest.plugin:packageReleaseResources
 :GooglePlayGamesManifest.plugin:compileReleaseAidl
 :GooglePlayGamesManifest.plugin:generateReleaseBuildConfig
 :GooglePlayGamesManifest.plugin:mergeReleaseShaders
 :GooglePlayGamesManifest.plugin:compileReleaseShaders
 :GooglePlayGamesManifest.plugin:generateReleaseAssets
 :GooglePlayGamesManifest.plugin:mergeReleaseAssets
 :GooglePlayGamesManifest.plugin:processReleaseManifest
 :GooglePlayGamesManifest.plugin:processReleaseResources FAILED
 
 BUILD FAILED
 
 Total time: 8.208 secs
 ]
 exit code: 1
 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
 UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
 UnityEditor.Android.GradleWrapper.RunJava (System.String args, System.String workingdir, UnityEditor.Android.Progress progress)
 Rethrow as GradleInvokationException: Gradle build failed
 UnityEditor.Android.GradleWrapper.RunJava (System.String args, System.String workingdir, UnityEditor.Android.Progress progress)
 UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, UnityEditor.Android.Progress progress)
 UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
 UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
 
               Any help with this would be much appreciated.
Thanks, Branden.
               Comment
              
 
               
              Your answer