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
        }
    }
相关推荐
__Witheart__7 分钟前
Android 驱动编译为模块或者built-in内核
android·linux·数据库
恋猫de小郭15 分钟前
Flutter 最好的 AI 自动化测试工具:Patrol
android·前端·flutter
流星白龙27 分钟前
【MySQL高阶】16.行结构
android·mysql·adb
HQL_seven44 分钟前
Android 四大组件解析
android
Digitally1 小时前
适用于安卓、iOS 和电脑的最新文件共享应用评测指南
android·ios·电脑
__Witheart__1 小时前
搭建编译 HW-T3568 安卓固件的环境
android
Bowen_J1 小时前
Flutter 屏幕旋转适配
android·flutter·ios
程序员陆业聪10 小时前
绕过Frida/Xposed的最后防线:SVC直接系统调用与Native反Hook实战
android
程序员陆业聪10 小时前
WebView与原生JS交互:JSBridge生产级实现与安全防护
android
我命由我1234513 小时前
Android 开发问题:MlKitException: An internal error occurred during initialization.
android·java·java-ee·android jetpack·android-studio·androidx·android runtime