Android Studio android studio failed to find target with hash string 'android-26'

I just am getting started and installed Android Studio SDK 27.

It came up with the following error on my gradle build

studio failed to find target with hash string ‘android-26’

I then installed the prompted file, which only led to a cascade of errors on my classpath.

Are there any work arounds?

Thansk!
Karen

What other errors do you get after installing the 26 APIs?

Hi

I just gave up on the API 27 and used the API 26. That seemed to solve it (for now).

The error just repeats if I try to upgrade to 27.

No other errors… unless I did their suggested file installs (at which point some class errors were created).

Happy to send you those?

You should be fine to use API 26.

If you’d like to send the other errors, I’m happy to help.

Hi,
I am starting to dislike Android Studio. I am used to just using vim and
text files for Java coding and this program does fall a little into
dependency hell :frowning:

Even just getting the simulator up - AS throws a lot in the /tmp file and
I had to increase that (took a while to get at the one).

For example: Here is a problem with the Navigation Drawer Activity API 26

/home/sophie/AndroidStudioProjects/NavDrawerPattern/app/build.gradle
Error:Error:Unable to resolve dependency for ‘:app@debug/compileClasspath’:
Could not resolve com.android.support:design:26.1.0.
Open
File
Show Details
Error:Error:Unable to resolve dependency for
’:app@debugAndroidTest/compileClasspath’:
Could not resolve com.android.support:design:26.1.0.
Open
File
Show Details
Error:Error:Unable to resolve dependency for
’:app@debugUnitTest/compileClasspath’:
Could not resolve com.android.support:design:26.1.0.
Open
File
Show Details
Error:Error:Unable to resolve dependency for
’:app@release/compileClasspath’:
Could not resolve com.android.support:design:26.1.0.
Open
File
Show Details
Error:Error:Unable to resolve dependency for
’:app@releaseUnitTest/compileClasspath’:
Could not resolve com.android.support:design:26.1.0.
Open
File
Show Details

And here is a problem with the general API 27 gradle build for any project
(I am using 26 now)

Gradle ‘NavDrawerPattern’ project refresh failed
Error:Error:Failed to find target with hash string ‘android-26’ in:
/home/sophie/Android/Sdk
Install missing platform(s) and sync
project

Faced the same issue while running the fuction via 26api, did you managed to get solution?

With Regards,
Royda

Or better try with booting system and then running again.