When I opened android studio today, it showed me the following errors:
In my case, I am using Ubunto and I had to Unlock the Folder of my project: type this command on Terminal:
sudo chown -R $USER: $HOME
In my case, I installed a plugin, and on an android restart, it was failing to start. This was causing the plugin workflow to not run completely, and give the above error.
Disabling the faulty plugin solved the issue.
I was using Gradle 4.1 and AS 3.0.1 when I got this error.
Look at Gradle console. If it looks anything like this, read on:
Plugin Error
Problems found loading plugins:
Plugin "Android Games" was not loaded: required plugin "Android Support" is disabled.
Plugin "Android NDK Support" was not loaded: required plugin "Android Support" is disabled.
Plugin "Android APK Support" was not loaded: required plugin "Android Support" is disabled.
Plugin "Google Developers Samples" was not loaded: required plugin "Android Support" is ...
...
Plugin "Fire... (show balloon)
Note that all say “required plugin Android Support is disabled."
Also note the link “show balloon”.
Click show balloon
.
Choose to enable Android Support.
Restart AS.
I hope this helps you, too.
None of the single solutions above where sufficient for me. I had the same issue after updating from android studio 2.3.3 to 3.1.2.
I got this error today, I updated the Android Studio from Help>CheckForUpdates>Update. After that installed the missing Google Cloud plugins. Now it is working fine.
I just replace the project build.gradle like below. And it works.
buildscript {
...
repositories {
mavenLocal()
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven { url "https://jitpack.io" }
mavenCentral() // jcenter() works as well because it pulls from Maven Central
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
...
}
allprojects {
repositories {
mavenLocal()
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven { url "https://jitpack.io" }
mavenCentral() // jcenter() works as well because it pulls from Maven Central
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
}