After we solved the problem of could not resolve com.android.tools.build: gradle: 7.0.2, we reported this error in build output
The most direct solution is to download the version of Android SDK build tools in SDK tools. The path is file >settings> Appearance& Behavior> System Settings> Android SDK> SDK Tools. Unfortunately, I couldn’t download it, so I changed the buildtoolsversion in APP/build.gradle to “31.0.2” of all my current 31.0.2 versions
In the project structure, we have also changed everything, but after running, we still report such an error
After I changed the version to 30.0.2, I still have this problem. Obviously, I have this version, but why not? When I checked my SDK tools, I found that 31.0.0 and 30.0.2/28.0.3/27.0.0 are under Android SDK build tools 31
So I guessed whether it could not be found under the file, so I deleted all except the 30.0.2 version I currently use
Close Android studio and open it again. Success
Read More:
- [Solved] Flutter compile error: Failed to find Build Tools revision 29.0.2
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- Android Studio compile error: build tools is corrupt [Solved]
- Maven Error: Missing artifact jdk.tools:jdk.tools:jar:1.7
- [Solved] error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools“
- How to Solve Docker ERROR: Service’workspace’ failed to build: ERROR: Service’php-fpm’ failed to build
- NPM run dev Error Module build failed: Error: Cannot find module ‘node-sass’
- Jenkins uses NPM to build Vue error, and the manual build is normal
- [Solved] Failed to find glog – Could not find glog include directory, set…
- [Solved] Unity Package Error: FAILURE: Build failed with an exception.
- How to Solve MVC Error: Build failed.
- [Solved] error: failed to run custom build command for `librocksdb-sys v6.17.3`
- Docker Build Error: Failed to get D-Bus connection: Operation not permitted [Solved]
- [Solved] Unity package Error: CommandInvokationFailure: Gradle build failed.
- How to Solve Import antd Error: Module build failed
- [Solved] Xcode13.1 Upgrade Error: CocoaPods installed but not working Failed to build gem native extension
- [Solved] Error: Can‘t locate revision identified by ‘xxx‘
- Eclipse Graphical Layout Error: Failed to find the style corresponding to the id 2130772027
- [Solved] Wepy build watch Error: ERR! Parse WePY config failed. Are you trying to use
- [Solved] Groovy Project Compile Error: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream