首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >错误:原因:在E:\AndroidStudio\SDK中找不到散列字符串为'Google Inc.:Google APIs:23‘的目标

错误:原因:在E:\AndroidStudio\SDK中找不到散列字符串为'Google Inc.:Google APIs:23‘的目标
EN

Stack Overflow用户
提问于 2016-02-17 15:31:04
回答 5查看 32.8K关注 0票数 32

我有上面的错误,并且不知道为什么我仍然有它。我已经重新安装了API23无数次,并做了谷歌搜索,我找到的唯一修复是重新安装API,但仍然有问题。

有没有人能解决这个问题?

代码语言:javascript
复制
        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'
    }
EN

回答 5

Stack Overflow用户

回答已采纳

发布于 2016-02-17 15:44:42

尝试使用compileSdkVersion 23而不是compileSdkVersion 'Google Inc.:Google APIs:23'

票数 73
EN

Stack Overflow用户

发布于 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"

票数 6
EN

Stack Overflow用户

发布于 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 )

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35450417

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档