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 ?
Asked
Active
Viewed 1.3k times
6
-
You should post errors first, after that we'll figure something out. – aga Dec 09 '14 at 09:40
-
1possible duplicate of [Android Studio 1.0 and error "Library projects cannot set applicationId"](http://stackoverflow.com/questions/27374933/android-studio-1-0-and-error-library-projects-cannot-set-applicationid) – gio Dec 09 '14 at 09:49
-
1remove the line applicationId aviarySdkPackageName from the library grade file. It will work w/o problems – Tazz Dec 09 '14 at 10:03
2 Answers
25
Try to remove the applicationId parameter from the defaultConfig in your library's build.gradle files.
That should work

Pablo Johnson
- 1,044
- 15
- 21
-
removing applicationId is giving `error: element value must be a constant expression` R.java not found to import. can you solve this ? – Logic Apr 27 '16 at 10:38
-
I think your error is not caused by the deletion of the applicationId. Try making a "clean project", if that doesnt work try restoring the applicationId and see if the problem persist (just to descart that the error is due to the deletion of the applicationId). – Pablo Johnson Apr 27 '16 at 15:20
0
# 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.

Ashutosh Srivastava
- 597
- 1
- 9
- 13