android10 / Android-CleanArchitecture

This is a sample app that is part of a series of blog posts I have written about how to architect an android application using Uncle Bob's clean architecture approach.
Apache License 2.0
15.52k stars 3.32k forks source link

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

Closed mochadwi closed 5 years ago

mochadwi commented 5 years ago

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 commented 5 years ago

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