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
        }
    }
相关推荐
RainbowC03 小时前
从Dalvik字节码角度优化安卓编码
android·java/jvm
河铃旅鹿4 小时前
Android开发-java版:布局
android·笔记·学习
Meteors.5 小时前
安卓进阶——RxJava
android·rxjava
drsonxu7 小时前
Android开发自学笔记 --- 构建简单的UI视图
android·compose
onthewaying8 小时前
在Android平台上使用Three.js优雅的加载3D模型
android·前端·three.js
带电的小王8 小时前
Android设备:无busybox工具解决
android·busybox
一 乐9 小时前
个人健康系统|健康管理|基于java+Android+微信小程序的个人健康系统设计与实现(源码+数据库+文档)
android·java·数据库·vue.js·spring boot·生活
百锦再9 小时前
第14章 智能指针
android·java·开发语言·git·rust·go·错误
陈老师还在写代码10 小时前
android studio 里的 activity 和 layout 是怎么关联上的
android·ide·android studio
河铃旅鹿10 小时前
Android开发-java版:BroadcastReceiver广播
android·笔记·学习