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

前端 未结 2 1482
感情败类
感情败类 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: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

提交回复
热议问题