我是项目中daimaja AndroidImageSlider库的导入模块 这是链接https://github.com/daimajia/AndroidImageSlider
现有模块名称是库.i已经有库模块名称
我更改名称模块imageslider 并导入
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.technosoftera.tradegateway"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':imageslide')
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile files('libs/gson-2.3.1.jar')
compile files('libs/okhttp-urlconnection-2.5.0.jar')
compile 'com.wunderlist:sliding-layer:1.2.5'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.androidanimations:library:1.0.3@aar'
}
上面是我依赖添加的gradle文件
gradle build failed错误发生后
Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer
这是错误,请帮助导入此库
答案 0 :(得分:4)
将模块放在Application Project中:
Right click on Application->Open Module Settings -> Click on the '+' icon ->
Select the root directory for your library module you'd like to add ->
Follow the prompts
然后,将其作为库依赖项添加到Application。(模块设置):
Select your Application module -> Select the Dependencies tab on the right ->
Click the '+' icon on the bottom -> Select Module Dependency -> Select your
desired library module