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

I have the above error and have no clue why I still have it. I have reinstalled API 23 numerous times and done googling and the only fix I found was to reinstall the API but still have the issue.

Does anyone have a fix for it?

  • How to make a .jar out of the Volley project?
  • How to convert MatOfPoint to MatOfPoint2f in opencv java api
  • OutOfMemoryError: bitmap size exceeds VM budget :- Android
  • Can't run a Java Android program with Valgrind
  • How to programmatically round corners and set random background colors
  • Extending ObjectGraph with overriding module
  •         apply plugin: ''
        android {
          compileSdkVersion 'Google Inc.:Google APIs:23'
          buildToolsVersion '23.0.2'
          defaultConfig {
            applicationId ""
            minSdkVersion 16
            targetSdkVersion 23
            versionCode 1
            versionName "1.0"
          lintOptions {
            disable 'InvalidPackage'
          buildTypes {
            release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
        dependencies {
          compile fileTree(dir: 'libs', include: ['*.jar'])
          testCompile 'junit:junit:4.12'
          compile ''
          compile ''
          compile 'me.neavo:volley:2014.12.09'
          compile ''
          compile 'com.jakewharton:butterknife:7.0.1'
          compile ''

    Related posts:

    Wrap text outside bezier curve in android
    retrieve original adapter from expandablelistview with header
    Android ExpandableListActivity and SimpleCursorTreeAdapter?
    Android: Internet connectivity change listener
    Butterknife 8.4.0 does not find views after re-running the app. It gets a NullPointerException
    VerifyError in android test-project build tools v17
  • Text overlay over imageview in android
  • java.lang.IllegalStateException: FirebaseApp with name
  • Espresso how to wait for some time(1 hour)?
  • Simple OCR app using android camera
  • Focus issue with multiple EditTexts
  • Android: Retrieve contact name from phone number
  • 7 Solutions collect form web for “Error:Cause: failed to find target with hash string 'Google Inc.:Google APIs:23' in: E:\AndroidStudio\SDK”

    Try to use compileSdkVersion 23 instead of compileSdkVersion 'Google Inc.:Google APIs:23'

    I got this error when trying to build a project on Windows that was originally built on Ubuntu. If you’re not sure which build.gradle file is causing it and the project has multiple modules, do a project search for “compileSdkVersion.”

    Windows expects: compileSdkVersion 'Google Apis:Google Apis:23'

    Ubuntu expects: compileSdkVersion "Google Inc.:Google APIs:23"

    Error:Cause: failed to find target with hash string 'Google Inc.:Google APIs:17' in: C:\Users\brahmaiah\AppData\Local\Android\Sdk

    Open Android SDK Manager</a>

    when i have been importing the proj of eclipse into android adt i faced same problem.but i rectrify throug the following content changing which is in file.i.e. {
    compileSdkVersion 23

    Main module or any library must be using 'Google Inc.:Google APIs:23' which is not installed in SDK. So try to change it and compile

    Change : compileSdkVersion 'Google Apis:Google Apis:23'

    To : compileSdkVersion 23 (You should have android-23 installed in SDK)

    I got this error too, when i imported eclipse project to android studio.
    So i just did a little search “Edit -> Find -> Find in path” for “APIs 23” And i did replace (compileSdkVersion ‘Google Inc.:Google APIs:23’) in “Build.gradle” withe (compileSdkVersion 24).
    I think it should works.
    Good luck

    You can create a new project and see what’s written in this project’s ‘build.gradle’.For example it is ‘compileSdkVersion 25’,then change your target project to ‘compileSdkVersion 23’.

    I am using Ubuntu ,and I had the same issue. The accepted answer did not work for my version of Android Studio (2.3.3).

    I had to import an Eclipse webapp project for Android SDK 15, and did receive the same message. The solution that worked for me was the following:

    1. Download the correct version of the Android SDK (version 15 in my case)
    2. Use the name of the directory folder (in my case “android-15” stored in my home folder at "~/[user_xxx]/Android/Sdk/platforms/".
    3. Edit the line in the gradle script in my case to :
      compileSdkVersion ‘android-15’
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.