Android Studio - Target JRE version does not match project JDK version - android

I recently migrated my project to Gradle 7.4.1, Android Gradle Plugin 7.1.2 and therefore also JDK 11 (from JDK 8), and everything is working fine except that when I run the unit tests in debug mode in Android Studio, it shows me this popup:
that says:
Target JRE version (11.0.11) does not match project JDK version (version 1.8.0_242), will use sources from JDK: 11
To be clear, the popup is not shown in any other situation I tried so far, for example:
building the app
running the app in debug mode
running the unit tests without the debug mode.
As you can see below, in Gradle settings I use JDK 11 (obviously; otherwise the project wouldn't work at all):
I also used a "Choose Runtime" plugin to make sure the correct JDK is chosen:
My environment variables are also correct:
❯ echo $JAVA_HOME
/Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
❯ which java
/Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home/bin/java
❯ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
OpenJDK 64-Bit Server VM (build 11.0.11+0-b60-7590822, mixed mode)
❯ ./gradlew --version
------------------------------------------------------------
Gradle 7.4.1
------------------------------------------------------------
Build time: 2022-03-09 15:04:47 UTC
Revision: 36dc52588e09b4b72f2010bc07599e0ee0434e2e
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 11.0.11 (JetBrains s.r.o. 11.0.11+0-b60-7590822)
OS: Mac OS X 12.3 x86_64
I'm using Android Studio Bumblebee. Full version info:
Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.intellij.marketplace (211.7628.36), com.jetbrains.ChooseRuntime (1.2), com.phrase.intellij (4.0.1), com.vladsch.idea.multimarkdown (3.0.202.112), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)
I also reviewed some of the logs produced by Android Studio and they also seem correct:
2022-03-31 20:40:16,521 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2022-03-31 20:40:16,547 [ 26] INFO - .intellij.util.EnvironmentUtil - loading shell env is skipped: IDE has been launched from a terminal (SHLVL=2)
2022-03-31 20:40:16,574 [ 53] INFO - #com.intellij.idea.Main - IDE: Android Studio (build #AI-211.7628.21.2111.8193401, 17 Feb 2022 08:12)
2022-03-31 20:40:16,576 [ 55] INFO - #com.intellij.idea.Main - OS: Mac OS X (12.3, x86_64)
2022-03-31 20:40:16,582 [ 61] INFO - #com.intellij.idea.Main - JRE: 11.0.11+0-b60-7590822 (JetBrains s.r.o.)
2022-03-31 20:40:16,583 [ 62] INFO - #com.intellij.idea.Main - JVM: 11.0.11+0-b60-7590822 (OpenJDK 64-Bit Server VM)
2022-03-31 20:40:16,586 [ 65] INFO - #com.intellij.idea.Main - JVM Args: -Xms256m -Xmx1280m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -Dsun.io.useCanonCaches=false -Djdk.http.auth.tunneling.disabledSchemes="" -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Dkotlinx.coroutines.debug=off -Djna.nosys=true -Djna.boot.library.path= -Didea.vendor.name=Google -XX:ErrorFile=/Users/azabost/java_error_in_studio_%p.log -XX:HeapDumpPath=/Users/azabost/java_error_in_studio.hprof -Xmx4096m -Djb.vmOptionsFile=/Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/bin/studio.vmoptions,/Users/azabost/Library/Application Support/Google/AndroidStudio2021.1/studio.vmoptions -Didea.paths.selector=AndroidStudio2021.1 -Didea.executable=studio -Didea.platform.prefix=AndroidStudio -Didea.vendor.name=Google -Didea.home.path=/Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents
2022-03-31 20:40:16,586 [ 65] INFO - #com.intellij.idea.Main - library path: /Users/azabost/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
2022-03-31 20:40:16,586 [ 65] INFO - #com.intellij.idea.Main - boot library path: /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home/lib
2022-03-31 20:40:16,603 [ 82] INFO - #com.intellij.idea.Main - locale=en_GB JNU=UTF-8 file.encoding=UTF-8
idea.config.path=/Users/azabost/Library/Application Support/Google/AndroidStudio2021.1
idea.system.path=/Users/azabost/Library/Caches/Google/AndroidStudio2021.1
idea.plugins.path=/Users/azabost/Library/Application Support/Google/AndroidStudio2021.1/plugins
idea.log.path=/Users/azabost/Library/Logs/Google/AndroidStudio2021.1
...
2022-03-31 21:32:13,214 [3116693] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
2022-03-31 21:32:13,590 [3117069] INFO - ild.invoker.GradleBuildInvoker - Gradle build cancelled in 26 s 350 ms
2022-03-31 21:32:17,748 [3121227] WARN - idea.lint.common.LintIdeClient - com.toastfix.toasthandler_lint.registry.ToastHandlerIssueRegistry in /Users/azabost/.gradle/caches/transforms-3/5cacc53feafc83908b80485cdde0ce02/transformed/jetified-ToastHandler-1.2.1/jars/lint.jar does not specify a vendor; see IssueRegistry#vendor
2022-03-31 21:32:17,770 [3121249] WARN - idea.lint.common.LintIdeClient - dagger.lint.DaggerIssueRegistry in /Users/azabost/.gradle/caches/transforms-3/1d8efdd70f0fe0cb2ac32270bc2ae5c2/transformed/jetified-dagger-lint-aar-2.37/jars/lint.jar does not specify a vendor; see IssueRegistry#vendor
2022-03-31 21:32:39,862 [3143341] INFO - t.javadoc.JavaDocInfoGenerator - Wrong navElement: FUN; original = KtUltraLightMethodForSourceDeclaration:fetchAndCacheProductsWithSearchData of class class org.jetbrains.kotlin.asJava.classes.KtUltraLightMethodForSourceDeclaration
2022-03-31 21:32:39,863 [3143342] INFO - t.javadoc.JavaDocInfoGenerator - Wrong navElement: FUN; original = KtUltraLightMethodForSourceDeclaration:fetchAndCacheProductsWithSearchData of class class org.jetbrains.kotlin.asJava.classes.KtUltraLightMethodForSourceDeclaration
2022-03-31 21:32:39,863 [3143342] INFO - t.javadoc.JavaDocInfoGenerator - Wrong navElement: FUN; original = KtUltraLightMethodForSourceDeclaration:fetchAndCacheProductsWithSearchData of class class org.jetbrains.kotlin.asJava.classes.KtUltraLightMethodForSourceDeclaration
2022-03-31 21:32:39,863 [3143342] INFO - t.javadoc.JavaDocInfoGenerator - Wrong navElement: FUN; original = KtUltraLightMethodForSourceDeclaration:fetchAndCacheProductsWithSearchData of class class org.jetbrains.kotlin.asJava.classes.KtUltraLightMethodForSourceDeclaration
2022-03-31 21:33:15,802 [3179281] INFO - STDERR - invalid Unicode Property \p: /(?<=^[\s\d\p])\bV\b/
2022-03-31 21:33:56,220 [3219699] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
2022-03-31 21:33:56,220 [3219699] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
2022-03-31 21:33:56,228 [3219707] INFO - ild.invoker.GradleBuildInvoker - About to execute Gradle tasks: [:exampleModule:testDebugUnitTest]
2022-03-31 21:33:56,231 [3219710] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
2022-03-31 21:33:56,232 [3219711] INFO - ild.invoker.GradleBuildInvoker - Build command line options: [--continue, -Pandroid.injected.invoked.from.ide=true, -Pandroid.injected.studio.version=2021.1.1 Patch 2, -Pandroid.injected.attribution.file.location=/Users/azabost/projects/app-android/.gradle, --init-script, /private/var/folders/87/kglctjzn0znd_3kx9m038jf80000gn/T/ijmapper.gradle, --tests, net.example.app.ExampleTest.Example test, --init-script, /private/var/folders/87/kglctjzn0znd_3kx9m038jf80000gn/T/ijresolvers1.gradle]
2022-03-31 21:33:56,233 [3219712] INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --continue -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.studio.version=2021.1.1 Patch 2 -Pandroid.injected.attribution.file.location=/Users/azabost/projects/app-android/.gradle --init-script /private/var/folders/87/kglctjzn0znd_3kx9m038jf80000gn/T/ijmapper.gradle --tests net.example.app.ExampleTest.Example test --init-script /private/var/folders/87/kglctjzn0znd_3kx9m038jf80000gn/T/ijresolvers1.gradle
Perhaps it's worth mentioning that since the project is quite big (over 200 Gradle modules) and it consists of both Android library projects (i.e. plugin com.android.library) and pure Kotlin modules (i.e. no Android plugin, just the kotlin plugin), I try to keep the Gradle configurations in a single place and I try to configure all the modules in the same way using my own utility functions or Gradle built-in functions such as allprojects.
For example, to make sure all the modules have Kotlin's jvmTarget set to the same version, I use:
allprojects {
tasks.withType(type = org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
}
}
and in each Android module I additionally do this:
android {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
Unfortunately, most of the answers to similar problems I found on the internet usually mention setting the correct JDK path in IDE's Gradle settings and sometimes the configuration such as jvmTarget etc., and none of these tips worked for me so far (unless I did something wrong).
Do you know what causes that problem and how I could fix that?

Related

How to uninstall ASM bytecode viewer from my Mac?

I installed 2 plugins, 1 is ASM bytecode viewer, the other is ASM bytecode viewer for kotlin, then my Android studio can't start... I checked the low of AS and realized that there is a duplicated installed, may I ask how should I get my AS back by removing unecessary ASM bytecode viewer?
2022-12-04 19:36:47,567 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2022-12-04 19:36:47,595 [ 28] INFO - .intellij.util.EnvironmentUtil - loading shell env: /bin/bash -l -i -c '/Applications/Android Studio.app/Contents/bin/printenv.py' '/var/folders/23/fhstgrf11p523zqv5b4z1zqw0000gn/T/intellij-shell-env.11475173051245961351.tmp'
2022-12-04 19:36:47,612 [ 45] INFO - #com.intellij.idea.Main - IDE: Android Studio (build #AI-203.7717.56.2031.7935034, 21 Nov 2021 13:35)
2022-12-04 19:36:47,614 [ 47] INFO - #com.intellij.idea.Main - OS: Mac OS X (12.6, x86_64)
2022-12-04 19:36:47,626 [ 59] INFO - #com.intellij.idea.Main - JRE: 11.0.10+0-b96-7281165 (JetBrains s.r.o.)
2022-12-04 19:36:47,626 [ 59] INFO - #com.intellij.idea.Main - JVM: 11.0.10+0-b96-7281165 (OpenJDK 64-Bit Server VM)
2022-12-04 19:36:47,630 [ 63] INFO - #com.intellij.idea.Main - JVM Args: -Xms256m -Xmx1280m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -Dsun.io.useCanonCaches=false -Djdk.http.auth.tunneling.disabledSchemes="" -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Dkotlinx.coroutines.debug=off -Djna.nosys=true -Djna.boot.library.path= -Didea.vendor.name=Google -XX:ErrorFile=/Users/savypan/java_error_in_studio_%p.log -XX:HeapDumpPath=/Users/savypan/java_error_in_studio.hprof -Djb.vmOptionsFile=/Applications/Android Studio.app/Contents/bin/studio.vmoptions -Didea.paths.selector=AndroidStudio2020.3 -Didea.executable=studio -Didea.platform.prefix=AndroidStudio -Didea.vendor.name=Google -Didea.home.path=/Applications/Android Studio.app/Contents
2022-12-04 19:36:47,631 [ 64] INFO - #com.intellij.idea.Main - library path: /Users/savypan/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
2022-12-04 19:36:47,631 [ 64] INFO - #com.intellij.idea.Main - boot library path: /Applications/Android Studio.app/Contents/jre/Contents/Home/lib
2022-12-04 19:36:47,671 [ 104] INFO - #com.intellij.idea.Main - locale=en_CN JNU=UTF-8 file.encoding=UTF-8
idea.config.path=/Users/savypan/Library/Application Support/Google/AndroidStudio2020.3
idea.system.path=/Users/savypan/Library/Caches/Google/AndroidStudio2020.3
idea.plugins.path=/Users/savypan/Library/Application Support/Google/AndroidStudio2020.3/plugins
idea.log.path=/Users/savypan/Library/Logs/Google/AndroidStudio2020.3
2022-12-04 19:36:47,749 [ 182] WARN - .intellij.util.EnvironmentUtil - can't get shell environment
java.lang.RuntimeException: command [/bin/bash, -l, -i, -c, '/Applications/Android Studio.app/Contents/bin/printenv.py' '/var/folders/23/fhstgrf11p523zqv5b4z1zqw0000gn/T/intellij-shell-env.11475173051245961351.tmp']
exit code:127 text:0 out:bash: no job control in this shell
env: python: No such file or directory
at com.intellij.util.EnvironmentUtil$ShellEnvReader.runProcessAndReadOutputAndEnvs(EnvironmentUtil.java:353)
at com.intellij.util.EnvironmentUtil$ShellEnvReader.readShellEnv(EnvironmentUtil.java:254)
at com.intellij.util.EnvironmentUtil$ShellEnvReader.readShellEnv(EnvironmentUtil.java:269)
at com.intellij.util.EnvironmentUtil.getShellEnv(EnvironmentUtil.java:204)
at com.intellij.util.EnvironmentUtil.lambda$loadEnvironment$0(EnvironmentUtil.java:106)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
2022-12-04 19:36:48,001 [ 434] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 328 ms
2022-12-04 19:36:48,249 [ 682] INFO - ntellij.idea.ApplicationLoader - CPU cores: 8; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool#2aabd8bc[Running, parallelism = 7, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory#2f5b9028
2022-12-04 19:36:48,348 [ 781] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Kotlin, id=org.jetbrains.kotlin, path=/Users/savypan/Library/Application Support/Google/AndroidStudio2020.3/plugins/Kotlin, version=203-1.6.10-release-923-AS7717.8) misses optional descriptor kotlin-nodejs.xml
2022-12-04 19:36:48,350 [ 783] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Kotlin, id=org.jetbrains.kotlin, path=/Users/savypan/Library/Application Support/Google/AndroidStudio2020.3/plugins/Kotlin, version=203-1.6.10-release-923-AS7717.8) misses optional descriptor native-debug.xml
2022-12-04 19:36:48,351 [ 784] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Kotlin, id=org.jetbrains.kotlin, path=/Users/savypan/Library/Application Support/Google/AndroidStudio2020.3/plugins/Kotlin, version=203-1.6.10-release-923-AS7717.8) misses optional descriptor js-debug.xml
2022-12-04 19:36:48,494 [ 927] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Groovy, id=org.intellij.groovy, path=/Applications/Android Studio.app/Contents/plugins/Groovy, version=203.7717.56.2031.7935034) misses optional descriptor duplicates-groovy.xml
2022-12-04 19:36:48,495 [ 928] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Groovy, id=org.intellij.groovy, path=/Applications/Android Studio.app/Contents/plugins/Groovy, version=203.7717.56.2031.7935034) misses optional descriptor duplicates-detection-groovy.xml
2022-12-04 19:36:48,580 [ 1013] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Java, id=com.intellij.java, path=/Applications/Android Studio.app/Contents/plugins/java, version=203.7717.56.2031.7935034) misses optional descriptor profiler-java.xml
2022-12-04 19:36:48,582 [ 1015] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Java, id=com.intellij.java, path=/Applications/Android Studio.app/Contents/plugins/java, version=203.7717.56.2031.7935034) misses optional descriptor java-features-trainer.xml
2022-12-04 19:36:48,613 [ 1046] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Kotlin, id=org.jetbrains.kotlin, path=/Applications/Android Studio.app/Contents/plugins/Kotlin, version=203-1.5.20-release-289-AS7717.8) misses optional descriptor kotlin-nodejs.xml
2022-12-04 19:36:48,618 [ 1051] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Kotlin, id=org.jetbrains.kotlin, path=/Applications/Android Studio.app/Contents/plugins/Kotlin, version=203-1.5.20-release-289-AS7717.8) misses optional descriptor native-debug.xml
2022-12-04 19:36:48,619 [ 1052] INFO - llij.ide.plugins.PluginManager - Plugin PluginDescriptor(name=Kotlin, id=org.jetbrains.kotlin, path=/Applications/Android Studio.app/Contents/plugins/Kotlin, version=203-1.5.20-release-289-AS7717.8) misses optional descriptor js-debug.xml
2022-12-04 19:36:48,672 [ 1105] WARN - llij.ide.plugins.PluginManager - Problems found loading plugins:
The ASM Bytecode Outline (id=ASM Bytecode Outline, path=~/Library/Application Support/Google/AndroidStudio2020.3/plugins/ASM-BO, version=0.3.5) plugin Plugin 'ASM Bytecode Outline' is compatible with IntelliJ IDEA only because it doesn't define any explicit module dependencies
2022-12-04 19:36:48,728 [ 1161] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: IDEA CORE (203.7717.56), Layoutlib (203.7717.56.2031.7935034), Layoutlib Legacy (203.7717.56.2031.7935034), Google Login (203.7717.56.2031.7935034), CIDR Base (203.7717.56.2031.7935034), C/C++ Language Support (203.7717.56.2031.7935034), Clangd support (203.7717.56.2031.7935034), com.intellij.platform.images (203.7717.56.2031.7935034), JetBrains maven model api classes (203.7717.56.2031.7935034), JetBrains Repository Search (203.7717.56.2031.7935034), Subversion (203.7717.56.2031.7935034), Smali Support (203.7717.56.2031.7935034), Machine Learning Code Completion (203.7717.56.2031.7935034), Configuration Script (203.7717.56.2031.7935034), Copyright (203.7717.56.2031.7935034), Java (203.7717.56.2031.7935034), JUnit (203.7717.56.2031.7935034), Java IDE Customization (203.7717.56.2031.7935034), Java Stream Debugger (203.7717.56.2031.7935034), Java Bytecode Decompiler (203.7717.56.2031.7935034), Properties (203.7717.56.2031.7935034), Gradle (203.7717.56.2031.7935034), Java Internationalization (203.7717.56.2031.7935034), Resource Bundle Editor (203.7717.56.2031.7935034), Task Management (203.7717.56.2031.7935034), Mercurial (203.7717.56.2031.7935034), WebP Support (203.7717.56.2031.7935034), EditorConfig (203.7717.56.2031.7935034), Terminal (203.7717.56.2031.7935034), Git (203.7717.56.2031.7935034), ChangeReminder (203.7717.56.2031.7935034), GitHub (203.7717.56.2031.7935034), Next File Prediction (203.7717.56.2031.7935034), Shell Script (203.7717.56.2031.7935034), TextMate Bundles (203.7717.56.2031.7935034), YAML (203.7717.56.2031.7935034), Settings Repository (203.7717.56.2031.7935034), IntelliLang (203.7717.56.2031.7935034), TestNG (203.7717.56.2031.7935034), Code Coverage for Java (203.7717.56.2031.7935034), Groovy (203.7717.56.2031.7935034), Gradle-Java (203.7717.56.2031.7935034), Google Cloud Tools Core (203.7717.56.2031.7935034), Android (2020.3.1 Patch 4), Google Cloud Tools For Android Studio (203.7717.56.2031.7935034), Firebase Testing (203.7717.56.2031.7935034), Compose (203.7717.56.2031.7935034), Android NDK Support (203.7717.56.2031.7935034), Android APK Support (203.7717.56.2031.7935034), Google Developers Samples (203.7717.56.2031.7935034), Test Recorder (203.7717.56.2031.7935034), App Links Assistant (203.7717.56.2031.7935034), Firebase App Indexing (203.7717.56.2031.7935034)
2022-12-04 19:36:48,728 [ 1161] INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: ASM Bytecode Viewer (7.2), ASM Bytecode Viewer Support Kotlin (1.1), Dart (203.8452), Kotlin (203-1.6.10-release-923-AS7717.8), Flutter (65.2.1), Markdown (203.6682.134)
2022-12-04 19:36:48,728 [ 1161] INFO - llij.ide.plugins.PluginManager - Disabled plugins: Firebase Services (203.7717.56.2031.7935034), Kotlin Multiplatform Mobile (0.3.0(203-1.6.0-release-795-IJ)-54)
2022-12-04 19:36:49,307 [ 1740] INFO - m.intellij.util.io.StorageLock - lower=100; upper=500; buffer=10; max=1260
2022-12-04 19:36:49,315 [ 1748] INFO - tellij.util.io.FileChannelUtil - uninterruptible FileChannels will be used for indexes
2022-12-04 19:36:49,361 [ 1794] INFO - m.intellij.ui.mac.touchbar.NST - touchbar-server isn't running, skip nst loading
2022-12-04 19:36:49,418 [ 1851] INFO - tellij.util.io.storage.Storage - Space waste in /Users/savypan/Library/Caches/Google/AndroidStudio2020.3/caches/attrib.dat is 26155394 bytes. Compacting now.
2022-12-04 19:36:49,420 [ 1853] INFO - tellij.util.io.storage.Storage - Compact failed: /Users/savypan/Library/Caches/Google/AndroidStudio2020.3/caches/attrib.dat.storageData.backup
2022-12-04 19:36:49,420 [ 1853] INFO - tellij.util.io.storage.Storage - Done compacting in 2msec.
2022-12-04 19:36:49,441 [ 1874] INFO - cation.options.RegistryManager - Registry values changed by user: external.system.auto.import.disabled = true
2022-12-04 19:36:49,464 [ 1897] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=1.0; restored: fontSize=13, fontScale=1.0
2022-12-04 19:36:49,492 [ 1925] INFO - intellij.diagnostic.JitWatcher - JIT compilation state checking enabled
2022-12-04 19:36:49,615 [ 2048] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2022-12-04 19:36:49,638 [ 2071] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2022-12-04 19:36:50,655 [ 3088] INFO - leBasedIndexDataInitialization - Initialization done: 1055
2022-12-04 19:36:50,748 [ 3181] INFO - exImpl$StubIndexInitialization - Initialization done: 92
2022-12-04 19:36:52,552 [ 4985] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=1.0; restored: fontSize=13, fontScale=1.0
2022-12-04 19:36:52,553 [ 4986] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.android.tools.idea.AndroidInitialConfigurator)
2022-12-04 19:36:52,587 [ 5020] INFO - pi.util.registry.RegistryValue - Registry value 'external.system.auto.import.disabled' has changed to 'true'
2022-12-04 19:36:52,622 [ 5055] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /Applications/Android Studio.app/Contents/bin/fsnotifier
2022-12-04 19:36:52,625 [ 5058] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2022-12-04 19:36:54,592 [ 7025] WARN - nSystem.impl.ActionManagerImpl - keymap "Xcode" not found [Plugin: com.intellij]
2022-12-04 19:36:54,602 [ 7035] WARN - nSystem.impl.ActionManagerImpl - keymap "Xcode" not found [Plugin: com.intellij.cidr.base]
2022-12-04 19:36:54,805 [ 7238] ERROR - nSystem.impl.ActionManagerImpl - action with the ID "showBytecodeViewer" was already registered. Action being registered is ASM Bytecode Viewer (Shows the bytecode viewer and ASMified code from the current class); Registered action is ASM Bytecode Viewer (Shows the bytecode viewer and ASMified code from the current class) Plugin: ASM Bytecode Viewer Support Kotlin [Plugin: ASM Bytecode Viewer Support Kotlin]
com.intellij.diagnostic.PluginException: action with the ID "showBytecodeViewer" was already registered. Action being registered is ASM Bytecode Viewer (Shows the bytecode viewer and ASMified code from the current class); Registered action is ASM Bytecode Viewer (Shows the bytecode viewer and ASMified code from the current class) Plugin: ASM Bytecode Viewer Support Kotlin [Plugin: ASM Bytecode Viewer Support Kotlin]
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.reportActionError(ActionManagerImpl.java:392)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.reportActionError(ActionManagerImpl.java:387)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.registerChameleon(ActionManagerImpl.java:1325)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.addToMap(ActionManagerImpl.java:1298)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.registerAction(ActionManagerImpl.java:1268)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.registerOrReplaceActionInner(ActionManagerImpl.java:753)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.processActionElement(ActionManagerImpl.java:726)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.registerPluginActions(ActionManagerImpl.java:535)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.registerActions(ActionManagerImpl.java:200)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.<init>(ActionManagerImpl.java:177)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:733)
at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:49)
at com.intellij.serviceContainer.ServiceComponentAdapter.access$createAndInitialize(ServiceComponentAdapter.kt:13)
at com.intellij.serviceContainer.ServiceComponentAdapter$doCreateInstance$1.run(ServiceComponentAdapter.kt:43)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:218)
at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:42)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:457)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:440)
at com.intellij.openapi.actionSystem.ActionManager.getInstance(ActionManager.java:29)
at com.intellij.openapi.actionSystem.impl.ActionPreloader.preload(ActionPreloader.java:15)
at com.intellij.openapi.application.Preloader.lambda$preload$0(Preloader.java:84)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
at com.intellij.openapi.application.Preloader.lambda$preload$1(Preloader.java:74)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:216)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:27)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:195)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:208)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:184)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
2022-12-04 19:36:54,807 [ 7240] ERROR - nSystem.impl.ActionManagerImpl - Android Studio Arctic Fox | 2020.3.1 Patch 4 Build #AI-203.7717.56.2031.7935034
2022-12-04 19:36:54,810 [ 7243] ERROR - nSystem.impl.ActionManagerImpl - JDK: 11.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2022-12-04 19:36:54,810 [ 7243] ERROR - nSystem.impl.ActionManagerImpl - OS: Mac OS X
2022-12-04 19:36:54,811 [ 7244] ERROR - nSystem.impl.ActionManagerImpl - Plugin to blame: ASM Bytecode Viewer Support Kotlin version: 1.1
2022-12-04 19:36:54,812 [ 7245] ERROR - nSystem.impl.ActionManagerImpl - Last Action:
2022-12-04 19:36:54,998 [ 7431] INFO - verflags.ServerFlagInitializer - Enabled server flags: analytics/surveys/followup, exceptions/ClassCastException
2022-12-04 19:36:55,688 [ 8121] ERROR - ect.impl.ProjectFrameAllocator - Key org.objectweb.asm.idea.plugin.view.BytecodeOutline duplicated
org.picocontainer.PicoRegistrationException: Key org.objectweb.asm.idea.plugin.view.BytecodeOutline duplicated
at com.intellij.util.pico.DefaultPicoContainer.registerComponent(DefaultPicoContainer.java:119)
at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:364)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:214)
at com.intellij.openapi.project.impl.ProjectLoadHelper.registerComponents(projectLoader.kt:25)
at com.intellij.openapi.project.impl.ProjectManagerImpl.initProject(ProjectManagerImpl.java:171)
at com.intellij.openapi.project.impl.ProjectManagerExImpl.prepareProject(ProjectManagerExImpl.kt:242)
at com.intellij.openapi.project.impl.ProjectManagerExImpl.access$prepareProject(ProjectManagerExImpl.kt:52)
at com.intellij.openapi.project.impl.ProjectManagerExImpl$openProject$$inlined$runInAutoSaveDisabledMode$lambda$1.invoke(ProjectManagerExImpl.kt:104)
at com.intellij.openapi.project.impl.ProjectManagerExImpl$openProject$$inlined$runInAutoSaveDisabledMode$lambda$1.invoke(ProjectManagerExImpl.kt:52)
at com.intellij.openapi.project.impl.ProjectUiFrameAllocator$run$progressTask$1.run(ProjectFrameAllocator.kt:86)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$new$0(ProgressRunner.java:79)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
2022-12-04 19:36:55,689 [ 8122] ERROR - ect.impl.ProjectFrameAllocator - Android Studio Arctic Fox | 2020.3.1 Patch 4 Build #AI-203.7717.56.2031.7935034
2022-12-04 19:36:55,689 [ 8122] ERROR - ect.impl.ProjectFrameAllocator - JDK: 11.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2022-12-04 19:36:55,689 [ 8122] ERROR - ect.impl.ProjectFrameAllocator - OS: Mac OS X
2022-12-04 19:36:55,689 [ 8122] ERROR - ect.impl.ProjectFrameAllocator - Last Action:
2022-12-04 19:36:56,476 [ 8909] ERROR - ect.impl.ProjectFrameAllocator - Key org.objectweb.asm.idea.plugin.view.BytecodeOutline duplicated
org.picocontainer.PicoRegistrationException: Key org.objectweb.asm.idea.plugin.view.BytecodeOutline duplicated
at com.intellij.util.pico.DefaultPicoContainer.registerComponent(DefaultPicoContainer.java:119)
at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:364)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:214)
at com.intellij.openapi.project.impl.ProjectLoadHelper.registerComponents(projectLoader.kt:25)
at com.intellij.openapi.project.impl.ProjectManagerImpl.initProject(ProjectManagerImpl.java:171)
at com.intellij.openapi.project.impl.ProjectManagerExImpl.prepareProject(ProjectManagerExImpl.kt:242)
at com.intellij.openapi.project.impl.ProjectManagerExImpl.access$prepareProject(ProjectManagerExImpl.kt:52)
at com.intellij.openapi.project.impl.ProjectManagerExImpl$openProject$$inlined$runInAutoSaveDisabledMode$lambda$1.invoke(ProjectManagerExImpl.kt:104)
at com.intellij.openapi.project.impl.ProjectManagerExImpl$openProject$$inlined$runInAutoSaveDisabledMode$lambda$1.invoke(ProjectManagerExImpl.kt:52)
at com.intellij.openapi.project.impl.ProjectUiFrameAllocator$run$progressTask$1.run(ProjectFrameAllocator.kt:86)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$new$0(ProgressRunner.java:79)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
2022-12-04 19:36:56,477 [ 8910] ERROR - ect.impl.ProjectFrameAllocator - Android Studio Arctic Fox | 2020.3.1 Patch 4 Build #AI-203.7717.56.2031.7935034
2022-12-04 19:36:56,477 [ 8910] ERROR - ect.impl.ProjectFrameAllocator - JDK: 11.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2022-12-04 19:36:56,477 [ 8910] ERROR - ect.impl.ProjectFrameAllocator - OS: Mac OS X
2022-12-04 19:36:56,477 [ 8910] ERROR - ect.impl.ProjectFrameAllocator - Last Action:
2022-12-04 19:36:56,482 [ 8915] INFO - gs.impl.UpdateCheckerComponent - channel: release
Anyone who experienced the similar issue can tell me, thanks!
Thanks, I resolved by finding the real path of AS then deleted the libs.

Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'

