Попытка запустить собственное приложение реагирования на мобильном устройстве, подключенном с помощью react-native run-android
. Сборка приложения прошла успешно, но приложение при открытии и в командной строке sh застряло на Starting: Intent { cpm=com.project.projectname/.MainActivity }
Приложение установлено на мобильном устройстве, но постоянно останавливается. Может кто-нибудь помочь мне, как отладить это, и я не могу увидеть, где сообщения об ошибках в.
это весь вывод командной строки
C:\xampp\htdocs\projectname>react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1109 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
'C:\Users\user' is not recognized as an internal or external command,
operable program or batch file.
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
Parallel execution with configuration on demand is an incubating feature.
> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from C:\xampp\htdocs\projectname\node_modules\react-native\android
> Task :app:processDebugGoogleServices
Parsing json file: C:\xampp\htdocs\projectname\android\app\google-services.json
> Task :app:processDebugManifest
C:\xampp\htdocs\projectname\android\app\src\main\AndroidManifest.xml:24:9-31:50 Warning:
activity#com.google.firebase.auth.internal.FederatedSignInActivity@android:launchMode was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
> Task :react-native-camera:compileGeneralDebugJavaWithJavac
> Task :react-native-firebase:compileDebugJavaWithJavac
> Task :app:transformClassesWithFirebasePerformancePluginForDebug
java.lang.ClassNotFoundException: android.graphics.fonts.Font
java.lang.ClassNotFoundException: android.graphics.fonts.Font
java.lang.ClassNotFoundException: android.graphics.fonts.Font
java.lang.ClassNotFoundException: android.graphics.fonts.Font
java.lang.ClassNotFoundException: com.google.firebase.dynamiclinks.DynamicLink$Builder
> Task :app:installDebug
09:26:46 V/ddms: execute: running am get-config
09:26:46 V/ddms: execute 'am get-config' on 'R58M55ASZDM' : EOF hit. Read: -1
09:26:46 V/ddms: execute: returning
Installing APK 'app-debug.apk' on 'SM-A105G - 9' for app:debug
09:26:46 D/app-debug.apk: Uploading app-debug.apk onto device 'R58M55ASZDM'
09:26:46 D/Device: Uploading file onto device 'R58M55ASZDM'
09:26:47 D/ddms: Reading file permision of C:\xampp\htdocs\projectname\android\app\build\outputs\apk\debug\app-debug.apk as: rwx------
09:26:47 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk"
09:27:16 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on 'R58M55ASZDM' : EOF hit. Read: -1
09:27:16 V/ddms: execute: returning
09:27:16 V/ddms: execute: running rm "/data/local/tmp/app-debug.apk"
09:27:16 V/ddms: execute 'rm "/data/local/tmp/app-debug.apk"' on 'R58M55ASZDM' : EOF hit. Read: -1
09:27:16 V/ddms: execute: returning
Installed on 1 device.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 20m 38s
62 actionable tasks: 59 executed, 3 up-to-date
info Connecting to the development server...
info Starting the app...
Starting: Intent { cmp=com.project.projectname/.MainActivity }