Failed to Resolve: 'com.android.support:appcompat-v7' No Matter What I Do

前端 未结 2 1395
感情败类
感情败类 2020-12-20 06:55

I know, it looks like a duplicate, but none of the other solutions out there work. I just switched from Android Studio to IntelliJ IDEA (So I don\'t need 3,000 different IDE

相关标签:
2条回答
  • 2020-12-20 07:22

    That's because there is no 27.0.3 for that library. You probably want 27.1.0, or perhaps 27.0.2.

    You can see the list of versions for the different artifact groups and artifacts at https://maven.google.com.

    0 讨论(0)
  • 2020-12-20 07:26

    This was the my error when i tried to change my targe SDK version 23 to SDK version 26 Could not resolve all dependencies for configuration ':app:_debugApkCopy'.

    Could not find com.android.support:appcompat-v7:27.1.0. Searched in the following locations:

    resolved @android/build.gradle :

    allprojects {
        repositories {
            mavenLocal()
            jcenter()
            maven {
                url "$rootDir/../node_modules/react-native/android"
            }
            maven {
                url "https://maven.google.com"
            }
        }
    }
    

    @app/build.gradle file:

    android {
        compileSdkVersion 27
        buildToolsVersion "27.0.1"
    
        defaultConfig {
            applicationId "WWWWWWWWWW"
            minSdkVersion 16
            targetSdkVersion 27
    
          ......
    
      //under dependicies
    compile "com.android.support:appcompat-v7:27.1.0"
    

    at least i solved that error that way, yes still another errors i need to solve

    0 讨论(0)
提交回复
热议问题