Upgraded to Studio Canary build. My previous project of Telegram Messenger is giving following error.
Error:All flavors must now belong to a named flavor dimension. The flavor 'armv7' is not assigned to a flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html
What should I do? I have already seen that link but couldn't understand what to do. I have 3 build variants now, release,debug and foss.
After trying and reading carefully, I solved it myself. Solution is to add the following line in build.gradle.
If you want not to use dimensions you should use this line
but if you want ti use dimensions you should declare your dimension name first and then use this name after THIS example is from the documentations:
If you don't really need the mechanism, just specify a random flavor dimension in your
build.gradle
:For more information, check the migration guide
I have used flavorDimensions for my application in build.gradle (Module: app)
Check this link for more info
Here you can resolve this issue, you need to add flavorDimension with productFlavors's name and need to define dimension as well, see below example and for more information see here https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html