Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to resolve: 'com.android.support:appcompat-v7:16.+'

Tags:

android

I have a little problem with Android Studio:

Failed to resolve: 'com.android.support:appcompat-v7:16.+'

error

I also tried to install repository but appear another error.

Error2

apply plugin: 'com.android.application'

android {
    compileSdkVersion 16
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "p11zt.futebol24"
        minSdkVersion 16
        targetSdkVersion 16
        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:16.+' }
like image 336
Morais Avatar asked Nov 24 '25 13:11

Morais


1 Answers

Change compile sdk to 23 try this

 compileSdkVersion 23
 targetSdkVersion 23

and use support:appcompat

 compile 'com.android.support:appcompat-v7:23.0.0'
like image 133
Pavan Bilagi Avatar answered Nov 27 '25 04:11

Pavan Bilagi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!