android studio加载uni-app打包程序 HBuilder-Hello
问题:
Could not resolve all artifacts for configuration ':classpath'.
替换build.gradle内容
buildscript{
ext{
buildToolsVersion ="27.0.3"
minSdkVersion =16
compileSdkVersion =27
targetSdkVersion =26
supportLibVersion ="27.1.1"
}
repositories{
google()
jcenter()
maven{
url'https://maven.google.com/'
name'Google'
}
}
dependencies{
classpath'com.android.tools.build:gradle:3.1.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects{
repositories{
google()// new
mavenLocal()
jcenter()
maven{url"https://jitpack.io"}
maven{
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url"$rootDir/../node_modules/react-native/android"
}
maven{url"https://maven.google.com"}
// google() // old
}
}
task wrapper(type: Wrapper){
gradleVersion ='4.10.1'
distributionUrl = distributionUrl.replace("bin","all")
}