JOHNNY T
JOHNNY T

Reputation: 53

Error:(24, 11) Failed to resolve: com.android.support:appcompat-v7:8.0.+

Pleas help with this error cause it's my first android project ! Gradle Sync: pply plugin: 'com.android.application'

android {
    compileSdkVersion 8
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.interceptor.myapplication"
        minSdkVersion 5
        targetSdkVersion 8
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:8.0.+'

}

On Gradle console i get: FAILURE: Build failed with an exception.

BUILD FAILED

Upvotes: 3

Views: 8855

Answers (1)

Shawn Azdam
Shawn Azdam

Reputation: 6170

You should use the correct version for the appcompat-v7 dependency.

The latest stable version of the above-mentioned dependency to now is:

    compile 'com.android.support:appcompat-v7:23.2.1'

Use it as above and make sure you installed/updated to the latest version in SDK Manager before.

Upvotes: 4

Related Questions