I am not sure whether it worked buefore, but I updated to Android Studio 4.1 today and then tried launching it, only to see the crash below.
The crash happens even when I delete everything from %appdata%\Google\AndroidStudio4.1\plugins. It seems that the problem is with the JetBrains Android plugin itself?
Internal error. Please refer to https://code.google.com/p/android/issues
java.util.concurrent.CompletionException: com.intellij.diagnostic.PluginException: ComponentConfig{implementationClass='', interfaceClass='com.intellij.openapi.projectRoots.impl.DefaultJdkConfigurator', headlessImplementationClass='', loadForDefaultProject=false, options={overrides=true}} does not override anything [Plugin: org.jetbrains.android]
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:618)
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:591)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1975)
at com.intellij.idea.ApplicationLoader$initApplication$2.accept(ApplicationLoader.kt:379)
at com.intellij.idea.ApplicationLoader$initApplication$2.accept(ApplicationLoader.kt)
at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)
at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1609)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.intellij.diagnostic.PluginException: ComponentConfig{implementationClass='', interfaceClass='com.intellij.openapi.projectRoots.impl.DefaultJdkConfigurator', headlessImplementationClass='', loadForDefaultProject=false, options={overrides=true}} does not override anything [Plugin: org.jetbrains.android]
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponent(ComponentManagerImpl.kt:291)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:194)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:157)
at com.intellij.idea.ApplicationLoader$registerAppComponents$1.apply(ApplicationLoader.kt:93)
at com.intellij.idea.ApplicationLoader$registerAppComponents$1.apply(ApplicationLoader.kt)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:616)
... 12 more
-----
JRE 1.8.0_242-release-1644-b01 amd64 by JetBrains s.r.o
C:\Program Files\Android\Android Studio\jre\jre
Any help would be appreciated.
Try to go from Android Studio's start menu to Settings-Plugins and just disable and enable again all needed plugins.
Thank you for your suggestions, but I ended up simply reinstalling Android Studio. It seems that I somehow had a botched installation.
Related
Since we migrated to modules we started experiencing a time out when installing the application for the second time. It only happens if we run the app for the second time. If we clear the project (Build->Clean Project) it launches ok, but the next time we try to run, it times out.
I have looked at the Android Studio logs and found an error that is thrown when launching the app but I am not sure what could go wrong and how to interpret these logs. Here is the snapshot of the logs:
2021-01-19 12:26:15,790 [413000061] INFO - ools.idea.run.tasks.DeployTask - Installing application: *****
2021-01-19 12:26:15,792 [413000063] ERROR - intellij.openapi.progress.Task - entry
java.lang.NullPointerException: entry
at java.util.zip.ZipFile.getInputStream(ZipFile.java:361)
at com.android.tools.deployer.ApkParser.getApkDetails(ApkParser.java:88)
at com.android.tools.deployer.ApkParser.parse(ApkParser.java:107)
at com.android.tools.deployer.ApkParser.parsePaths(ApkParser.java:76)
at com.android.tools.deployer.ApkInstaller.deltaInstall(ApkInstaller.java:244)
at com.android.tools.deployer.ApkInstaller.install(ApkInstaller.java:91)
at com.android.tools.deployer.Deployer.install(Deployer.java:145)
at com.android.tools.idea.run.tasks.DeployTask.perform(DeployTask.java:119)
at com.android.tools.idea.run.tasks.AbstractDeployTask.run(AbstractDeployTask.java:119)
at com.android.tools.idea.run.LaunchTaskRunner.run(LaunchTaskRunner.java:191)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:932)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:434)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$null$3(ProgressRunner.java:233)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:166)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:153)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:233)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2021-01-19 12:26:15,798 [413000069] ERROR - intellij.openapi.progress.Task - Android Studio 4.1.1 Build #AI-201.8743.12.41.6953283
2021-01-19 12:26:15,799 [413000070] ERROR - intellij.openapi.progress.Task - JDK: 1.8.0_242-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2021-01-19 12:26:15,799 [413000070] ERROR - intellij.openapi.progress.Task - OS: Windows 10
2021-01-19 12:26:15,799 [413000070] ERROR - intellij.openapi.progress.Task - Last Action: Run
2021-01-19 12:26:46,303 [413030574] INFO - j.ide.actions.RevealFileAction - Exit code 1
Please, help.
The issue was related to different versions of Android Studio and Android Gradle Plugin. When I had updated the Android Gradle Plugin version to the last available version the issue was gone. For more info see the posted issue in issue tracker.
I have downloaded sdk-tools-windows-4333796.zip file from official website and extracted in a folder. But I am facing below issue while opening sdkmanager.bat from cmd.
Error : Exception in thread "main"
java.lang.IncompatibleClassChangeError at
java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodH
andleNatives.java:383) at
com.android.sdklib.tool.sdkmanager.InstallAction.register(InstallActi
on.java:46) at
com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.(Sdk
ManagerCliSettings.java:65) at
com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.j
ava:57) at
com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.j
ava:48) Caused by: java.lang.NoSuchMethodException: no such method:
java.lang.invoke.Lam
bdaMetafactory.metafactory(Lookup,String,MethodType,MethodType,MethodHandle,Meth
odType)CallSite/invokeStatic at
java.lang.invoke.MemberName.makeAccessException(MemberName.java:765)
at
java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:882
) at
java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.jav
a:1018) at
java.lang.invoke.MethodHandles$Lookup.linkMethodHandleConstant(Method
Handles.java:1322) at
java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodH
andleNatives.java:381) ... 4 more Caused by:
java.lang.NoSuchMethodError: java.lang.invoke.LambdaMetafactory.metaf
actory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invok
e/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/l
ang/invoke/MethodType;)Ljava/lang/invoke/CallSite; at
java.lang.invoke.MethodHandleNatives.resolve(Native Method) at
java.lang.invoke.MemberName$Factory.resolve(MemberName.java:854)
at
java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:879
) ... 7 more
I installed the whole Android Studio that comes with the SDK Manager.
Others seem to have solved this by updating Java or installing the latest Java jdk.
If that doesnt help post your Java version here.
I am having an internal IDE error in my android studio. The component properties panel never shows anything. And when I click on a component, there's an error in the event log which says:
IllegalArgumentException: Missing attribute definition for focusable
This is the error details.
Missing attribute definition for focusable
java.lang.IllegalArgumentException: Missing attribute definition for focusable
at com.android.tools.idea.uibuilder.property.NlPropertyItem.<init>(NlPropertyItem.java:88)
at com.android.tools.idea.uibuilder.property.NlPropertyItem.create(NlPropertyItem.java:72)
at com.android.tools.idea.uibuilder.property.NlProperties.getPropertiesWithReadLock(NlProperties.java:111)
at com.android.tools.idea.uibuilder.property.NlProperties.lambda$getProperties$538(NlProperties.java:64)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
at com.android.tools.idea.uibuilder.property.NlProperties.getProperties(NlProperties.java:63)
at com.android.tools.idea.uibuilder.property.NlPropertiesManager.lambda$setSelectedComponents$202(NlPropertiesManager.java:174)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
My AS IDE is updated (version 2.2.2), I'm also using Oracle JDK (jdk1.8.0_112).
change the compileSdkVersion and targetSdkVersion from 24 to 23, I think it will help you...
It might be the problem with OpenJDK. Please remove it and install Oracle JDK instead using this post: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
Then go to File -> Project Structure and change Java SDK path.
Might it will help you. happy coding.
updating android studio 141.2288178 to 141.2456560
below is the error log
java.io.IOException: Data error (cyclic redundancy check)
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at com.intellij.updater.Digester.doDigestStream(Digester.java:76)
at com.intellij.updater.Digester.digestStream(Digester.java:69)
at com.intellij.updater.Digester.digestRegularFile(Digester.java:21)
at com.intellij.updater.Patch.digestFile(Patch.java:371)
at com.intellij.updater.PatchAction.isModified(PatchAction.java:180)
at com.intellij.updater.DeleteAction.validate(DeleteAction.java:29)
at com.intellij.updater.Patch$1.forEach(Patch.java:271)
at com.intellij.updater.Patch.forEach(Patch.java:360)
at com.intellij.updater.Patch.validate(Patch.java:267)
at com.intellij.updater.PatchFileCreator.prepareAndValidate(PatchFileCreator.java:68)
at com.intellij.updater.Runner.doInstall(Runner.java:293)
at com.intellij.updater.Runner.access$000(Runner.java:18)
at com.intellij.updater.Runner$2.execute(Runner.java:261)
at com.intellij.updater.SwingUpdaterUI$5.run(SwingUpdaterUI.java:191)
at java.lang.Thread.run(Thread.java:745)
updating android studio
This is maybe not the answer you were looking for but if you are still struggeling to update Android Studio I would recommend to update it from the website:
http://developer.android.com/sdk/index.html
Android Studio will detect settings from older versions and prompt you to import them on first run.
When I'm using Intellij idea the IDE close without any error ! and when I open it again it returns this error:
Internal error. Please report to http://youtrack.jetbrains.com
com.intellij.ide.plugins.PluginManager$StartupAbortedException: java.lang.ClassNotFoundException: com.intellij.idea.MainImpl
at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:93)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.intellij.idea.MainImpl
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:148)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:259)
at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:86)
... 1 more
How can I resolve this? I'm using Ubuntu 14.0.4
I am using Intellij in Ubuntu too with no errors.
It's hard to say what is happening just by the information provided but I would suggest you to:
1 - Update your Ubuntu with the latest packages
2 - Download the latest version of the IDE, unpack it and try again