Skip to content

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

Closed
@mochadwi

Description

@mochadwi

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"]

Activity

mochadwi

mochadwi commented on Jul 19, 2019

@mochadwi
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @mochadwi

      Issue actions

        Failed to find target with hash string 'android-21'. · Issue #292 · android10/Android-CleanArchitecture