pRa*_*NaY 1 android build.gradle google-awareness
在我的Android Studio中克隆Aware repo时,同步gradle,我得到以下消息:
无法同步Gradle项目'app'
错误:找不到com.google.android.gms:play-services-contextmanager:9.2.0.要求:Aware:app:unspecified
compile 'com.google.android.gms:play-services-contextmanager:9.2.0' 已经存在于我的build.gradle中
请参阅build.gradle:
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.hitherejoe.aware"
minSdkVersion 21
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'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.android.gms:play-services-contextmanager:9.2.0'
compile 'com.android.support:design:23.0.1'
compile 'com.jakewharton:butterknife:8.1.0'
apt 'com.jakewharton:butterknife-compiler:8.1.0'
}
Run Code Online (Sandbox Code Playgroud)
需要帮助来构建项目.任何人都可以说我错过了什么?
Awareness API依赖项已重命名为com.google.android.gms:play-services-awareness.您的编译语句应如下所示:
compile 'com.google.android.gms:play-services-awareness:9.6.1'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
949 次 |
| 最近记录: |