Ran into the above issue while trying to build a Unity project. Android studio had the correct version installed, why was it not able to use API level 30?
Ok So hit Update Android SDK. Unity Launches a PowerShell window and tries to upgrade the Android SDK level, but fails with
“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.”
Looks like there was a bug with the space in the path to the command Unity was running.
Looks like there are a couple of work arounds for this. I had Android Studio installed so I opened up that folder and copied that platform version to my unity folder.
Android Studio folder should be in AppData\Local\Android\Sdk\platforms
Unity Project folder should be “C:\Program Files\Unity\Hub\Editor\2020.3.19f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms”
You should now be able to build the project in Unity now with the appropriate API version.
Install Android Studio. This will install the SDK and tools like adb and fastboot
Download from here
To run adb, you’ll need to be in the same directory as it, so open a Command Prompt and cd to the following directory.
Full directory path is
On your Android device you will need to enable USB debugging from the developer options. Enable the developer options if you have not already.
When you plug your phone in it should ask you to Allow USB debugging. Hit OK to enable it.
Now run the backup command from your computer. Replace UserName with your computers User Name
adb backup -apk -obb -shared -all -f \Users\UserName\Desktop\android-backup.ab
On your phone you should get a window that shows Full Backup
Add optional password for backup and hit “Back up my data on phone”
Now Wait for it to finish…
adb restore C:\Users\UserName\android-backup.ab
Should get a restore window on your phone, hit restore and wait.
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
USB Debugging is not allowed for computer. Try replugging the USB cable and accepting the USB Debugging.