Update Unity Android SDK to API Level 29 (10) Quick Tutorial - Fix Unable to Install SDK Platform

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi there you probably got an error from google play saying that you need to use target api level 29 to upload your game to google play and if you didn't get that far that is the new requirement for google play so if you're trying to publish the game you'll need to use level 29 and in this video i'm going to show you how to install level 29 api so when you install unity you have modules that you can select and if you want to publish to the android store you need to make sure that these options are turned on as well and at the current moment when those options get installed the api level that gets installed is level 28 and we need level 29 to publish so unit's probably going to change that real soon but for now here is what you do to change the level to 29. in my game i can go to build settings make sure you switch to android platform then click player settings and under player settings you can go to android's other settings right here and when you scroll down under identification there is a target api level and currently it's automatic highest installed if you click on the drop down you can see that the api level 29 appears here we can select that and click build you can specify the location where you want to build it i'm building an apk for testing so click save and the build process gonna start as soon the build process starts it gives me an error saying that the required api level is not installed so you can click update android sdk but as soon as you click that you get another error saying that the build failed because sdk was not installed and it tells you to install the sdk manually it might actually work on your computer but on my computer it's not working and i think it has to do to the fact that the installer is not running as the administrator in that case it gets blocked from installing successfully so we will have to install manually on my device so to get more information how to do that you can go to the console and see the errors that we got so the very first error that we have is this file warning that it couldn't be found repositories.cfg could not be loaded under the user android folder and if you want to you can go add an empty file and name it repositories.cfg and that will get rid of that warning but if you don't want to do it you don't have to it will still work without it it will be just getting this warning message the reason why it failed is because of this one failed to read and create install properties files and that's why i said that it's probably due to the fact that administrator privileges are not provided when the installation of the sdk is running so that's why we're gonna have to do it manually and at the very bottom we can see this instructions for installing that we should use so right here is the location of the sdk manager and the platform that we're installing is the android 29. i'm just going to add that repository files so i'm not going to get the warning anymore so create new then text document and we'll name it that click yes and we're done now let's run this installation manually so i'm not sure what system setup you have do you have java installed or not and you have java home configured but whenever you install open jdk with unity the java gets installed with it and that's what i'm going to use for java and we can find the java installation is by selecting this first portion all the way up to android player so we can go to the explorer paste that in click enter and that should go to this folder in this folder there is the open jdk right here we go to inside there inside the bin and here we have all the java executable files so we found that the reason why i just found it in the explorer instead of the command line it's just faster for me to do that now you need to find the command prompt and run it as an administrator this is important you have to run it as an administrator otherwise it's not going to give the permission to write the new api level so run as administrator you'll get a confirmation confirming that you want to run it as administrator and this is the command prompt now i want to change the directory to the directory that i have here so i can go inside the explorer copy that location and then do cd command change directory double quotes because there are some spaces in the file path and close the quote click enter and that should change the location to where our java is installed and this part you have to do so that the java exe can be found if you have java home configured you don't have to do this part but if you're using java only with unity you probably won't have java home configured so now we are ready to run the command that unity has right here we'll also need to start with a double quote followed by the instruction and at the end of the sdk measure the bet we also need to add a quote click enter and that should start running the installation so here we get the license agreement and we need to accept it so click yes for accept enter and that should continue downloading the platform there go now it's all complete we got it installed we can go back to unity and try building it now go to build settings click build save and the build starts running so i guess the sdk was successfully found so this is the process that i found that requires least amount of steps and that can be easily used with not installing the android studio or go through all the java configurations i ran to this problem myself so i decided to make a quick video about it to save you guys some time from debugging it yourself if you like this video click on the thumbs up button and if you enjoyed this video subscribe to the channel and i'll see you later
Info
Channel: Smart Penguins
Views: 71,007
Rating: undefined out of 5
Keywords: Buildbox, Tutorials, GameDev, Smart Penguins, unity, unity game dev, indie gamedev, indie game devlog, game devblog, how to make a game, how to, develop games, brackeys, game making, game program, game programming, game development, indie game, game developer, game design, game industry, gaming industry, video game, beginner, easy, learn, course, game, development, develop, programming, coding, basic, started, getting, make a, introduction, software, C#, CSharp, C Sharp, Bolt, visual scripting
Id: 3Qay9h14swM
Channel Id: undefined
Length: 6min 26sec (386 seconds)
Published: Sat Aug 22 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.