android studio 1.0 Library projects cannot set applicationId. applicationId is set to '' in default config

13.4k Views Asked by At

I set the "applicationId aviarySdkPackageName" in Aviary's build.gradle. I updated the android studio and it shows error: Library projects cannot set applicationId. applicationId is set to '' in default config. But after I removed this line, there are many errors in Aviary. Do you know what should I do ?

2

There are 2 best solutions below

2
On BEST ANSWER

Try to remove the applicationId parameter from the defaultConfig in your library's build.gradle files.

That should work

0
On
   # ApplicationId in Library Projects#

    You cannot use applicationId to customize the package of a library project. The package name has to be fixed in library projects (and specified as packageName in the manifest). The Gradle plugin did not enforce this restriction earlier.