Puneet Kushwah
Puneet Kushwah

Reputation: 1600

Android Studio is giving multiple errors since API 22 updated

I am getting multiple errors in my project, previously it was working fine. I tried may things changing the target api changing dependencies, i dont know why it is not working. Please help me out.

enter image description here

enter image description here enter image description here

Upvotes: 0

Views: 103

Answers (1)

Prokash Sarkar
Prokash Sarkar

Reputation: 11873

Change your build.gradle file to this,

android {
    compileSdkVersion 22
    buildToolsVersion '22.0.1'
    defaultConfig {
        applicationId "com.example.name"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
.......
dependencies {
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.google.android.gms:play-services:6.5.87'
    }

Now clean and rebuild the project.

Upvotes: 4

Related Questions