• 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 /
  • Help Room /
avatar image
3
Question by shahnawazhussain2802 · Jul 19, 2021 at 05:42 PM · androidunity 2dbuild-errorcompiler error

Gradle Build failed unity 2020.3.14. incompatible daemon, commandInvocationFailure

I bought a new laptop. I've just installed Unity 2020.3.14f1. Installed the Android Studio for SDK, installed JDK and NDK too. Also downloaded the Gradle file. Set all the paths in unity. Then I tried to compile a game that I previously built in an older unity version, But this time it failed to build the game. When all the build process is almost completed, it hangs for a while and then throws an error "Gradle build failed, see console for details".

This is the console: ERROR MESSEGE

ERRORS: 1) Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details. 2) Picked up JAVA_TOOL_OPTIONS: Dfile.encoding=UTF-8. 3) CommandInvocationFailure: Gradle build failed. 4) Build completed with a result of "failed" in 230 seconds

Actually, I really don't understand these SDK JDK or Gradle things.

Can anyone please help me with Building my Game? I'm in a really huge headache with this.

Please Help.

error.jpg (105.3 kB)
Comment
Add comment · Show 2
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
avatar image unity_lMSbR8sCBYdT1A · Jul 29, 2021 at 01:02 AM 0
Share

Hi pal, Did you found any solution?

avatar image caden-burleson · Jan 17 at 07:41 AM 0
Share

I'm still having this issue. I've tried manually installing android studio, Gradle, and JDK. I've also tried to do a dev build as well, I tried deleting all of my Unity builds and re-installing, still failing. I thought maybe it had something to do with my specific project, so I even created a new blank project, and even then the build failed.

I can't find a solution anywhere and I'm not sure what else to try. :/

7 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by alevjen · Aug 28, 2021 at 01:02 AM

Getting the same error! Really not finding any solutions

Comment
Add comment · Show 3 · Share
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
avatar image shahnawazhussain2802 · Aug 28, 2021 at 04:55 AM 1
Share

My problem was solved. I just uninstalled unity completely and installed again. I downloaded android support tools from the unity hub. All works fine now

avatar image andreimoritz5332 shahnawazhussain2802 · Dec 19, 2021 at 12:28 AM 0
Share

You have discord to explain me , because i have the same errors , and i dont understand This is my Discord ❦BlackMortymer❦#2227

avatar image alevjen · Aug 28, 2021 at 09:36 PM 0
Share

I finally managed to fix this by making sure my gradle version is the recommended (6.8).

Before I had the latest version which did not work!

avatar image
1

Answer by shacharoz · Oct 10, 2021 at 07:01 PM

making one dev build seems to solve it. then go back to release.

if that did not work, try:

  1. mark anything automatic, no custom gradle build etc.

  2. in unity hub, make sure your unity editors are installed on a path on C: rather than inside Program Files. the space in the middle, as well as the length of the path to the project files, might affect that as well.

  3. then I also installed manually the next android SDK versions.

Comment
Add comment · Share
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
avatar image
1

Answer by shahnawazhussain2802 · Jan 11 at 05:49 PM

Thank you so much @alevjen , @shacharoz and @nikunjsth5 . All thanks but my problem was solved by completely uninstalling and then reinstalling unity and downloading the android support from unity hub. This solved my problem. Again thanks all for answering. Cheers!

Comment
Add comment · Share
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
avatar image
0

Answer by nikunjsth5 · Jan 11 at 02:10 PM

Just tick the "gradle installed in unity" option in preferences->external tools. It worked for me

Comment
Add comment · Share
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
avatar image
0

Answer by hasnainkt57 · Mar 29 at 02:53 PM

go to edit>preferences >External tools> and un check (Stop gradle daemons on exit) it will fix the problem.

Comment
Add comment · Share
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
  • 1
  • 2
  • ›

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

328 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 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

Buid problem in unity 5.6.4 0 Answers

I think i wont be able to make an android app 0 Answers

Problems after Open Unity 5 project with Unity 4 3 Answers

Script attached to 'PlayerWithAuthPrefab' in scene '' is missing or no valid script is attached error when making android build 5 Answers

Unity Build Error Duplicate class,Unity Build Error duplicate class 2 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