I updated my Android Studio to 4.1 and then it gave starting error. I uninstalled and then installed the latest version that is 4.1 again and it still gives the following error on Start up.
**Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.NoSuchMethodError: com.intellij.ide.plugins.PluginManagerCore.loadDescriptors()[Lcom/intellij/ide/plugins/IdeaPluginDescriptorImpl
at com.a.a.b.b.ar.a(ar.java:121)
at com.a.a.b.b.ar.a(ar.java:71)
at com.intellij.idea.MainImpl.start(MainImpl.java:19)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748)
JRE 1.8.0_242-release-1644-b01 amd64 by JetBrains s.r.o
C:\Program Files\Android New\jre\jre**
I have tried almost all the solutions on internet but no luck.
this way will work remove this files
C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudioPreview4.1
Because there is no Kotlin plugin compatible with Canary 9 currently available from JetBrains, we have bundled our own Kotlin plugin with the Canary 9 update, so you don't need to manually install a Kotlin plugin
see this
https://developer.android.com/studio/preview/features#4.1-ki-missing-kotlin-plugin
For Windows, go to:
%USERPROFILE%\.AndroidStudio4.0\config\plugins\marketplace
and remove the lib folder
For Ubuntu: please remove the file .local/share/google and Open android studio it will work.
My AndroidStudio 4.1 started after deleting the folder:
~/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6858069.plugins/marketplace/lib
My OS is Ubuntu 20.04.1 LTS.
Version number in the path above may be different.
Deleting this folder called marketplace, fixed my issue
C:\Users\UserName.AndroidStudio4.0\config\plugins\marketplace
Deleting the below path works for me
C:\Users\username\.AndroidStudio4.0\config\plugins
I solve it by deleting this folder.
C:\Users"user"\AppData\Roaming\Google
In Linux based Operating Systems like Ubuntu, Linuxmint:
Go to below specified folder by the command:
cd ~/.local/share/Google/AndroidStudio/
now rename the folder marketplace as markerplace_backup by the command:
mv marketplace marketplace_backup
Now try to open Android Studio again.
Related
i get this error when starting android studio
java.lang.NoSuchMethodError: com.intellij.ide.plugins.PluginManagerCore.loadDescriptors()[Lcom/intellij/ide/plugins/IdeaPluginDescriptorImpl;
at com.a.a.b.b.ar.a(ar.java:121)
at com.a.a.b.b.ar.a(ar.java:71)
at com.intellij.idea.MainImpl.start(MainImpl.java:19)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748) .... JRE 1.8.0_242 release-1644-b3-6222593 amd64 by JetBrains s.r.o ***/opt/android-studio-ide-201.6858069-linux/android-studio/jre/jre
my operating system is ubuntu 20.04 LTS 64bit
I first encountered this issue after updating my Android Studio to 4.0.1 allbeit on a MacOS.
To fix this issue, please take the following steps:
Go to the directory ~/Library/Application Support/AndroidStudio
You would find marketplace folder in this location.
Rename this folder and attempt starting Android Studio again.
When Android Studio starts up again, go to Android Studio -> Preferences
Goto Plugins and click installed.
The incompatible plugins would surface at this stage. Click delete/uninstall for these plugins.
Restart the IDE and all should be perfect.
That error indicates an issue in IDE plugins.
Remove the Android Studio folder in ~/.local/share/Google/.
This should fix your issue.
I had the same problem on my machine. It was solved by deleting the plugins folder located in .local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283.plugins/marketplace. Note that 201.6953283 was my current version of Android Studio.
You can use the canary build until Google releases v4.2. This worked for me. Just open software install and search for "android studio canary."
I ran into this issue after upgrading from Android Studio 4.0.1 to 4.1.1, but solved it by deleting some plugins under the directory ~/.local/share/Google/AndroidStudio4.1. The plugins I deleted were:
idea-multimarkdown
Gauge-Java-Intellij
markdown
marketplace
i dont know what cause this issue but run it as sudo solve it .
your installation directory is /opt so run this command on terminal
sudo ./opt/androidStudioDirectory/bin/studio.sh
I have updated Android Studio to version 4.1 (stable, macOS), then after I open the program it said:
Plugin Error: Plugin "Android WiFi ADB" is incompatible (supported only in IntelliJ IDEA).
I uninstalled that plugin and restart the IDE normally, but it still shows the same error every time I open the IDE even after the plugin was already uninstalled! Why does it do that? Does anyone know how to fix this (without reinstalling the entire program)?
Windows 10
Go to path %APPDATA%\Google\AndroidStudio4.1\plugins and remove manually undesired plugins folders and/or .jar files.
I fixed it! Look like the uninstall button in the plugin GUI screen is just for decoration purpose only, the plugin is still in the /Users/your_username/Library/Application Support/Google/AndroidStudio4.1/plugins. After removing the plugin folder manually everything is back to normal.
Linux
I had the same issue, removing the unsupported plugins in the the config folder fixed it (you can also remove the entire configuration folder, a new one will be re-created).
For linux, the new configuration path is:
~/.config/Google/AndroidStudio4.1
There is also other non-configuration folders at the following paths:
~/.local/share/Google/AndroidStudio4.1
~/.cache/Google/AndroidStudio4.1
macOS
On Mac OS the path is different. Make your life easy and simply run this command in the Terminal after closing Android Studio:
rm -rf ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins/AndroidWiFiADB
Now it's gone.
For windows users
go to below path and delete desired plugins.
C:\Users*username*\AppData\Roaming\Google\AndroidStudio4.1\plugins
Linux, JetBrains Toolbox:
Check ~/.local/share/JetBrains/Toolbox/apps/AndroidStudio
On my machine I went to ~/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908.plugins - I saw the plugin folders there and deleted them. Fixed the issue.
just noticed on my mac that Android Studio 4.0 vs 4.1 are in different sub directories
extra /Google path in 4.1
Android Studio 4.0
/Users/YOURUSERNAME/Library/Application Support/AndroidStudio4.0/plugins
Android Studio 4.1
/Users/YOURUSERNAME/Library/Application Support/Google/AndroidStudio4.1/plugins/
The plugin complained about "Activity Stack View" is in 4.1 plugins folder
Plugin Error: Plugin "Activity Stack View" is incompatible (supported only in IntelliJ IDEA).
I closed AS and moved folder out of plugins and restarted and error was gone.
Linux, Android Studio
Deleting incompatible plugin folders in this path worked for me:
/home/Your_Name/.local/share/Google/AndroidStudio<version>
In case of multiple version folders delete plugin folder corresponding to your version. For me the version was 2020.3 and so the folder being AndroidStudio2020.3.
For another plugin such as Android ADB WiFi or ADB Wifi I tried to install them but it does not work after removing plugin folder. In my case, I solved it by simply installing another plugin which named ADB Wi-Fi.
For a unknown reason Android Studio 3.1 Canary 3 is bugged and stopped to work, I updated gradle to 3.1-alpha03 and it stopped working, no matter if I download the project again, already downloaded Android Studio again too.
I've already checkout old versions of the project, but this message still show:
Gradle sync failed: com.android.tools.idea.gradle.project.model.AndroidModuleModel.getSelectedVariant()Lcom/android/tools/idea/gradle/project/model/ide/android/IdeVariant; (8s 806ms)
I've removed .idea folder, .gradle folder, did invalidate and restart
I don't know nothing more to do, cant run or use the IDE.
Edit:
Edit2:
New Projects doesnt work too
It's a problem with Kotlin 1.1.60-release-Studio3.0-1 plugin.
Uninstall it from Android Studio and fetch an older version from here:
https://plugins.jetbrains.com/plugin/6954-kotlin
To solve this issue, you have to either upgrade or downgrade your kotlin plugin
Solution 1: Upgrade Plugin
First go to Tools menu > Select Kotlin > Configure Kotlin Plugin Updates > Select one of the kotlin plugin & press download (stable or early access, i chose early access to solve this issue)
And finally change the kotlin version in build.gradle(Project:) according to the
downloaded version
Solution 2: Downgrade Plugin
If your on mac then press: Command + ,
to open preference, then select plugin & search for kotlin & uninstall it, it will rollback to previous version: 1.1.51
On Windows machine, press Control + Alt + S to open settings dialog, then select plugins & search for kotlin & uninstall it, it will rollback to previous version: 1.1.51
Please Note: Do not uncheck kotlin in plugins else it will disable kotlin & fail to recognise kotlin file & syntax
Try to download and install this kotlin plugin for android studio 3.1
on Windows i just remove from C:\Users\ folder -
.AndroidStudioPreview3.1
and all cache folders in .android ,.gradle too
and problem is gone)
Faced same problem after upgrading to Android Studio 3.1 stable.
Kotlin plugin version was 1.2.30-release-Studio3.1-1
So manually upgraded to,
1.2.31-release-Studio3.1-1
and boom, problem solved.
In short, try upgrading to most relevant plugin to fix gradle sync failure.
solved:
first run -> find ~ -path ~/Library/Caches/Metadata/Safari -prune -o -iname \*android\*studio\* -print -prune
DELETE ALL FOLDERS related to android-studio
start fresh install and project setup
roll back to the previous gradle version i have faced such issues myself and stay away from RC gradle version unless really needed.
I encountered the same problem after upgrading to:
Android Studio 3.2 Canary 10
Build #AI-181.2784.17.32.4705630, built on April 6, 2018
JRE: 1.8.0_152-release-1136-b02 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.4
& Kotlin plugin 1.2.31
I uninstalled the Kotlin plugin
File | Invalidate Cache and restart
Reinstalled the latest Kotlin plugin 1.2.31
File | Invalidate Cache and restart
Everything is now okay.
I'm on windows7 x64, installed today's latest stable release of android sdk studio (through android studio bundle, since it's shipped together now apparently). I have properly configured the environment variables as you'll see above.
This is what I get when issuing the following command
$ cordova build android
ANDROID_HOME=G:\installs\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: G:\installs\Android\sdk\tools\templates\gradle\wrapper
And indeed, the "templates" directory doesn't even exist in my sdk install.
I've already tried the suggestions (setting the right path, uninstall/reinstall) of this question here but nothing applies to my case, and I find that manually copying and pasting packages is not really a solution, since there's a package manager in place.
If anybody has an answer as of today's android install, would be very much appreciated.
If still not working then copy all file from gradle\wrapper from Android Studio installation folder
C:\Program Files\Android\Android
Studio\plugins\android\lib\templates\gradle\wrapper
and paste it in your Android SDK gradle\wrapper then run same command.
E:\android-sdk\tools\templates\gradle\wrapper
This is a known issue; see CB-12544. For now you'll need to downgrade.
I downloaded Android SDK r25 manually and placed templates folder inside Android/sdk/tools. This solved the issue for me.
You can get it from https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip
For Windows:
https://developer.android.com/studio/index.html
Go to the section :"Get just the command line tools"
There is a link 'sdk-tools-darwin-3859397.zip' for Mac, Unfortunately that didn't have the templates folder with Gradle Wrapper. So for Mac users, i will suggest not to go for this zip.
When I try to build a project on Android Studio, I get this error:
Compilation completed with 1 error and 0 warnings in 9 sec
1 error
0 warnings
org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.: Could not install Gradle distribution from 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
What can I do to fix it?
UPDATE:
When I look at the Error Log, I saw this:
org.jetbrains.plugins.gradle.settings.GradleSettings cannot be cast to org.jetbrains.plugins.gradle.settings.GradleSettings:
org.jetbrains.plugins.gradle.settings.GradleSettings cannot be cast to org.jetbrains.plugins.gradle.settings.GradleSettings
Please read the log from:
On Microsoft Windows:
[Windwos Drive]\Documents and Settings\[your username]\.AndroidStudioPreview\system\log
On Mac and Linux: ~/.AndroidStudioPreview/system/log/
And you will find the tmp download path of gradle-1.6-bin.zip. For example, mine is:
2013-05-17 09:42:16,934 [ 283002] INFO - ution.rmi.RemoteProcessSupport - Unzipping C:\Documents and Settings\Kiki.J.Hu\.gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159kar72vok\gradle-1.6-bin.zip to C:\Documents and Settings\Kiki.J.Hu\.gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159kar72vok
...
Caused by: com.intellij.openapi.externalSystem.model.ExternalSystemException: Could not install Gradle distribution from 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
java.util.zip.ZipException: error in opening zip file
So I know the cause: I downloaded an incomplete ZIP package.
Then I downloaded the full ZIP package from http://services.gradle.org/distributions/gradle-1.6-bin.zip manually and copied this ZIP package to:
Windows: C:\Documents and
Settings\Kiki.J.Hu\.gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159kar72vok\
Mac OS X: ~/.gradle/wrapper/dists/gradle-1.10-all/6vpvhqu0efs1fqmqr2decq1v12/
Everything is OK now.
For OS X:
Install Homebrew as a package manager. Then on Terminal, run:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Install Gradle:
brew install gradle
It is the easiest way to get Gradle.
Before you click to new project, go to configure and set your proxy. I recommend set host name and port number, since I had problems with auto-detect proxy settings. Check your connection in settings.
I also had issues downloading Gradle through Android Studio.
This was my workaround:
Download Gradle directly from http://services.gradle.org/distributions/gradle-1.6-bin.zip
Copy the contents of gradle-1.6 to \Android\android-studio\plugins\gradle
Copy gradle.jar to \Android\android-studio\lib\
Restart Android Studio
Hope this helps!
Edit the gradle wrapper settings in gradle/wrapper/gradle-wrapper.properties and change gradle-1.6-bin.zip to gradle-1.8-bin.zip.
./gradle/wrapper/gradle-wrapper.properties :
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip
It should compile without any error now.
In my case this was because the system had low memory. When I closed some applications, the error disappeared.
For me it turned out to be my firewall, which is VIPRE, was blocking the Gradle.org site and quietly causing a bad gradle-1.7-bin.zip to be created under .gradle\wrapper\dists\.
I had to open VIPRE and add gradle.org to "Bad Web Site Exceptions" (menu File -> Settings -> Firewall).
Then I downloaded http://services.gradle.org/distributions/gradle-1.7-bin.zip using a browser and overwrote the bad version. I restarted Android Studio, and all is good.
FYI, on my Mac, it was downloading Gradle into the ~/.gradle directory. You can see how it's progressing by looking there:
du ~/.gradle
I noticed that my MyProject/gradle/wrapper/gradle-wrapper.properties file was completely empty, so I deleted it and Android Studio proceeded to download whatever it needed.
After that it worked.
I tried Kiki Hu's solution, and it worked. After that, there will be more downloads from the Maven repository which includes Dalvik Debug Monitor Server (DDMS), Guava, etc., which again is not required if you are exporting from Eclipse into Android Studio.
If you're like me, you tried to start a version prior to 0.2.0. Following Google's notes
in Getting Started with Android Studio, you'll need to remove and re-install Android Studio.
"Note: There is not a patch update available from 0.1.9 to 0.2. To update from Android Studio 0.1.x to 0.2.x, you must install a new Android Studio bundle from this page. The reason for that is that we have made changes to the bundled SDK such that it includes a pre-configured local Maven repository which can serve up the v4 support library and which is required for creating new projects."
Also be aware that if you have your Android SDK files stored in C:\Program Files (x86)\Android\android-studio\sdk you should move them before the uninstall, or you'll need to download the SDK files again.
After the un-install and re-install, it is now working on my Windows 7 64-bit system.
Remove all files from C:\Documents and Settings\[User]\.gradle\wrapper\dists\, rebuild the project and rebuild your project on Android Studio. It works for me :)
I have noticed one thing: When my Android Studio is build 130.737825, it automatic downloads Gradle 1.6 to C:\Users\yourname\.gradle/wrapper/dists/gradle-1.6-bin/72srdo3a5eb3bic159kar72vok/.
However, when I update my Android Studio to build 132.821530, it automatically downloads Gradle 1.7 to C:\Users\Administrator\.gradle\wrapper\dists\gradle-1.7-bin\2g3i7gan25uopmtc0lnjb1l9ff.
I don't know if it matters.
I had this error under fresh installation of IntelliJ (14.0), the problem was that I had not specified JDK. Fix: press ctrl + A + S (project structure), and check if SDK is correct.
my error looked like this:
Error:Android Gradle Build Target: org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle installation ...