react-native打包报错:could not download org.eclipse.paho.client.mqttv3.jar
16lz
2021-01-23
在build.gradle文件里面改动:
原有代码:
allprojects { repositories { mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } maven { url "https://repo.eclipse.org/content/repositories/paho-releases/" } google() jcenter() maven { url 'https://jitpack.io' } }}
更改后:
allprojects { repositories { maven { url 'http://maven.aliyun.com/nexus/content/groups/public' } //加入的代码 mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } maven { url "https://repo.eclipse.org/content/repositories/paho-releases/" } google() jcenter() maven { url 'https://jitpack.io' } }}
解决了
更多相关文章
- android 代码设置apn
- Android 通过代码执行Linux 命令 echo 命令
- android 反编译和代码解读
- 第一行代码 Android
- android对话框代码中设置背景为透明
- Android客制化------开机拷贝文件到内置存储
- android log日志文件输出
- android按行读取文件内容的几个方法
- android 文件 修改权限