android studio not starting java.lang.NoSuchMethodError - android

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

Related

Android Studio Start Failed when updated to 4.1

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.

Android Studio 4.1 keep showing plug in incompatible error even if that plugin was uninstalled

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.

Android studio 3.1 on Windows 10 aapt2 is missing 27.0.3 sdk

trying to develop a simple app for Android device. Have installed android studio 3.1 on Windows 10 machine and trying to build "hello World" app. keep getting error = "Cause: aapt2 is missing on 'C:\Users\xxxxx\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe'". aapt2.exe is not in the 27.0.3 folder only aapt.exe.
What am I missing? Shouldn't this just work ?
The SDK manager sometimes messes up when downloading build tools. It's not necessary to re-install Android Studio - just delete the build tools folder/version that's missing the executable and re-download that.
Open File > Project Structure and select app under Modules category from left bar. Then select a higher Build Tools Version from properties tab. The error must be gone.
In gradle.properties file put this line: android.enableAapt2=false
It worked with me

Android Studio 3.1 Canary 3 - Gradle sync failed

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.

Unable to build my first Android program

I am using,
Version: Helios Service Release 2
Build id: 20110218-0911
When I try to run the project1 I get the following error.
'Lauching project1' has encountered a problem.
Errors occured during the build.
Errors occurred during the build.
Errors running builder 'Android Package Builder' on project 'project1'.
sun.security.x509.X500Name.
Can someone guide me on to resolve this issue?
Regards,
Subbu
I have same problem, because I use IBM JRE first time. Then I re-install all of them by follow up the installing guide order:
Install Sun JDK firstly, then install SDK manager and make sure it find Sun JDK location, then install Eclipse Classic,etc.
user671253 pointed to a solution that worked for me. That is, installing the Oracle JDK 7u11, and then pointing Eclipse to its JRE :
Go to Windows > Preferences > Java > Installed JREs. Point it to the Sun JDK (Sun JRE might work but I used JDK). Then restart the workbench.
i would recommend getting the "eclipse classic" and installing android plugin to it instead of trying using the eclipse Java EE and other versions. Eclipse seems to break if too many plugings are loaded, that my experiance with android in eclipse.

Categories

Resources