我通常使用React Native,但是有一天我试图打开我的项目,但它们却无法打开(它们开始加载,但在某个随机点停止,甚至根本没有开始)。我尝试了许多方法来解决此问题,但没有任何帮助。最后,我将环境安装在家里有两台Windows的备用计算机上,并且有相同的问题,所以我想我实际上并不知道如何配置环境。 这些来自备用PC:
info Fetching system and libraries information...
System:
OS: Windows 8.1 6.3.9600
CPU: (4) x64 Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz
Memory: 2.48 GB / 5.45 GB
Binaries:
Node: 14.0.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6392135
Languages:
Java: 1.8.0_211 - C:\Program Files\Java\jdk1.8.0_211\bin\javac.EXE
Python: 2.7.18 - C:\Python27\python.EXE
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
有些事情由于某种未知的原因而被遗忘了。
C:\Users\Usuario\Test>npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using
"--no-jetifier" flag.
Jetifier found 960 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Installing the app...
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :app:stripDebugDebugSymbols UP-TO-DATE
Compatible side by side NDK version was not found.
> Task :app:installDebug
07:29:09 V/ddms: execute: running am get-config
07:29:12 V/ddms: execute 'am get-config' on 'fff70386' : EOF hit. Read: -1
07:29:12 V/ddms: execute: returning
Installing APK 'app-debug.apk' on 'SM-G600FY - 6.0.1' for app:debug
07:29:12 D/app-debug.apk: Uploading app-debug.apk onto device 'fff70386'
07:29:12 D/Device: Uploading file onto device 'fff70386'
07:29:12 D/ddms: Reading file permision of C:\Users\Usuario\Test\android\app\bui
ld\outputs\apk\debug\app-debug.apk as: rwx------
07:29:27 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.ap
k"
07:29:59 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on '
fff70386' : EOF hit. Read: -1
07:29:59 V/ddms: execute: returning
07:29:59 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk"
07:29:59 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on 'fff70386' : EO
F hit. Read: -1
07:29:59 V/ddms: execute: returning
Installed on 1 device.
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.0.1/userguide/command_line_interface.html#sec:comm
and_line_warnings
BUILD SUCCESSFUL in 2m 11s
27 actionable tasks: 2 executed, 25 up-to-date
info Connecting to the development server...
info Starting the app on "fff70386"...
Starting: Intent { cmp=com.test/.MainActivity }
有人知道该怎么做吗?请帮助,我已经尝试解决了一个多星期。 PS:我是编程的新手,所以请简单明了地使用条款和说明,谢谢