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 /
  • Help Room /
avatar image
0
Question by nati8oy · Feb 15, 2019 at 11:53 PM · build-errorandroid buildjavaapkbuild settings

Why is it so complicated to create an APK for Android using Unity?

Hello. I'm new to development and have been having the dreaded "Gradle build failed" issue when trying to build an APK for Android (using Unity 2018.3.5f1 for mac). I have looked at various solutions which suggest everything from downgrading the JDK to version 8 to replacing the "tools" folder with the versions from 2009 or later. All of which seem to have varying degrees of success across all users. I have had no success at all and am still stuck with the gradle issue. I guess my question is: what actually is it that complicates this process when building for Android? If there is some way that it could be explained in lay man's terms why this causes difficulty that would be great. It doesn't seem right that using the Android Studio tools from a 10 year old build should work (or be necessary!). It also doesn't seem right that the latest JDK version isn't the one that would work with the latest Unity version. I find it hard to believe that Unity would deliberately create a product that would make all Android devs jump through these hoops. What am I missing here?

Comment
Add comment · Show 1
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 nati8oy · Feb 21, 2019 at 11:24 PM 0
Share

So it looks like this sort of thing has been addressed in the 2019.1 beta. I am yet to try it but this is the link to the features article https://blogs.unity3d.com/2019/01/31/unity-2019-1-beta-is-now-available/ Or you can read it below:

Android SD$$anonymous$$ and ND$$anonymous$$ installed with Unity Hub The Hub now provides the option to install all the required components for Android as part of the “Android Build Support” option, so you’re sure to get the correct dependencies and don’t have to gather and install anything else. If you’re an advanced Android user, you can still install and configure components manually and use Android Studio. Also, note that starting with 2018.3, “Android Build Support” comes with its own Java Runtime based on OpenJD$$anonymous$$.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by nati8oy · Feb 16, 2019 at 08:28 AM

Thanks for responding. Not sure I understand what you mean regarding P2P..? Could you elaborate a little on that point? I'm not even clear on exactly what P2P means in this context. I am just kind of confused as to why Unity would allow people to use the latest version of their software when it isn't straight forward to publish an APK. Surely this would affect a large section of its user base.

Comment
Add comment · Show 1 · 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 zereda-games · Feb 18, 2019 at 08:39 AM 0
Share

@nati8oy will be removing my "answer" but here you go what i was talking about:

https://support.unity3d.com/hc/en-us/articles/360001252086-UNet-Deprecation-FAQ

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

171 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

Related Questions

Android app not compliant with google play 64 bit requirements despite following the instructions 1 Answer

Builds Apk Error/ Unity 2019.3.15 0 Answers

Building Android Project stuck on " Task generateReleaseResources" 1 Answer

CommandInvokationFailure: Failed to build apk. 0 Answers

Unable to generate 64 bit android apk for Unity project 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