drulabs drulabs - 2 months ago 13
Android Question

Failed to find target with hash string 'android-23' in Android Studio 2.0 preview beta 2

Gradle sync fails in Android Studio 2.0 preview beta 2. My project used to work perfectly in older previews, but since preview 9 gradle sync fails with error:


failed to find target with hash string 'android-23'


I've tried changing compile and target SDK versions but no change.

Answer

The issue seems to be with gradle plugin. alpha9 is buggy.

avoid 2.0.0-alpha9

use 2.0.0-beta2

in your project gradle file.

Works with preview 9 and beta 2 versions of android studio.

Comments