SciJoker SciJoker - 1 year ago 426
Android Question

Gradle: Error: more than one library with package name ''

What does this error message mean? I don't have duplicated packages in my project

Error:Execution failed for task ':SimpleReader:processDebugResources'.

Error: more than one library with package name ''

You can temporarily disable this error with
android.enforceUniquePackageName=false However, this is temporary and
will be enforced in 1.0

looks like this:

buildscript {

repositories {
maven { url '' }
dependencies {
classpath ''
apply plugin: 'android'
android {
buildToolsVersion '19.0.3'
defaultConfig {
minSdkVersion 14
targetSdkVersion 17

compileSdkVersion 17
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
buildTypes {
dependencies {
compile ''
compile ''
compile files('libs/gson-2.2.4.jar')
compile files('libs/httpmime-4.1.jar')
compile files('libs/httpclient-4.1.1.jar')
compile files('libs/jsoup-1.7.3.jar')
compile project(':libraries:actionbarsherlock')
compile project(':libraries:sherlocknavigationdrawer')
compile project(':libraries:googleplayservices')
compile project(':libraries:androidslidinguppanel')
compile files('libs/protocol-1.0.4.jar')
compile files('libs/sentry-0.1.4.jar')
compile files('libs/commons-lang-2.3.jar')


In my case, the problem was because I was including:

compile ''
compile ''

both the wearable play services, and the regular. I commented out the wearable part, and it works.
Not sure if I'll need it, but it was included by default by the project wizard