INSTALL ANDROID-29 UNITY

Next, run the sdkmanager.bat like this in command prompt (your results and path may vary depending on your Unity version).

"C:\Program Files\Unity\Hub\Editor\2019.2.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\bin\sdkmanager.bat"  "platforms;android-29"

Summarized steps: (adjust all paths to your case)

1) Create an empty "repositories.cfg" file in C:\Users\YourUserName\.android\

2) Open the Command Line (CMD) and enter:
"C:\Program Files\Unity\Hub\Editor\2019.4.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\bin\sdkmanager.bat" "platforms;android-29"

If warnings appear that JAVA and JAVA_HOME aren't found, you have to set the Environment Variables in your System:

Add this to the PATH variable:
C:\Program Files\Unity\Hub\Editor\2019.4.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin

Create new JAVA_HOME variable with this value:
C:\Program Files\Unity\Hub\Editor\2019.4.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK

When trying the command again and the download stops at 10%, you have to run it with admin rights. Rightclick the CMD before opening and "Run as Admin", then try again.


Now it downloads successfully, Unity Project builds with Target Api Level 29, no complaints from Playstore anymore.

Comentarios

Entradas más populares de este blog

Flutter en iOS: themeMode no cambia a modo oscuro si se usa `ThemeMode.system`

Unity Admob GDPR Compliance, (Easy way)

Admob Unity