Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同步报错 #4

Open
booldplx opened this issue Sep 5, 2024 · 1 comment
Open

同步报错 #4

booldplx opened this issue Sep 5, 2024 · 1 comment

Comments

@booldplx
Copy link

booldplx commented Sep 5, 2024

大佬超,Gradle、插件和你的版本一样的,AS版本是:Android Studio Koala Feature Drop | 2024.1.2。模块化的

报错内容:The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.5.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:packageApk' with value 'link_test', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'. However we cannot choose between the following variants of project :main:
- Configuration ':main:link_testDebugApiElements' variant android-classes-jar declares a component for use during compile-time, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.5.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.ProductFlavor:packageApk' with value 'link_test':
- Unmatched attributes:

@wesley200715
Copy link

请问解决了吗,我也遇到差不多的错误Caused by: org.gradle.internal.component.resolution.failure.exception.ArtifactSelectionException: The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'. However we cannot choose between the following variants of project :ui:base:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants