Status Update
Comments
uc...@google.com <uc...@google.com>
xa...@google.com <xa...@google.com>
jo...@jossiwolf.de <jo...@jossiwolf.de> #2
Build: AI-201.7223.91.41.6507185, 202005182153,
AI-201.7223.91.41.6507185, JRE 1.8.0_242-release-1644-b01x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1080
AS: 4.1 Canary 10; Kotlin plugin: 1.3.61-release-Studio4.1-1; Android Gradle Plugin: 4.1.0-alpha10; Gradle: 6.5; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: 3.10.2, from PATH: (not found)
This also happens to me on AS 4.1 Canary 10. Is there anything I can do to fix this? Building from the command line works.
sr...@google.com <sr...@google.com> #3
The setting is stored in the gradle.xml file in the .idea/ folder of the project, that used to be visible in the dialog box that this link opens.
As a workaround You can edit the file and remove the value manually, doing so will use the default, indicating that the one from the project structure dialog should be used.
There was a simplification for that dialog in one of the merges from IDEA but this setting is still used, so probably this comes from a project created with a version of studio that used to have this setting available.
sr...@google.com <sr...@google.com> #4
Just to complete workaround from
jo...@jossiwolf.de <jo...@jossiwolf.de> #5
Awesome, can confirm that that fix works!
sr...@google.com <sr...@google.com> #6
Next beta and canary releases (4.1 beta 3 and 4.2 canary 3) will contain a quick fix to use the project JDK when this happens.
li...@gmail.com <li...@gmail.com> #7
Next
li...@gmail.com <li...@gmail.com> #8
Done
jd...@google.com <jd...@google.com> #9
I am seeing this error whenever I create a new project in Android Studio with Arctic Fox 13 (and also previously with Arctic Fox 12), and it seems like nothing I do fixes this for new projects. The generated projects also do not build:
$ ./gradlew assembleDebug
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
FAILURE: Build failed with an exception.
* Where:
Settings file '/home/jdkoren/projects/android/empty/settings.gradle' line: 1
* What went wrong:
A problem occurred evaluating settings 'empty'.
> Could not find method dependencyResolutionManagement() for arguments [settings_a49uwmtd4itjn4aj0gbq4zlwx$_run_closure1@1008a9d2] on settings 'empty' of type org.gradle.initialization.DefaultSettings.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
jd...@google.com <jd...@google.com> #10
I'm encountering this error on Arctic Fox 13. Comments 3 and 4 suggest removing the gradleJvm
value from GradleProjectSettings
, but there is no such value in the generated project's .idea/gradle.xml
file:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
jd...@google.com <jd...@google.com> #11
My issue seems to be different, and we've filed
Description
Build: AI-201.3803.71.41.6466190, 202005060355,
AI-201.3803.71.41.6466190, JRE 1.8.0_242-release-1644-b3-6222593x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15.4, screens 1680x1050; Retina
AS: 4.1 Canary 9; Kotlin plugin: 1.3.61-release-Studio4.1-1; Android Gradle Plugin: 4.1.0-dev; Gradle: 6.4; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
I opened up my project with 4.1 canary 9 and Gradle sync fails with the message "Invalid Gradle JDK configuration found". There is a quickfix to open Gradle Settings -- so I click on it -- but there's nothing obvious in that dialog that I should do. What does this message mean? How do I fix it? We should do a better job intercepting this and adding details.