Now from my all Android projects, I can't able to export Android builds after updating library using Android Studio. I was, again and again, getting the same error:
This project does not contain any kind of external plugins installed. Then also I was getting this error, just two days before it was working properly.
EDIT: Android SDK tools folder content:
Install the SDKClick Tools > SDK Manager. In the SDK Platforms tab, select Android 12. In the SDK Tools tab, select Android SDK Build-Tools 31. Click OK to install the SDK.
Android SDK Build-Tools is a component of the Android SDK required for building Android apps. It's installed in the <sdk>/build-tools/ directory.
The same problem was encountered and solved with a few line changes. Check the Project code panel, and go to Gradle Scripts → build. gradle file, Change three places from 31 to 30: compileSdkVersion, buildToolsVersion, and targetSdkVersion.
You should download Android SDK Build-Tools.
in Android Studio, go to Tools -> SDK Manager
in the left plane, select Appearance & Behavior -> System Settings -> Android SDK
now in the right plane Select SDK Tools after that in the bottom right corner there is checkbox called Show Pakage Details.
Expand the Android SDK Build-Tools and you can see the version of it.
Unselect the current version and Apply the Settings, You will ask to uninstall current version of build tools
And Select the version 29.0.0 and install it
For building a project, Unity3d uses a stable version of the Build Tools and not an rc (release candidate).
The Android SDK path is usually C:\Users\<username>\AppData\Local\Android\sdk\build-tools\
delete the 29.0.0-rc1 folder or move it out to anywhere.
You could also remove the rc version of the SDK Build Tools via Android Studio's SDK manager.
Doing that the project should build successfully.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With