googlearchive / android-instant-apps

Migrated:
https://github.com/android/app-bundle
Apache License 2.0
846 stars 277 forks source link

gradle sync error on 3.0 canary 5 #18

Closed holoduke closed 7 years ago

holoduke commented 7 years ago

whenever i try to sync one of the example projects i am getting the following error:

Error:Android Gradle plugin 3.0.0-alpha5 must not be applied to project ...../AndroidStudioProjects/android-instant-apps/multi-feature-module/base since version 3.0.0-alpha5 was already applied to this project

screen shot 2017-07-04 at 11 11 57

Is there any work around?

xinyangmaojian commented 7 years ago

i have this problem too .

amartinz commented 7 years ago

Disable "configure on demand" in settings and gradle.properties.

image

gradle.properties in your top project root

org.gradle.configureondemand=false

then stop all gradle daemons and go to "File -> Invalidate Caches / Restart" and invalidate and restart.

should be fixed in Canary 6

https://issuetracker.google.com/issues/63178989

keyboardsurfer commented 7 years ago

There is an update to alpha6 available in the repository now. Please check if your issues persist and re-open the issue in that case.