Android com.facebook.react:react-native:+ 版本问题

Execution failed for task ':app:desugarBetaDebugAndroidTestFileDependencies'.

> Could not resolve all files for configuration ':app:betaDebugRuntimeClasspath'.

> Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0) to match attributes {artifactType=processed-jar, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.

> Could not find react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0).

Searched in the following locations:

https://maven.aliyun.com/repository/jcenter/com/facebook/react/react-native/0.71.0-rc.0/react-native-0.71.0-rc.0-debug.aar

将 + 替换为项目指定版本

当然以防万一你可以强制指定了要使用的版本是 0.xx.0,并且在编译过程中不会允许任何其他版本的 React Native 被使用。

Groovy 复制代码
implementation ("com.facebook.react:react-native:0.67.0") {
        version {
            strictly '0.67.0' //强制指定了要使用的版本是 0.67.0
        }
    }
相关推荐
非典型Android程序员2 小时前
Binder机制学习总结
android
AI2中文网2 小时前
App Inventor 2 音频播放器 vs 音效 vs 视频播放器:三个媒体组件,选错了App直接卡死
android·音视频·媒体
李剑一2 小时前
uni-app x 实现本地 JSON 文件的导入导出(APP端可用)
android·前端·uni-app
喜欢打篮球的普通人2 小时前
LLVM后端指令选择
android·java·javascript
hunterandroid2 小时前
Room 数据库迁移:让本地数据升级更稳
android·前端
阿巴斯甜2 小时前
Compose NavHost的使用:
android
雁鸣零落2 小时前
浏览器扩展 CaptionGo,在网页视频上显示双语字幕,支持 PC 和手机端使用
android·chrome·edge·firefox·安卓
2501_915106323 小时前
iOS 软件测试工具性能监控、日志分析 KeyMob、Instruments等
android·ios·小程序·https·uni-app·iphone·webview
__Witheart__3 小时前
lunch选择的版型与版型对应的配置文件
android·linux