小编Est*_*ras的帖子

无法从`node_modules/expo/build/ExpoLazy.js`解析模块`./Linking/Linking`

有没有人在运行时遇到过这个错误react-native run-android?

error: bundling failed: Error: Unable to resolve module `./Linking/Linking` from `node_modules/expo/build/ExpoLazy.js`: 

None of these files exist:
  * node_modules/expo/build/Linking/Linking(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  * node_modules/expo/build/Linking/Linking/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
Run Code Online (Sandbox Code Playgroud)

"博览会": "^37.0.9",

android react-native expo

10
推荐指数
1
解决办法
2224
查看次数

无法加载脚本。确保您正在运行 Metro 服务器或者您的捆绑包“index.android.bundle”已正确打包以供发布

在此输入图像描述

您好,您在使用命令生成 apk 后遇到过此错误吗./gradlew assembleDebug?

我在我的 Android 手机上下载 apk 后才看到这个错误...

“反应本机”:“〜0.61.5”,

android apk react-native

7
推荐指数
1
解决办法
1万
查看次数

错误:类 ModuleRegistryAdapter 中的构造函数 ModuleRegistryAdapter 不能应用于给定类型,new ModuleRegistryAdapter()

您好,我在控制台上收到了以下错误:

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
/Users/user/Desktop/.../android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:82: error: constructor ModuleRegistryAdapter in class ModuleRegistryAdapter cannot be applied to given types;
      new ModuleRegistryAdapter(),
      ^
  required: ReactModuleRegistryProvider
  found:    no arguments
  reason: actual and formal argument lists differ in length
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> …
Run Code Online (Sandbox Code Playgroud)

android react-native expo

6
推荐指数
1
解决办法
1301
查看次数

标签 统计

android ×3

react-native ×3

expo ×2

apk ×1