Android Studio could not find any version that matches com.android.support:appcompat-v7:23.+

后端 未结 5 2305
温柔的废话
温柔的废话 2021-02-19 22:41

New to Android Studio. After setting everything up I tried to run a basic project and keep getting this error. I changed my appcompat version to 7.22.+ and it builds. Can anyone

5条回答
  •  灰色年华
    2021-02-19 23:08

    I had the same issue and managed to solve it by changing the dependency on build.gradle to

    'com.android.support:appcompat-v7:22.+'

    dependencies {
        compile fileTree(include: ['*.jar'], dir: 'libs')
        //compile 'com.android.support:appcompat-v7:23.+'
        compile 'com.android.support:appcompat-v7:22.+'
    }
    

    Also, lower the targetSKVersion from 23 to 22 as shown

    targetSdkVersion 22

    and compileSDKVersion from 23 to 22

    compileSdkVersion 22

    I hope have solved your issue

    Also you can solve the problem by upgrading to the current visual studio

提交回复
热议问题