The new android studio (4.2) no longer supports the old one
com.android.tools.build:gradle:2.3.3
Now, some methods and classes will not be found.
Solution:
Go to build.gradle and replace this classpath with the latest version. It is best to also get the latest version of gradle and gradle wrapper. for example:
dependencies { classpath 'com.android.tools.build:gradle:4.2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }
Similar Posts:
- [Solved] Android Studio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- Could not find com.android.tools.build:gradle:3.3.0.
- [Solved] Could not find com.android.tools.build:gradle:3.0.1
- Android Studio compilation: Program type already present: XXX solution
- Android studio import project, error e rror:Unsupported method : BaseConfig.getApplicationIdSuffix().
- Error:(1, 0) Plugin with id ‘android’ not found.
- [Solved] Could not find method google() for arguments [] on repository container,rn react-native-camera …
- Build failed for Android studio new project
- [Solved] Android Warning: Gradle DSL method not found: ‘android()’
- AS Import Project Error: Plugin with id ‘com.android.application’ not found.