Although this question has been asked by others, none of the provided solutions work for my use case.
Environment
System:
OS: macOS 12.3.1
CPU: (10) arm64 Apple M1 Pro
Memory: 202.25 MB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.1.0 - ~/.nvm/versions/node/v16.1.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 7.11.2 - ~/.nvm/versions/node/v16.1.0/bin/npm
Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /Users/AH94896/.jenv/shims/javac (Using Java 1.8 gives same result)
npmPackages:
#react-native-community/cli: Not Found
react: 16.14.0 => 16.14.0
react-native: 0.64.1 => 0.64.1
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
------------------------------------------------------------
Gradle 6.5.1
------------------------------------------------------------
Build time: 2020-06-30 06:32:47 UTC
Revision: 66bc713f7169626a7f0134bf452abde51550ea0a
Kotlin: 1.3.72
Groovy: 2.5.11
Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM: 11.0.15 (Eclipse Adoptium 11.0.15+10)
OS: Mac OS X 12.3.1 x86_64
Description
I can clean the app using ./gradlew clean. But when launching using npx react-native run-android, the build fails in the same spot:
> Configure project :react-native-reanimated
No AAR for react-native-reanimated found. Attempting to build from source.
Native libs debug enabled: false
Android gradle plugin: 4.1.0
Gradle: 6.5.1
building Reanimated2
> Task :react-native-reanimated:compileDebugJavaWithJavac FAILED
The place in the build process where it goes awry is this
/Users/AH94896/projects/app/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIImplementation.java:13: error: cannot find symbol
ViewManagerResolver viewManagerResolver,
^
symbol: class ViewManagerResolver
location: class ReanimatedUIImplementation
/Users/AH94896/projects/app/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIImplementation.java:11: error: recursive constructor invocation
public ReanimatedUIImplementation(
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
The REALLY odd fact is that NO ONE else on my team experiences this problem whether using Apple M1 or Intel Macs. I have exhausted every resource I've found searching for a solution.
Please ask if you need more info. This is a critical blocker for my project work.

Android Studio startup configuration

Any help to feature out how to setup Android Studio startup configuration params will be appreciated. I have Android Studio 2.2 running on MAC, plus installed SDK
on /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home.
My problem that the current Android Studio instance is running by referencing to the embedded JDK which lacks essential jars I need for proper plugin operation.
Looking at this IDE log I see the following
2016-09-21 07:54:03,906 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2016-09-21 07:54:03,936 [ 30] INFO - #com.intellij.idea.Main - IDE: Android Studio (build #AI-145.3276617, 15 Sep 2016 00:00)
2016-09-21 07:54:03,936 [ 30] INFO - #com.intellij.idea.Main - OS: Mac OS X (10.11.6, x86_64)
2016-09-21 07:54:03,936 [ 30] INFO - #com.intellij.idea.Main - JRE: 1.8.0_76-release-b03 (JetBrains s.r.o)
2016-09-21 07:54:03,936 [ 30] INFO - #com.intellij.idea.Main - JVM: 25.76-b03 (OpenJDK 64-Bit Server VM)
2016-09-21 07:54:03,943 [ 37] INFO - #com.intellij.idea.Main - JVM Args: -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -da -Djna.nosys=true -Djna.boot.library.path= -Djna.debug_load=true -Djna.debug_load.jna=true -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Xverify:none -Xbootclasspath/a:../lib/boot.jar -Xms256m -Xmx1280m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops -Djb.vmOptionsFile=/Applications/Android Studio.app/Contents/bin/studio.vmoptions -Didea.java.redist=Bundled -Didea.home.path=/Applications/Android Studio.app/Contents -Didea.executable=studio -Didea.platform.prefix=AndroidStudio -Didea.paths.selector=AndroidStudio2.2
2016-09-21 07:54:03,943 [ 37] INFO - #com.intellij.idea.Main - ext: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/jre/lib/ext: [cldrdata.jar, dnsns.jar, jaccess.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunpkcs11.jar, zipfs.jar]
2016-09-21 07:54:03,944 [ 38] INFO - #com.intellij.idea.Main - ext: /System/Library/Java/Extensions: [MRJToolkit.jar]
I need ether to reset the following line ext: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/jre/lib/ext: to make it to refer to jdk1.8.0_77.jdk or to add an extra ext entry to the startup configuration.
Thanks a lot
You can point a custom JDK by adding the the environment variable STUDIO_JDK.
export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_77..
See http://tools.android.com/tech-docs/configuration/osx-jdk
Eventually I found how it's possible to handle this. I had to add java.ext.dirs JVM parameter to studio.vmoptions file to instruct the luncher where to lookup for extra libs
-Djava.ext.dirs=/Library/Java/JavaVirtualMachines/JDK-VERSION/Contents/Home/jre/lib/ext

Android studio hangs with no reason

I have worked on a project for weeks now on android studio but few hours ago android studio just hangs with no abvious reason. I restart it, I restart the PC, I did "Invalidate Caches / Restart". I search for solutions on google but no luck specially that I don't know what's the reason.
when I open Android studio it open the project but after a few seconds it hangs even if I don't do anything at all.
#user4847410
this is idea.log
2015-06-29 17:48:54,801 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2015-06-29 17:48:54,856 [ 55] INFO - #com.intellij.idea.Main - IDE: Android Studio (build #AI-141.1980579, 03 Jun 2015 00:00)
2015-06-29 17:48:54,856 [ 55] INFO - #com.intellij.idea.Main - OS: Windows 7 (6.1, amd64)
2015-06-29 17:48:54,856 [ 55] INFO - #com.intellij.idea.Main - JRE: 1.8.0_45-b15 (Oracle Corporation)
2015-06-29 17:48:54,856 [ 55] INFO - #com.intellij.idea.Main - JVM: 25.45-b02 (Java HotSpot(TM) 64-Bit Server VM)
2015-06-29 17:48:54,858 [ 57] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=225m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Djna.nosys=true -Djna.boot.library.path= -Djna.debug_load=true -Djna.debug_load.jna=true -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Didea.paths.selector=AndroidStudio1.2 -Didea.platform.prefix=AndroidStudio -Djb.vmOptions=C:\Program Files\Android\Android Studio\bin\studio64.exe.vmoptions -Xbootclasspath/a:C:\Program Files\Android\Android Studio\lib\boot.jar -Didea.jre.check=false
2015-06-29 17:48:55,221 [ 420] INFO - #com.intellij.idea.Main - JNA library loaded (64-bit) in 363 ms
2015-06-29 17:48:55,223 [ 422] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2015-06-29 17:48:55,223 [ 422] INFO - #com.intellij.idea.Main - Using "FocusKiller" library to prevent focus stealing.
2015-06-29 17:48:56,355 [ 1554] INFO - llij.ide.plugins.PluginManager - 25 plugins initialized in 476 ms
2015-06-29 17:48:56,358 [ 1557] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android Support (10.1.2.2), CVS Integration (11), Copyright (8.1), Coverage, EditorConfig (1.0), Git Integration (8.1), GitHub, Google Cloud Testing (1.0), Google Cloud Tools For Android Studio (0.2.8), Google Login (1.0), Gradle, Groovy (9.0), I18n for Java, IDEA CORE, IntelliLang (8.0), JUnit (1.0), Java Bytecode Decompiler (0.1), JavaFX (1.0), Maven Integration, Properties Support, Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), hg4idea (10.0)
2015-06-29 17:48:56,866 [ 2065] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; max=739246080
2015-06-29 17:48:56,904 [ 2103] INFO - api.vfs.impl.local.FileWatcher - Starting file watcher: C:\Program Files\Android\Android Studio\bin\fsnotifier.exe
2015-06-29 17:48:56,912 [ 2111] INFO - api.vfs.impl.local.FileWatcher - Native file watcher is operational.
2015-06-29 17:48:57,287 [ 2486] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: []
2015-06-29 17:48:57,487 [ 2686] INFO - org.jetbrains.io.BuiltInServer - We cannot bind to our default range, so, try to bind to any free port
2015-06-29 17:48:57,781 [ 2980] INFO - rains.ide.BuiltInServerManager - built-in server started, port 58491
2015-06-29 17:48:57,986 [ 3185] INFO - TestNG Runner - Create TestNG Template Configuration
2015-06-29 17:48:58,029 [ 3228] INFO - ellij.project.impl.ProjectImpl - 20 project components initialized in 345 ms
2015-06-29 17:48:58,030 [ 3229] INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
2015-06-29 17:48:58,487 [ 3686] INFO - pl.stores.ApplicationStoreImpl - 83 application components initialized in 2111 ms
2015-06-29 17:48:58,509 [ 3708] INFO - .intellij.idea.IdeaApplication - App initialization took 4215 ms
2015-06-29 17:48:59,346 [ 4545] INFO - TestNG Runner - Create TestNG Template Configuration
2015-06-29 17:48:59,558 [ 4757] INFO - ellij.project.impl.ProjectImpl - 136 project components initialized in 602 ms
2015-06-29 17:48:59,698 [ 4897] INFO - le.impl.ModuleManagerComponent - 2 module(s) loaded in 139 ms
2015-06-29 17:49:02,318 [ 7517] INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 2051 ms
2015-06-29 17:49:03,847 [ 9046] INFO - tartup.impl.StartupManagerImpl - E:\android_studio_workspace\IraqiExc.idea\misc.xml case-sensitivity: false
2015-06-29 17:49:04,083 [ 9282] INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 41 ms
2015-06-29 17:49:04,263 [ 9462] INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min)
2015-06-29 17:49:04,563 [ 9762] INFO - CompilerWorkspaceConfiguration - Available processors: 8
2015-06-29 17:49:05,113 [ 10312] INFO - nject.config.XPathSupportProxy - XPath Support is not available
2015-06-29 17:49:05,164 [ 10363] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestSupportsInput
2015-06-29 17:49:05,164 [ 10363] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestCompatibleScreens
2015-06-29 17:49:05,411 [ 10610] INFO - tor.impl.FileEditorManagerImpl - Project opening took 6491 ms

