我在启动 React Native Android 应用程序时遇到此错误。\n Error: react-native-permissions: NativeModule.RNPermissions is null. To fix this issue try these steps: \xe2\x80\xa2 If you are using CocoaPods on iOS, run pod install in theios directory and then clean, rebuild and re-run the app. You may also need to re-open Xcode to get the new pods. \xe2\x80\xa2 If you are getting this error while unit testing you need to mock the native module. You can use this to get started: https://github.com/react-native-community/react-native-permissions/blob/master/mock.js If none of …
运行反应本机应用程序时,我收到以下错误:
`
任务:app:mergeDebugNativeLibs 失败
此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。使用“--warning-mode all”显示各个弃用警告。请参阅https://docs.gradle.org/6.9.2/userguide/command_line_interface.html#sec:command_line_warnings 574 个可操作任务:2 个已执行,572 个最新
失败:构建失败并出现异常。
执行 com.android.build.gradle.internal.tasks.MergeJavaResWorkAction 时发生故障 2 个文件从输入中找到路径“lib/armeabi-v7a/libfbjni.so”: - C:\Users\nouman.gradle\caches\transforms -3\6ef14503de3c85fa1ab2aba364d580cc\transformed\jetified-react-native-0.71.0-rc.0-debug\jni - C:\Users\nouman.gradle\caches\transforms-3\64faf76bb2f0142d731347d7bfff47d4\transformed\jetified-fbjni-0 .3. 0\jni 如果您使用 jniLibs 和 CMake IMPORTED 目标,请参阅 https://developer.android.com/r/tools/jniLibs-vs-imported-targets
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。
在https://help.gradle.org获取更多帮助
32 秒内构建失败
错误 无法安装应用程序。确保您已设置 Android 开发环境:https://reactnative.dev/docs/environment-setup。错误:命令失败:gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
失败:构建失败并出现异常。
执行 com.android.build.gradle.internal.tasks.MergeJavaResWorkAction 时发生故障 2 个文件从输入中找到路径“lib/armeabi-v7a/libfbjni.so”: - C:\Users\nouman.gradle\caches\transforms -3\6ef14503de3c85fa1ab2aba364d580cc\transformed\jetified-react-native-0.71.0-rc.0-debug\jni - C:\Users\nouman.gradle\caches\transforms-3\64faf76bb2f0142d731347d7bfff47d4\transformed\jetified-fbjni-0 .3. 0\jni 如果您使用 jniLibs 和 CMake IMPORTED 目标,请参阅 https://developer.android.com/r/tools/jniLibs-vs-imported-targets
尝试:使用 …