android studio打包weexplus项目常见错误

时间:2023-05-12 17:43:11

android studio打包weexplus项目时,gradle失败报错:

ERROR: Unable to resolve dependency for ‘:[email protected]/compileClasspath‘: Could not download eventbus.jar

解决办法:下载不到相应的类库,添加镜像源 

在project  build.gradle更改为

allprojects {
    repositories {
        maven {
            url "https://maven.aliyun.com/repository/google"
        }
        maven {
            url "https://maven.aliyun.com/repository/jcenter"
        }
    }
}