Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
4
Question by harperrhett · Aug 06, 2020 at 09:05 PM · errorbuildbuild-errorerror messageerror build

Unable to install additional SDK platform. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed. See the Console for details.

This morning I decided I was going to go ahead and upload to the play store, so I built my APK and uploaded the file to the Play Console and I get this:

"Your app currently targets API level 28 and must target at least API level 29 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 29."


After seeing this, I opened up Unity, visited player settings, and set my max API level to 29. Now I try to build again, and I get this pop up error:

"Android SDK is missing required platform API"

It gives me two buttons to move forward, either "Update Android SDK" or "Use Highest Installed," obviously I don't want to use highest installed because it angers the Android Play Console, so I hit the first one and I get the pop up error in the title of the post:

"Unable to install additional SDK platform. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed. See the Console for details."


In the console there is a long license agreement from Android that asks you to accept it, but provides no detail on how to do so. The first thing I did was check the SDKs I had installed in Android Studio. Everything is in order, I have the latest updates and the SDK with API level 29. I went to preferences then external tools, and tried the SDK path from Androids SDK manager as well as the one provided by Unity. No luck. Naturally, I go to the internet for answers. A common denominator among other people with the same problem also have another error that I have been neglecting, except it's just a warning, which is why I neglected to fix it:

"File C:\Users\harpe.android\repositories.cfg could not be loaded."


I follow up the forums and I find that the common fix is to create a repositories.cfg in the location that it is missing, and then use a 'touch' command on it, which I can not figure out how to get work. Then they type in some other commands, I'm assuming into the Windows command prompt that messes with this bat file:

C:\Users\harpe>C:\Program Files\Unity\Hub\Editor\2020.1.1f1\Editor\Data \PlaybackEngines\AndroidPlayer\SDK\tools\bin\sdkmanager.bat

They either use an "--update" or "platforms;android-29" command on it and then they say it's fixed, but for me it just gives me yet another error:

JAVA_HOME is not set and no 'java' command could be found in your PATH.

Apparently the license that you can agree to from the error in my console is maybe contained in this bat program or something but I can't seem to open it and I have no idea how to.


Any help would be very appreciated. Thanks.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
15
Best Answer

Answer by harperrhett · Aug 06, 2020 at 10:42 PM

Hi, I fixed this problem by downloading Android SDK tools, downloading the SDK version I wanted, and then dragging that version into the place where Unity stores its SDK versions (if you've downloaded any at all). I changed my default location for Android but if you find your folder then the versions are under platforms, and you can drag your desired version to "C:\Program Files\Unity\Hub\Editor\2020.1.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms" but that path will change depending on the version of Unity you have as well as which drive Unity is stored on. Make sure that in the Unity editor under "preferences>external tools" you have "Android SDK tools installed with Unity" turned on. Anyways good luck, I spent hours figuring this out.

Comment
Add comment · Show 9 · 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 advo · Aug 08, 2020 at 05:03 PM 0
Share

Hi I am having the exact same issue as the OP. How or where did you download the Android SDK tools? Did you have to download Android Studio first?

avatar image jorgeolothar · Aug 17, 2020 at 07:18 PM 1
Share

I downloaded Android Studio. by default it saved the platforms at

 C:\Users\<user>\AppData\Local\Android\Sdk\platforms

Copied them from there and build worked.

avatar image Jabrils · Aug 17, 2020 at 11:30 PM 2
Share

Thanks for debugging this. I was moments away from taking a bat to my monitors.

I made a video to help anyone else who may stumble across this & have the same issue https://www.youtube.com/watch?v=O3AHZVEDAQY

avatar image b4guw1x Jabrils · Aug 22, 2020 at 06:08 PM 1
Share

Thanks a lot all of you! Incredible video incredible solutions. You are insane!

avatar image mandy1339 Jabrils · Aug 24, 2020 at 12:35 AM 0
Share

Thank you that was incredibly helpful. I was able to post my new app without issues following this solution.

avatar image EpicWolffe · Sep 03, 2020 at 06:16 PM 0
Share

Worked like a charm. Props and thank you for finding the solution.

avatar image Tankzo · Nov 23, 2020 at 09:16 PM 0
Share

This is the fix. I downloaded Android Studio, used the SDK $$anonymous$$anager to download API 29 & 30 (with the 30.0.2 build-tools), then copied the android-29 & android-30 folders from the Android Studio install location to the Unity SDK location.

That introduced the "license issue" where you need to "accept the license." The google solution says to just copy the license folder from the SDK $$anonymous$$anager location to the "new machine" or in this case the Unity SDK location.

The license issue resolved then caused a Read only issue to crop up (fixed with permissions on Users (\Users) changed from read access to full access on the Unity SDK folder and all children.)

And also copied over the build-tools folder (30.0.2) from the SDK $$anonymous$$anager location to the unity location to stop the "sdk tools version 0.0 < 26.1.1" pop-up.

Show more comments
avatar image
0

Answer by ahmedaniss · Nov 25, 2020 at 09:57 PM

problem fixed here : https://youtu.be/4BeOJhaem3Q

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 maciejhd · Nov 17, 2021 at 07:49 AM

This one worked for me without installing external tools

https://forum.unity.com/threads/android-sdk-29-unable-to-install-additional-sdk-platform-issue-workaround.963626/#post-7010107

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

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

271 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

Related Questions

PLEASE HELP, BUILD APK ERROR 0 Answers

Build error Execution failed for task ':packageReleaseBundle'. 0 Answers

il2cpp Build error,Exception: F:\Unity2018\Editor\Data\il2cpp/build/il2cpp.exe did not run properly! 1 Answer

Script updater failed to produce updates.txt file 0 Answers

Win32Exception build error 1 Answer


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