Android Studio: Failed to find: 'com.android.support:support-v4:19.1.0'

前端 未结 6 1615
醉酒成梦
醉酒成梦 2020-12-15 17:05

I want to build an app in Android Studio with the support library but I get the following error when adding the dependency for the support library:

Error:Fai         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 17:54

    If you are using Android Studio, then as an addition to changing the build.gradle file manually, you can also lookup the dependency via the library dependencies under the Project Structure menu item.

    Find where com.android.support is

    Double clicking that dependency will generate this line in build.gradle:

    dependencies {
        compile 'com.android.support:support-v13:+'
    }
    

    And also, if you are wondering what this library is about, it's described at the developer pages at developer.android.com; Support Library.

提交回复
热议问题