IntelliJ new android gradle plugin (0.14.+)

I'm trying to use the new android gradle plugin in IntelliJ but I can't seem to build my project using the new gradle plugin.
I modified the dependencies in the application's build.gradle file to "classpath 'com.android.tools.build:gradle:0.14.+'", I have updated the gradle to 2.1 and I have updated the build.gradle file in my module.
I keep getting this error in the IntelliJ logs:
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - IntelliJ IDEA 13.1.5 Build #IU-135.1289
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - JDK: 1.8.0_05
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - VM: Java HotSpot(TM) 64-Bit Server VM
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - Vendor: Oracle Corporation
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - OS: Windows 8
2014-11-03 16:40:12,864 [ 937413] ERROR - vice.AndroidProjectDataService - Last Action: ShowSettings
2014-11-03 16:40:13,130 [ 937679] INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 5 ms
2014-11-03 16:40:13,130 [ 937679] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2014-11-03 16:40:13,130 [ 937679] INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
2014-11-03 16:41:02,813 [ 987362] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_05
2014-11-03 16:41:02,815 [ 987364] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:\Program Files\Java\jdk1.8.0_05
2014-11-03 16:41:02,821 [ 987370] INFO - .project.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: [-Pandroid.injected.build.model.only=true, -Pandroid.injected.invoked.from.ide=true, --init-script, C:\Users\ionut.negru\AppData\Local\Temp\ijinit8822454065314970200.gradle]
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - Failed to set up Android modules in project 'MyApplication'
org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: SourceProvider.getJniDirectories().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33)
at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:240)
at com.sun.proxy.$Proxy128.getJniDirectories(Unknown Source)
at com.android.tools.idea.gradle.customizer.android.ContentRootModuleCustomizer.addSourceFolder(ContentRootModuleCustomizer.java:170)
at com.android.tools.idea.gradle.customizer.android.ContentRootModuleCustomizer.addSourceFolders(ContentRootModuleCustomizer.java:120)
at com.android.tools.idea.gradle.customizer.android.ContentRootModuleCustomizer.setUpContentEntries(ContentRootModuleCustomizer.java:85)
at com.android.tools.idea.gradle.customizer.android.ContentRootModuleCustomizer.setUpContentEntries(ContentRootModuleCustomizer.java:45)
at com.android.tools.idea.gradle.customizer.AbstractContentRootModuleCustomizer.customizeModule(AbstractContentRootModuleCustomizer.java:56)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.customizeModule(AndroidProjectDataService.java:191)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.access$100(AndroidProjectDataService.java:64)
at com.android.tools.idea.gradle.service.AndroidProjectDataService$1.run(AndroidProjectDataService.java:126)
at com.intellij.openapi.command.WriteCommandAction$Simple.run(WriteCommandAction.java:168)
at com.intellij.openapi.application.RunResult.run(RunResult.java:38)
at com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:118)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:115)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:112)
at com.intellij.openapi.command.WriteCommandAction.access$000(WriteCommandAction.java:33)
at com.intellij.openapi.command.WriteCommandAction$1.run(WriteCommandAction.java:80)
at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:85)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.doImport(AndroidProjectDataService.java:114)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.importData(AndroidProjectDataService.java:97)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:90)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:74)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:98)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:74)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:98)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback$1$1.run(ExternalSystemUtil.java:766)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.mergeRootsChangesDuring(ProjectRootManagerImpl.java:329)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback$1.execute(ExternalSystemUtil.java:763)
at com.intellij.openapi.externalSystem.util.DisposeAwareProjectChange.run(DisposeAwareProjectChange.java:36)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5$1.run(ExternalSystemApiUtil.java:364)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5.run(ExternalSystemApiUtil.java:361)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - IntelliJ IDEA 13.1.5 Build #IU-135.1289
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - JDK: 1.8.0_05
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - VM: Java HotSpot(TM) 64-Bit Server VM
2014-11-03 16:41:07,002 [ 991551] ERROR - vice.AndroidProjectDataService - Vendor: Oracle Corporation
2014-11-03 16:41:07,003 [ 991552] ERROR - vice.AndroidProjectDataService - OS: Windows 8
2014-11-03 16:41:07,003 [ 991552] ERROR - vice.AndroidProjectDataService - Last Action: ExternalSystem.RefreshAllProjects
2014-11-03 16:41:07,290 [ 991839] INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 6 ms
2014-11-03 16:41:07,290 [ 991839] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2014-11-03 16:41:07,290 [ 991839] INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
I am doing something wrong ? Or at this moment it isn't possible to use the new android gradle plugin on IntelliJ, althought I've read that IntelliJ should have all the features that Android Studio has.
PS: I'm using IntelliJ Ultimate version and I'm avoiding to move to Android Studio as some features from the Ultimate version won't be available in Android Studio.
[Update]
After some more research I found from another SO question that IntelliJ doesn't keep up with android gradle plugin. There is some delay between AS and IntelliJ. More info can be found here: What is the Android plugin version included in IntelliJ IDEA? on #Scott Barta response.
As it seems IntelliJ 13.1.5 supports only com.android.tools.build:gradle:0.13.0. Maybe in a few days/weeks IntelliJ will pull the android gradle plugin from AS and push it into their product.
This is a duplicate of UnsupportedMethodException Android Studio 0.8.9
You either need to upgrade Android Studio to 0.9 or downgrade the android plugin to lower than 14 in your build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:0.13.+'
}
}
Just updating dosn't work for me. what worked is update the beta version than udate in the canary channel after updating the beta version
Just click on update then change the channel and the click on oK
just try this https://stackoverflow.com/a/22308639/663540
When I update the gradle plugins to 0.14 in build.gradle,I met the error DefaultActivity not found, I try the answer above and finally build successful in IDEA 14.
It seams that you error stack is related to the problem I met.
I've tested with build 139.658.4, released on December 4th, 2014 and it's working fine with plugin 0.14.4
If you want to give a try:
http://confluence.jetbrains.com/display/IDEADEV/IDEA+14+EAP

Categories

Resources