java - 错误 :Cause: failed to find target with hash string 'Google Inc.:Google APIs:23' in: E:\AndroidStudio\SDK

标签 java android android-studio

我有上述错误,但不知道为什么我仍然有它。我已经多次重新安装 API 23 并进行了谷歌搜索,我发现的唯一解决方法是重新安装 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'
    }

最佳答案

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

关于java - 错误 :Cause: failed to find target with hash string 'Google Inc.:Google APIs:23' in: E:\AndroidStudio\SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35450417/

相关文章:

java - 有效地存储许多组件的 boolean 事件的简短历史记录

java - ImageLabel 未显示在 BorderLayout.NORTH 中 - Java Swing

android - Google Place api for android : How to know which is address, 城市或郊区从谷歌返回

android - 自定义 Android 按钮图像周围的红色圆圈

java - 导航说明

java - 用java编写正则表达式。使用 string.split() 方法。我希望它在第一次出现 '(' 后停止 split

java - 随机算术表达式 (Android)

java - ARCore session 未重新启动

java - 某些 Android 设备上应用程序崩溃的原因是什么

java - CameraUpdateFactory 未初始化