React-Native Android - Could not find com.android.tools:common

后端 未结 2 1685
误落风尘
误落风尘 2021-01-01 18:36

It seems that somehow the android/tools/common library has been deleted (pom, jar).

This caused many react native libraries that are using an old gradl

2条回答
  •  渐次进展
    2021-01-01 19:11

    In my build.gradle file (of the project not the app) i've added the new bintray url first but also had to add all the others after:

    subprojects {
        buildscript {
            repositories {
                maven { url 'https://dl.bintray.com/android/android-tools' }
                google()
                mavenLocal()
                jcenter()
            }
        }
    }
    

提交回复
热议问题