react-native package has been stuck in time
:app:preReleaseBuild > Resolve dependencies of :app:releaseCompileClasspath > maven-metadata.xml
Try Solution
First, the packaging process will load some species have seen Google Docs, so try to open a VPN, but eventually an error
Error:Could not resolve all files for configuration ':app:debugCompileClasspath'
If this error may be reported in the project> android> build.gradle add the following code
#未添加之前的代码
allprojects {
repositories {
google()
jcenter()
maven {
url "$rootDir/../node_modules/react-native/android"
}
maven { url 'https://maven.google.com' }
maven { url "https://jitpack.io" }
}
}
#添加之后的代码
allprojects {
repositories {
google()
jcenter {url "http://jcenter.bintray.com/"}
maven {
url "$rootDir/../node_modules/react-native/android"
}
maven { url 'https://maven.google.com' }
maven { url "https://jitpack.io" }
}
}
Second, if there is no VPN, please try to repeat the steps above