Gradle Build Android Project “Could not resolve all dependencies” error

后端 未结 12 1988
孤街浪徒
孤街浪徒 2020-12-07 18:00

I\'m trying to build my first project with Gradle and I think my gradle files and settings are correct.

I\'m using only one module and Support V4 + AppCompatBar libr

12条回答
  •  春和景丽
    2020-12-07 18:50

    As Peter says, they won't be in Maven Central

    from the Android SDK Manager download the 'Android Support Repository' and a Maven repo of the support libraries will be downloaded to your Android SDK directory (see 'extras' folder)

    to deploy the libraries to your local .m2 repository you can use maven-android-sdk-deployer

    2017 edit:

    you can now reference the Google online M2 repo

    repositories {
    google()
    jcenter()
    }
    

提交回复
热议问题