我有上面的错误,并且不知道为什么我仍然有它。我已经重新安装了API23无数次,并做了谷歌搜索,我找到的唯一修复是重新安装API,但仍然有问题。
有没有人能解决这个问题?
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:23'
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.example.app"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
lintOptions {
disable 'InvalidPackage'
}
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.1.1'
compile 'com.android.support:design:23.1.1'
compile 'me.neavo:volley:2014.12.09'
compile 'com.google.code.gson:gson:2.5'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.android.support:support-v4:23.1.1'
}
发布于 2016-02-17 15:44:42
尝试使用compileSdkVersion 23
而不是compileSdkVersion 'Google Inc.:Google APIs:23'
发布于 2016-04-22 01:14:32
当我试图在Windows上构建一个最初在Ubuntu上构建的项目时,我得到了这个错误。如果您不确定是哪个build.gradle文件引起的,并且项目有多个模块,那么可以在项目中搜索“compileSdkVersion”。
Windows期望:compileSdkVersion 'Google Apis:Google Apis:23'
Ubuntu期望:compileSdkVersion "Google Inc.:Google APIs:23"
发布于 2016-09-09 14:25:03
主module
或任何library
必须使用SDK中未安装的'Google Inc.:Google APIs:23'
。所以试着修改它并编译
更改:compileSdkVersion 'Google Apis:Google Apis:23'
致:compileSdkVersion 23
(您需要在SDK中安装android-23 )
https://stackoverflow.com/questions/35450417
复制相似问题