Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.



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 3 places: compileSdkVersion, buildToolsVersion, targetSdkVersion from 31 to 30
    You'll notice a lightbulb hit occurring on modified lines, click and choose sync [to version 30]. The Android Studio will automatically download BuildTool V30 and change project settings.

Now run the app. It works for me
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Installed #Build #Tools #revision #Remove #install #SDK
ADD COMMENT
Topic
Name
1+2 =