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
        }
    }
相关推荐
三84411 分钟前
PHP 绕过污点追踪构造 Webshell:反序列化引用复用与 Trait 可变函数 RCE
android
石头猫灯20 分钟前
WordPress wp2shell漏洞断点逐过程到注入点
android·学习
Android打工仔1 小时前
Kotlin 协程源码解析(五):BaseContinuationImpl.resumeWith() —— Continuation 链是如何被展开的?
android·kotlin
光影少年2 小时前
react native打包优化、包体积瘦身、离线包/热更新方案
前端·react native·react.js
存在morning2 小时前
【PySpark 学习笔记 三】DataFrame API 入门
android·java·数据库
YSoup2 小时前
2026 安卓面试助手APP(安卓八股、题库)
android·面试·职场和发展
xcyxiner2 小时前
flutter 运行到模拟器上
android·前端·flutter
Android-Flutter3 小时前
android Glide 源码流程分析
android·kotlin
Android-Flutter3 小时前
android Glide 使用详解
android·kotlin
恋猫de小郭3 小时前
Dart 3.13 的到底改了什么?为什么很重要?有什么坑?
android·前端·flutter