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

Error while building Ex3.07-DeclareFlavours in Andriod studio 3.0 #71

Open
geekanamika opened this issue Dec 25, 2017 · 1 comment
Open

Comments

@geekanamika
Copy link

Android plugin 3.0.0 and higher include a new dependency mechanism that automatically matches variants when consuming a library.
Error:All flavors must now belong to a named flavor dimension.
Can i create a pull request by making changes inside build.gradle file ?
Resource required : https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html?utm_source=android-studio#variant_aware

@dnbit
Copy link
Contributor

dnbit commented Jan 3, 2018

@geekanamika
If we update it then the project will not work in Android Studio 2 versions. In order to keep compatibility, in case some student has not updated to Android Studio 3, we decided not to update this for now.

Instead, we have included in the course instructions on how to update this.

Sometimes this bits are tricky. When AS 3 was beta we needed to make sure that everything would work once it reached stable but at the same time we could not drop support for AS 2.

Eventually, we will end up dropping it and updating as you suggest.

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