The project which was built in the previous versions of Android Studio does not want to compile in the latest RC1.
The project uses flavors and I keep getting message:
Could not find method packageName() for arguments [org.XXYYZZ.apps] on GroupableProductFlavor_Decorated{name=english, minSdkVersion=null, targetSdkVersion=null, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptNdkModeEnabled=null, versionCode=null, versionName=null, applicationId=null, testApplicationId=null, testInstrumentationRunner=null, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}}.
It seems that it breaks on the first flavor name as it's unable to use its method packageName
.
Gradle version is
dependencies {
classpath 'com.android.tools.build:gradle:0.14.4'
}
}
apply plugin: 'android'
...
What could be causing this error? Any ideas how to fix it?
PackageName is deprecated, it isn't supported anymore by the new Gradle plugin used in RC1. Use "applicationId" instead of "packageName" attribute.
Changes listed here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With