reactnativecn / react-native-website

React Native 中文网
https://reactnative.cn
MIT License
217 stars 328 forks source link

android无法打包,有依赖无法下载 #797

Closed qilovehua closed 7 months ago

qilovehua commented 7 months ago

请按以下格式提供问题的相关信息。

已经翻墙了,其他包都是正常的,就这几个老是报错,实在搞不懂,求帮助。 RN0.66.4是正常的,现在升级到0.72.10,ios正常了,android一直不成功,也看不出是哪里的问题。

问题的具体描述

➜ android git:(master) ✗ ./gradlew assembleRelease

Task :react-native-async-storage_async-storage:mapReleaseSourceSetPaths FAILED w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

FAILURE: Build failed with an exception.

请描述完整的环境/版本信息

info React Native v0.73.4 is now available (your project is running on v0.72.10). info Changelog: https://github.com/facebook/react-native/releases/tag/v0.73.4 info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.72.10 info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos&platform=android".

package.json "dependencies": { "@react-native-async-storage/async-storage": "^1.22.0", "@react-native-clipboard/clipboard": "^1.13.2", "@react-native-masked-view/masked-view": "^0.3.1", "@react-navigation/bottom-tabs": "^6.5.11", "@react-navigation/native": "^6.1.9", "@react-navigation/native-stack": "^6.9.17", "geolib": "^3.3.4", "react": "18.2.0", "react-native": "0.72.10", },

预期结果

qilovehua commented 7 months ago
repositories {
        // google()
        // mavenCentral()
        maven { url "https://www.jitpack.io"}
        maven { url "https://maven.aliyun.com/repository/releases"}
        maven { url "https://maven.aliyun.com/repository/google"}
        maven { url "https://maven.aliyun.com/repository/central"}
        maven { url "https://maven.aliyun.com/repository/gradle-plugin"}
        maven { url "https://maven.aliyun.com/repository/public"}
    }

这么改下,好了,神奇