Skip to content

Failed to find target with hash string 'android-21'. #292

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
mochadwi opened this issue Jul 18, 2019 · 1 comment · May be fixed by #293
Closed

Failed to find target with hash string 'android-21'. #292

mochadwi opened this issue Jul 18, 2019 · 1 comment · May be fixed by #293

Comments

@mochadwi
Copy link

mochadwi commented Jul 18, 2019

Looks like there's a problem with Android Studio 3.4 even already downloaded the android-21 build tools when using double quotes on buildToolsVersion "versionnumber" into buildToolsVersion = 'versionNumber'.

Change this

// dependencies.gradle
androidBuildToolsVersion = "24.0.1"

into

// dependencies.gradle
androidBuildToolsVersion = '24.0.1'
// data/build.gradle & presentation/build.gradle
buildToolsVersion = globalConfiguration["androidBuildToolsVersion"]
@mochadwi
Copy link
Author

mochadwi commented Jul 19, 2019

Looks like the issue doesn't relate to the buildToolsVersion.

Just restart your Android Studio & your machine. Then you get up and running.

Thanks @rezastallone

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant