My build.gradle afer updating it look like this. And it gives me the error.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
}
}
android {
compileSdkVersion 21
buildToolsVersion '23.0.3'
}
allprojects {
repositories {
jcenter()
}
}
earlier it looks like this
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
}
}
allprojects {
repositories {
jcenter()
}
}
And that gave me this error -
Error:Failed to find target with hash string 'Google Inc.:Google APIs:21' in:
/Users/abc/Library/Android/sdk
<a href="openAndroidSdkManager">Open Android SDK Manager</a>
Don't know how to to get it fix. Please help just try to run app with components
Also checked all the possible solution. Possible duplicate
failed to find target with hash string 'android-22' Could not find method android() for arguments