'Bumblebee Android studio Plugin [id: 'com.android.application', version: '7.1.0', apply: false] was not found in any of the following sources:
I updated my android studio from Android studio fox to Android studio Bumblebee 2021.1.1 but none of my projects can run in Android studio Bumblebee 2021.1.1. I ended up getting this beautiful error.
Here is my gradle file
plugins {
id 'com.android.application' version '7.1.0' apply false
id 'com.android.library' version '7.1.0' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Solution 1:[1]
I have the same problem? Here's how I did it:
//Comment the following code from settings.gradle:
/*pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}*/
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
Modify the buildScript node in build.gradle in the project root directory:
buildscript {
ext {
kotlin_version = '1.6.10'
compose_version = '1.0.5'
}
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "com.android.tools.build:gradle:7.1.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Solution 2:[2]
This happens to me with AS Bumblebee when I add a new module to my project. It adds these two lines to my project-level build.gradle in the plugins block:
id 'com.android.library' version '7.1.1' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
I removed them to fix the error.
Solution 3:[3]
Please check your JDK version. At least your JDK version must be 11 Then restart Android studio Check this link for more information: https://developer.android.com/studio/releases/gradle-plugin#jdk-11
Solution 4:[4]
If You use Android studio default configuration try change the order of the repositories. Like:
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
google()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
google()
}
}
Or
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
Or just try to take this in diffrent order. Kinda funny but in many cases it has worked for me.
Solution 5:[5]
plugins {
id 'com.android.application' version '7.1.3' apply false
id 'com.android.library' version '7.1.3' apply false
id 'org.jetbrains.kotlin.android' version '1.6.20' apply false
}
I changed the Version to the older Version and the error got cleared
Ex: '7.1.3' to '7.0.0'.
Solution 6:[6]
You can check the idea.log. this problem is caused by the network problem. Some areas cannot link to the newest gradle repository. If you want to solve this problem, change your network which can get connect with https://services.gradle.org/distributions/gradle-7.2-bin.zip.
Solution 7:[7]
Add the buildscript in your build.gradle (project module)
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'your dependecy path'
}
}
plugins {
id 'com.android.application' version '7.1.1' apply false
id 'com.android.library' version '7.1.1' apply false
id 'org.jetbrains.kotlin.android' version '1.5.30' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Solution 8:[8]
It happened to me when I was trying to open a new project with a preset .gitignore and README.md files from github. AS Bumblebee gave an error also while doing the first sync. I tried couple of times with fresh install too. Same result.
I moved all files (including hidden .git folder) to temp another folder. Created new project into same folder and moved preset files/folders back.
Solution 9:[9]
I got the same problem when I create a HelloWorld project. For me its a network problem caused by settings. Because i can acess https://services.gradle.org/distributions/gradle-7.2-bin.zip or anyother sites.
before I find the problem were caused by the proxy settings in gradle.properties
, I tried to:
- set proxy of my Android Studio(no proxy/auto-detect/manual proxy configuration);
- to change the order of the repositories in
settings.gradle
; - change the version of plugins in
bulid.gradle
(7.1.2->7.0.0) - make sure my JDK version is 11
However, none of these worked.
How I solved:
I solved this through delete the proxy setting in gradle.properties
(global properties).
I don't know why they were there, I guess maybe they were added automatically during I installing my Android Studio(I set the proxy for install SDK Manager).
Solution 10:[10]
Just change it to an older version and it should work
Solution 11:[11]
delete init.d from .gradle (hidden directory)
Solution 12:[12]
change your gradle.build(Project) to this:
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Solution 13:[13]
After changing my proxy from Socks5 to HTTP the problem resolved.
You can find your proxy settings in ~/.gradle/gradle.properties
systemProp.http.proxyHost=127.0.0.1
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=1081
systemProp.http.proxyPort=1081
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow