Not sure what happened. I was using it and then switched to editing an api file in Geany, then went back to Android Studio and got this error below. Tried uninstalling and reinstalling but still no go. Any ideas?
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-b3-6222593 amd64 by JetBrains s.r.o
/snap/android-studio/94/android-studio/jre/jre"
Remove lib folder .local/share/Google/AndroidStudio4.1/marketplace
or execute command
rm -rf ~/.local/share/Google/AndroidStudio4.1/marketplace/lib
It's working for me :-)
in ubantu: go to -> HOME/.LOCAL/SHARE/GOOGLE/ANDROIDSUTDIO4.1/marketplace
marketplace file need to remove then start android studio working fine
Related
I'm using ubuntu 20.04
I updated android studio to version 4.1. after that I can't start android studio and shows the following error.
Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.ExceptionInInitializerError
at com.a.b.b.d.K.b(K.java:260)
at com.a.b.b.a.am.c(am.java:297)
at com.a.b.b.a.am.a(am.java:119)
at com.a.b.b.a.ai.a(ai.java:56)
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)
Caused by: java.lang.NullPointerException
at com.intellij.ui.scale.JBUIScale.lambda$static$0(JBUIScale.java:76)
at com.intellij.openapi.util.AtomicNotNullLazyValue$1.compute(AtomicNotNullLazyValue.java:59)
at com.intellij.openapi.util.AtomicNotNullLazyValue.getValue(AtomicNotNullLazyValue.java:37)
at com.intellij.ui.scale.JBUIScale.lambda$static$1(JBUIScale.java:155)
at com.intellij.util.LazyInitializer$MutableNotNullValue.initialize(LazyInitializer.java:113)
at com.intellij.util.LazyInitializer$NullableValue.get(LazyInitializer.java:41)
at com.intellij.util.LazyInitializer$MutableNotNullValue.get(LazyInitializer.java:102)
at com.intellij.ui.scale.JBUIScale.lambda$static$2(JBUIScale.java:173)
at com.intellij.util.LazyInitializer$MutableNotNullValue.initialize(LazyInitializer.java:113)
at com.intellij.util.LazyInitializer$NullableValue.get(LazyInitializer.java:41)
at com.intellij.util.LazyInitializer$MutableNotNullValue.get(LazyInitializer.java:102)
at com.intellij.ui.scale.JBUIScale.scale(JBUIScale.java:297)
at com.intellij.util.ui.JBInsets.create(JBInsets.java:41)
at com.intellij.util.ui.UIUtil.getRegularPanelInsets(UIUtil.java:1356)
at com.intellij.util.ui.UIUtil.<clinit>(UIUtil.java:455)
... 9 more
-----
JRE 1.8.0_242-release-1644-b3-6222593 amd64 by JetBrains s.r.o
What should I do to fix this? I tried removing plugins. But it didn't work.
Deleting of:
~/.local/share/Google/AndroidStudio4.1,
~/.config/Google/AndroidStudio4.1,
~/.cache/Google/AndroidStudio4.1
helped me to run AndroidStudio again.
Each attempt to start Android Studio gets the same results -
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\Android Studio\jre\jre
I've re-installed - same error.
I've uninstalled, removed .gradle and .AndroidStudio4.0 folders, reinstalled - same error.
Any help gratefully accepted.
Try to delete or rename marketplace folder in android studio
~\AppData\Roaming\Google
Getting this error in android studio 3.5
Android Version 3.5
SDK 28
flutter latest version
Any one help me with this error? Getting this in windows 7 ultimate
Failed to extract manifest from APK: Exit code -1073741515 from: C:\Users\Shahryar Ahmed\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree C:\Users\Shahryar Ahmed\AndroidStudioProjects\flutter_app\build\app\outputs\apk\app.apk AndroidManifest.xml.
No application found for TargetPlatform.android_arm.
Is your project missing an android\app\src\main\AndroidManifest.xml?
Consider running "flutter create ." to create one.
Try to do a
flutter clean
This solved lots of problems for me
From Menu Goto Tools->Flutter->Flutter Clean.
as shown in below picture.
File->Invalidate Caches/Restart..
I encountered the same problem and I fixed it by deleting the app.apk in the build/app/ouputs/apk directory and it worked.
This problem happened to me .
and the error was that the file aapt.exe in this ( C:\Users\username\AppData\Local\Android\sdk\build-tools\29.0.2\aapt.exe) is opened by antivirus .
the solution is : stop the antivirus and run again it will work .
also :
you can double click on aapt.exe file , if it opened by another program it will show what is this program , so you can stop or close this program and run again .
Consider opening as administrator your android studio .exe
I went through the same problem. I just uninstalled previous build in my emulator and did flutter run again... worked for me.
After this answer:
https://stackoverflow.com/a/68142732/14409491
I uninstalled the antivirus
Then I deleted all folders in the build-tools in C:\Users\user\AppData\Local\Android\Sdk\build-tools
After that, downloaded build-tools again from android studio
I was also facing this issue while using VS Code, then I tried running on Android Studio because sometimes issues are related to emulator.
Though running flutter clean on the terminal from the project
directly seemed to solve my problem. after that also get(pub get) your dependencies to avoid further build errors.
Recently updated Build: 2.3.1, AI-162.3871768, 20170401,
AI-162.3871768, JRE 1.8.0_112-release-b06x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.11.6 unknown, screens 1440x900; Retina
Switching back to Android 2.2.2 did not help either. Successfully able to build from command Line though(MacOX Terminal)
Delete your $HOME/.gradle directory (or on Windows, %HOME%\.gradle folder). The next execution of gradle will rebuild this. (It will require some downloads, so make sure you have an internet connection).
You can try just deleting $HOME/.gradle/caches, but this will not solve the problem in all cases.
I have similar issue on 2.3.1
I tried using the Android 2.4 Preview 4 but that did not help. I am able to build from command line too.
Android-Studio-2.3.1-Gradle-Sync
It happens when Android Studio creates two instances of gradle. I tried clearing the gradle cache or even deleting the .gradle but did not help. All this problem started when I deleted my old project repo and re-pulled it and imported to my Android Studio.
Best is to delete all your gradle instance from your home directly before your re-import your project Android Studio.
Android Studio started behaving like this after I tried building with the command line(osx) using ./gradlew
What helps is running the studio with sudo:
sudo /Applications/Android\ Studio.app/Contents/MacOS/studio
I wonder if theres a fix to this problem that allows the studio to be started normally as well.
When I try to open Android Device Monitor, The Android studio give an error:
For content of log file : http://codepaste.net/b9an16
For image
I'm using Android Studio(Beta) 0.8.2 - JRE 1.8.0_05-b13 amd64
How can fix do that?
I was recently getting this same error. It turned out to be that my .android folder was read only. The solution that worked for me was to uninstall Android Studio, then re-install by running as administrator.
Run Android Studio as Administrator, no need to reinstall.