- Home /
Why can't I select Android Minimum API Level?
I can't select Minimum API Level under android settings, it's just a greyed out "Getting API levels..." I need to set it for AR Foundation. Trying to build and run anyway I get error "ARCore Required apps require a minimum SDK version of 24. Currently set to AndroidApiLevel16." Helpp.
facing same issue with 2019.3.0a12. any fixes ?,Facing same issue for unity 2019.3.0a12. Any fixes for this ?
Answer by Mazzeman · Aug 21, 2019 at 01:47 PM
Ok I was facing this issue and I found out that it was the company proxy that kinda hindered the SDK Manager to fetch info from repositories.
So if you're behind a proxy, this is what you should do.
First, I already had a previous Android installation which could access the repos via Android Studio, however it seems that Android studio adds the correct input variables to SDK manager if Android Studio itself has a proxy setup.
Enter your installation folder and navigate to the map where you have your SDK installed. Mine was something like this: "\Editor\2019.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK"
Enter "tools/bin", you should find the "sdkmanager.bat" there.
Duplicate "sdkmanager.bat". and rename it to something like "sdkmanager_untouched.bat" (For safekeeping in case everything fails)
Open the "sdkmanager.bat" in a Wordpad or Notepad++ or something similar of your choice
Edit the bat file in the appropriate places, I added the PROXY_VARIABLES and modified the DEFAULT_JVM_OPTS, don't forget the whitespaces, especially in PROXY_VARIABLES:
Also don't forget to pass them on:
Note the "%PROXY_VARIABLES% in the ending there. So that should make the sdkmanager.bat file proxy safe. This is because Unity does not support proxy settings, talk about a hassle ...
Hey $$anonymous$$azzeman, I have been struggling with this issue lately and I have tried following the above instructions and not sure what the red marks indicate or "Edit the bat file in the appropriate places?
I followed your last instructions and the $$anonymous$$inimum API levels showed up, but the app had an error in the build, I am sure that is why you edited your post, but I am too much of a noob to understand it.
If you could dumb it down just a bit more, I hopefully would get it.
Thanks $$anonymous$$azz! tg
@asgarcia The pictures I've added in the answer displays roughly where you should edit the sdkmanager.bat file. the set PROXY_VARIABLES =
is added and then the set DEFAULT_JV$$anonymous$$_OPTS
is only modified, I've added the proxy variables as interpreted by the JV$$anonymous$$ in that variable as you can see. The red marks are just my proxy variables which I've roughly censored.
I can't believe that my network was the problem all this time I tried to fix it, thanks a lot. In my case, I just switched to another network and it worked
Answer by Battataio · May 26, 2019 at 09:03 AM
Same here
Any Answer?
I would try updating/decreasing build tools version inside android sdk. What versionnare you using? I have heard the lastest gaves some conflict
Answer by ghasedak3411 · Mar 17, 2020 at 07:23 AM
you can edit file in: /ProjectSettings/ProjectSettings.asset there's a property named AndroidMinSdkVersion
change the value to any minimum API level you want.
You answer is right but you have to make changes while your project is not running in background. If you make changes in while running project it automatically changes api to 16 again whatever value you set in editor.
Your answer
Follow this Question
Related Questions
How to refresh assets during run time of a build ? 0 Answers
Android - How to incorporate stuff in R.java? 0 Answers
Unity Android app crashes when activated a few times with Android's SDK's startActivity(intent). 1 Answer
UNET can't join android server 0 Answers
Android : www.error 401 when using credentials in URL over HTTPs 0 Answers