小编pra*_*001的帖子

Bare Expo 应用程序在首次创建时无法构建(Expo SDK 42)

我使用创建了一个反应本机应用程序

expo init AwesomeProject
Run Code Online (Sandbox Code Playgroud)

我选择了裸工作流程

一旦我尝试使用运行应用程序yarn android,构建就会崩溃。

这是错误:

 > Task :unimodules-react-native-adapter:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
284 actionable tasks: 284 executed
C:\Users\prana\Desktop\new-app\new-app\SphereV2\node_modules\expo-modules-autolinking\build\index.js:14
        .option('-i, --ignore-paths <ignorePaths...>', 'Paths to ignore when looking up for modules.', (value, previous) => (previous ?? []).concat(value))
                                                                                                                                       ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:1053:16)
    at Module._compile (internal/modules/cjs/loader.js:1101:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load …
Run Code Online (Sandbox Code Playgroud)

android gradle reactjs react-native expo

5
推荐指数
1
解决办法
4962
查看次数

标签 统计

android ×1

expo ×1

gradle ×1

react-native ×1

reactjs ×1