Android studio - gradle - failed to find target with hash string 'Google Inc.:Glass Development Kit Preview:19' -


failed sync gradle project ‚helloglass‘
error: cause: failed find target hash string 'google inc.: glass development kit preview:19' in d:\project\android-sdk

strangly, error didn’t appear 3 days ago when last built project. haven’t changed or used android studio since then.

these steps i’ve tried solve issue:

  • restarted android studio , tried build again
  • made sure both gradle , project use same path android sdk
  • made sure have google glass development kit installed in sdk manager (and other packages api 19 well), deleted , re-installed
  • installed latest build tools via sdk manager , consequently changed buildtoolsversion „23.0.1“ „23.0.2“ in gradle file
  • replaced 'com.android.tools.build:gradle:2.0.0-alpha3' in top-level gradle file 'com.android.tools.build:gradle:2.0.0-alpha6' since latest version
  • in gradle-wrapper.properties changed line distributionurl=https://services.gradle.org/distributions/gradle-2.8-all.zip line: distributionurl=https://services.gradle.org/distributions/gradle-2.10-all.zip , chose „use default gradle wrapper“ in project options
  • cleared gradle caches in project/gradle , %home%/gradle
  • tried build new google glass project scratch in android studio – same problem

this relevant part of gradle file:

android {     compilesdkversion "google inc.:glass development kit preview:19"     buildtoolsversion "23.0.2"      defaultconfig {         applicationid "com.helloglass"         minsdkversion 19         targetsdkversion 23         versioncode 1         versionname "1.0"     }     ... 

and top-level gradle file:

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:2.0.0-alpha6'     } } 

i don’t know else do. appreciated!

i haven't found reason problem, after re-installing both android studio , android sdk can build project.


Comments