Android Studio 为什么我的React原生Android应用构建失败?[closed]

eaf3rand  于 2022-11-16  发布在  Android
关注(0)|答案(2)|浏览(182)

**已关闭。**此问题需要debugging details。当前不接受答案。

编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
9天前关闭。
Improve this question
我得到下面的错误,请检查图像.

vhipe2zx

vhipe2zx1#

我猜自2022年11月4日以来的React原生错误。
如欲了解更多信息,请访问https://github.com/facebook/react-native/issues/35210
我觉得你应该更新react-native版本

在所有项目的“android/buld.gradle”文件中添加以下代码

def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())

allprojects {
    configurations.all {
        resolutionStrategy {
            // Remove this override in 0.65+, as a proper fix is included in react-native itself.
            force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
        }
    }
jbose2ul

jbose2ul2#

好吧,我想你必须提供更多的信息。因为就目前而言,你的AVM正在运行吗?因为就目前而言,你的虚拟设备似乎无法与你正在制作的应用程序一起运行。

相关问题