在开发模式下运行本机应用程序时,启动npm服务器后。当应用程序请求包包时,它会产生这个错误,
The development server returned response error code:500
URL: http://192.168.1.55:8081/index.android.bundle?platform=android&
dev=true&hot=false&minify=false
Body:
{"message":"TransformError:/var/www/html/test_project
我第一次尝试运行这个应用程序
C:\Users\Devrath\Desktop\React\ReactProjectFirst> npm run android
问题:我是否需要创建一个简单运行应用程序的密钥存储库
错误:
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 855 file(s) to forward-jetify. Using 4 workers...
info Sta
C:\Users\Alex\testing\firsttry>react-native run-android
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :app
WARNING: Configuration '
我正在运行一个android应用程序,它是使用react本地博览会创建的。它在windows机器上运行良好,android工作室仿真器最近切换到了mac,当我在android中打开这个项目时,这个错误正在弹出。
TypeError: this.InnerNativeModule.configureProps is not a function. (In 'this.InnerNativeModule.configureProps(uiProps, nativeProps)', 'this.InnerNativeModule.configureProps' is
我试着在我的mac上运行genymotion仿真器上的本机应用程序react。当我写react-native run-android的时候
Running /usr/local/opt/android-sdk/platform-tools/adb reverse tcp:8081 tcp:8081
error: closed
Could not run adb reverse: Command failed: /usr/local/opt/android-sdk/platform-tools/adb reverse tcp:8081 tcp:8081
Building and installi
React本机-本机-google-signin
在我安装了react本机-google-sigin之后
npm i react-native-google-signin
当应用程序启动时,它突然崩溃(强制关闭),我已经完成了github文档中告诉我的所有步骤,但当我立即运行app崩溃时,日志中没有任何错误。( android-log和adb logcat *:S React原住民:v ReactNativeJS:V nor )
这是我的密码:
build.gradle
// Top-level build file where you can add configuration option
注意:错误可能不同,但如果您在使用android时遇到任何错误,那么过去两天的代码没有任何更改,
我的错误-安装应用程序失败。错误:命令失败:./gradlew应用程序:installDebug -PreactNativeDevServerPort=8081
error Failed to install the app. Make sure you have the Android development environment set up:
Error: Command failed: ./gradlew app:installDebug
-PreactNativeDevServerP