如何在Android studio中添加模块
我在项目中导入了daimaja AndroidImageSlider库的模块 这里是链接 现有模块名为library。我已经有了library模块名 我更改了模块imageslider的名称 进口如何在Android studio中添加模块,android,Android,我在项目中导入了daimaja AndroidImageSlider库的模块 这里是链接 现有模块名为library。我已经有了library模块名 我更改了模块imageslider的名称 进口 apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "
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'
}
上面是我在dependency中添加的gradle文件
gradle生成失败后发生错误
Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer
这是错误请帮助导入此库将模块放入应用程序项目中:
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
然后,将其作为库依赖项添加到应用程序中。(模块设置):
将模块放入应用程序项目中:
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
然后,将其作为库依赖项添加到应用程序中。(模块设置):
请发布完整的gradle,我想有一行开头是:apply from如果你在这里查看gradle文件----它有一个额外的行--(apply from:“./gradle mvn push.gradle”)--不确定,但也许你需要这个文件加上这个文件来添加你的项目--请遵循完整的gradle,我认为有一行开头是:apply from如果你在这里查看gradle文件-,它在那里有一个额外的行-(apply from:“./gradle mvn push.gradle”)--不确定,但可能你需要这个文件加上这个文件来添加你的项目--请遵循