Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
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
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

182 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Social.localUser.Authenticate((bool success) returns no bool 1 Answer

GPGS - How to check if a Saved Game file exists? 1 Answer

Google play services build error help me (android) :( 1 Answer

il2cpp unity build error 1 Answer

Google Play Services error 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges