Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
Recently while working on IntelliJ Android Studio 4.2.2 I got the above error message when I created a new project and tried to run it.
What is the problem?It seems that version 31.0.0 has some problems and downgrading to 30 resolves the issue.
Solution:- Go to File > Project Structure..,
- Now Select Modules from the Left Menu Options,
- Under Build Tool Version - select 30.0.3,
- Click Apply and OK
You may also need to do changes in SDK Manager under Tools, uninstall 31.0.0, and select Android R (API 30: version 11) to install 30.0.3

Have Questions? Post them here!
- JDK Location in Android Studio
- How to install Android Studio Chipmunk and SDK tools on macOS (2021.2)
- [Android Studio] MainActivity does not exist
- [Android Studio] Hardcoded string Button, should use @string resource
- Android Studio : Connection Error : Failed to download patch file
- [Android Studio] Could not automatically detect an ADB binary
- Show Android Studio Emulator in a Separate Window
- Android Emulator Screenshot saved location
- How to Import External Jars to Android Studio Project
- How to remove Floating Action Button Android Studio Blank Activity Template
- Error running 'app': No target device found.
- Use Netbeans keyboard shortcuts in Android Studio
- Instant Run requires Tools | Android | Enable ADB integration to be enabled
- [Solved] Error launching studio
- [Android Studio] Error: Missing system image on device
- Android Studio 1.3 beta now Available for Developers
- Android Studio : Change FAB icon color : FloatingActionButton
- Android Studio emulator/Device logCat logs not displayed
- Delete Android Studio Projects
- Android Emulator window was out of view and was recentered
- Android Studio NoClassDefFoundError: java.awt.Toolkit
- Installing Android Studio Dolphin on Mac with Apple (M1/M2) Chip
- Android Studio : Implement abstract methods shortcut
- Check Android Studio App is M1/M2 Chip based post installation
- Android Studio: Cannot perform refactoring operation
- Easy Steps to Upgrade iPhone to the new iOS 16 - HowTos
- Cannot access Windows application shortcuts on Start menu and Taskbar - Windows
- Turn Off Auto-Brightness on iPhone running iOS 16 - iOS
- How to access SharePoint Online data using Postman - REST API and Bearer token - SharePoint
- Android Disable back button programatically - Android
- [fix] JSON Expected BEGIN_OBJECT but was STRING at line 1 column 1 - Java
- bash get year 2021 calendar - Bash
- How to Configure Eclipse keymap in IntelliJ IDE - Android-Studio