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

Doesn't work with new Android Gradle 3.0 plugin #81

Closed
uberbinge opened this issue Sep 22, 2017 · 16 comments
Closed

Doesn't work with new Android Gradle 3.0 plugin #81

uberbinge opened this issue Sep 22, 2017 · 16 comments

Comments

@uberbinge
Copy link

I am using new Android studio 3.0, and migrating gradle scripts to 3.0 according to migration guide provided here

The latest master of fataar.gradle compiles fine, but when I actually change dependencies to embedded and run assembleRelease I get following errors for each dependent module.

Could not resolve project :module-a. Required by: project :main-module > Cannot choose between the following configurations of project :module-a: - debugApiElements - debugRuntimeElements - releaseApiElements - releaseRuntimeElements All of them match the consumer attributes: - Configuration 'debugApiElements': - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required. - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required. - Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but wasn't required. - Found org.gradle.api.attributes.Usage 'java-api' but wasn't required. - Configuration 'debugRuntimeElements': - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required. - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required. - Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but wasn't required. - Found org.gradle.api.attributes.Usage 'java-runtime' but wasn't required. - Configuration 'releaseApiElements': - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required. - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required. - Found com.android.build.gradle.internal.dependency.VariantAttr 'release' but wasn't required. - Found org.gradle.api.attributes.Usage 'java-api' but wasn't required. - Configuration 'releaseRuntimeElements': - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required. - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required. - Found com.android.build.gradle.internal.dependency.VariantAttr 'release' but wasn't required. - Found org.gradle.api.attributes.Usage 'java-runtime' but wasn't required.

I have following versions of Gradle and build tools:
androidGradlePlugin: '3.0.0-beta6', buildTools : '26.0.1', distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

@uberbinge uberbinge changed the title Doesn't work with new Android gradle plugin Doesn't work with new Android gradle 3.0 plugin Sep 22, 2017
@uberbinge uberbinge changed the title Doesn't work with new Android gradle 3.0 plugin Doesn't work with new Android Gradle 3.0 plugin Sep 22, 2017
@jolly336
Copy link

jolly336 commented Mar 9, 2018

@waah42 I also get this error,have you solved this?

@uberbinge
Copy link
Author

@haoxunwang sadly not yet 😞 ,

@Sarubbaru
Copy link

+1

8 similar comments
@taojiujiu
Copy link

+1

@genamendola17
Copy link

+1

@tetnic
Copy link

tetnic commented Apr 3, 2018

+1

@lgengsy
Copy link

lgengsy commented Apr 19, 2018

+1

@Sarubbaru
Copy link

+1

@frenk91
Copy link

frenk91 commented May 16, 2018

+1

@SalvatoreZuardi
Copy link

+1

@iastemesem
Copy link

+1

@uberbinge
Copy link
Author

As i see new people also looking for the solution, please star this issue on official google issue tracker||https://issuetracker.google.com/issues/62121508

@mengchaoshen
Copy link

+1

@deng0515001
Copy link

+1

@deng0515001
Copy link

@waah42 I also get this error,have you solved this?

@wnchen
Copy link

wnchen commented Jun 13, 2018

+1

@byhook
Copy link

byhook commented Jun 21, 2018

建议大家用gradle 2.2.3插件版本
可以看下我踩过的坑
https://juejin.im/post/5b28672bf265da59645b031a

@AvivVegh
Copy link

+1

@uberbinge uberbinge closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2023
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