Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

enter image description here

I have updated android studio with latest version and then after googling I also updated Android SDK with API 18 but still it gives the same error.

like image 1000
Hardik Pithva Avatar asked Sep 22 '15 11:09

Hardik Pithva


2 Answers

Just click on the link written in the error:

Open Android SDK Manager

and it will show you the dialogs that will help you to install the required sdk for your project.

like image 146
MBH Avatar answered Sep 19 '22 00:09

MBH


Open the Android SDK Manager and Update with latest :

  1. Android SDK Tools
  2. Android SDK Build Tools

Then Sync ,Re-Build and Restart Your Project Demo Code for build.gradle

   compileSdkVersion 21 // Now 23    buildToolsVersion '21.1.2' //Now 23.0.1     defaultConfig     {     minSdkVersion 15     targetSdkVersion 19        } 

Hope this helps .

like image 44
IntelliJ Amiya Avatar answered Sep 20 '22 00:09

IntelliJ Amiya