Status Update
Comments
ga...@google.com <ga...@google.com> #2
Thanks for filing this issue, this is may be that we add to visited
set after recursive call in
Can you please share build files for your project, there is most likely a cyclic dependency in the .pom/.module file causing this?
ka...@google.com <ka...@google.com> #3
ga...@google.com <ga...@google.com> #4
This reproduces with
dependencies {
implementation "androidx.lifecycle:lifecycle-common-java8:2.4.0"
}
The issue is that we have
androidx.lifecycle:lifecycle-common-java8:2.4.0
-> androidx.lifecycle:lifecycle-common:2.4.0
and .module file for lifecycle-common
has
"dependencies": [
{
"group": "androidx.annotation",
"module": "annotation",
"version": {
"requires": "1.1.0"
}
}
],
"dependencyConstraints": [
{
"group": "androidx.lifecycle",
"module": "lifecycle-common-java8",
"version": {
"requires": "2.4.0"
}
}
],
In FullDependencyGraphBuilder
we should ignore dependency constraints.
ka...@google.com <ka...@google.com> #5
In the meantime, and in order to avoid Sync failures, please follow these steps:
- go to Help > Edit Custom VM Options…
- A studio.vmptions file should open. Paste this text in it:
-Dgradle.sync.use.v2=false
- Restart Android Studio.
Sync should have the same behaviour as in Canary 4.
st...@warting.se <st...@warting.se> #6
When you say you want the build files, what do you mean by that? The entire project?
ka...@google.com <ka...@google.com> #7
oh my bad. Can you please add -Didea.is.internal=true
in the first line, restart Android Studio, and then add -Dgradle.sync.use.v2=false
.
Please let me know if it doesn't work ! Make sure you also clean the project and not to use cached Sync.
Thanks.
ga...@google.com <ga...@google.com> #8
Re #6: There is no need to share the project, I was able to reproduce already in #4.
st...@warting.se <st...@warting.se> #9
./gradlew clean
removed gradle enterprice build cache directory
and then "rm -rf $HOME/.gradle/caches/
I have installed canary 5 from jetbrain toolbox. Does that make any differences on how to set this properties?
ka...@google.com <ka...@google.com> #10
Can you put -Dgradle.ide.gradle.sync.use.v2=false
instead of -Dgradle.sync.use.v2=false
and try again please ?
No these properties should be available once you add internal option. I can also show you how to do it from the UI in case this suggestion doesn't work too !
st...@warting.se <st...@warting.se> #11
st...@warting.se <st...@warting.se> #12
[MISSING_DEPENDENCY_SUPERCLASS] Cannot access 'java.lang.Object' which is a supertype of 'org.gradle.kotlin.dsl.PluginDependenciesSpecScope'. Check your module classpath for missing or conflicting dependencies
ga...@google.com <ga...@google.com> #13
This is now fixed in studio-main
branch, it will be released in the next AGP 7.2.0 version (7.2.0-alpha06 or 7.2.0-beta01).
change: ag/I2ba171f6d83f1feec640c57f1caa2fb1f3c80427
sa...@google.com <sa...@google.com> #14
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Chipmunk Canary 6 (2021.2.1.6)
- Android Gradle Plugin 7.2.0-alpha06
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
gr...@gmail.com <gr...@gmail.com> #15
Android Studio Chipmunk | 2021.2.1
Build #AI-212.5712.43.2112.8512546, built on April 29, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: Dart (212.5744), org.jetbrains.kotlin (212-1.6.21-release-334-AS5457.46), com.developerphil.adbidea (1.6.5), io.flutter (67.1.2)
ca...@careem.com <ca...@careem.com> #16
yeah same here. Upgrading from 7.1 to 7.2 this issue resurfaced on few of our projects. Does not happen with the sample project mentioned above in #3 so I'm trying to build a project that repros
ms...@olx.pl <ms...@olx.pl> #17
ca...@careem.com <ca...@careem.com> #18
I managed to repro with this project. adding the dependency to Huawei maps on agp 7.2.0 this problem reappears. FYI latest version of the maps fixes the AGP issue
ga...@google.com <ga...@google.com> #19
Thanks for filing that and sharing the project. The issue is slightly different than this one, please follow
ma...@thisisaim.com <ma...@thisisaim.com> #20
ga...@google.com <ga...@google.com> #21
Re #20: Can you please file a separate issue, as the root cause of this bug has already been fixed, and you probably hitting another problem.
ca...@careem.com <ca...@careem.com> #22
about #20, maybe he is hitting
Description
Stacktrace:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
java.lang.StackOverflowError
at com.android.build.gradle.internal.ide.dependencies.ResolvedArtifact.hashCode(ResolvedArtifact.kt)
at com.android.build.gradle.internal.ide.dependencies.LibraryServiceImpl.getLibrary(LibraryService.kt:117)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:175)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:182)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:182)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:182)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:182)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:182)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:182)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:182)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:182)
at com.android.build.gradle.internal.ide.dependencies.FullDependencyGraphBuilder.handleDependency(FullDependencyGraphBuilder.kt:182)
Build: AI-212.5457.46.2112.7905983, 202111111328,
AI-212.5457.46.2112.7905983, JRE 11.0.12+0-b1504.28-7817840x64 JetBrains s.r.o., OS Linux(amd64) v5.13.0-21-generic, screens 5120.0x1440.0
AS: Chipmunk | 2021.2.1 Canary 5; Kotlin plugin: 212-1.5.31-release-556-AS4638.7; Android Gradle Plugin: 7.2.0-alpha05; Gradle: 7.3; Gradle JDK: version 11.0.12; 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)Source: user_sentiment_feedback
IMPORTANT: Please read