Build failed with an exception
* What went wrong:
Plugin [id: 'com.android.application'] was not found in any of the following sources
Run the following command:
gradle init
This command will prompt you to choose a type of project. You can select the default option (basic) or choose a different project type based on your needs.
then go to this file : -
gradle > wrapper > gradle-wrapper.properties
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
#distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
then project build gradle :- letest android tools build gradle
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:8.2.0'
}
classpath "com.android.tools.build:gradle:7.3.0"
}
No comments:
Post a Comment