- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试在使用 react-native run-android
连接的移动设备上运行 React Native 应用程序。应用构建成功,但应用在打开时崩溃,并在命令提示符下卡在 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 }
最佳答案
首先从终端运行这个命令1. npm 安装请使用编辑器重新启动整个项目,然后运行以下命令
在执行这两个命令之前,请检查您的 Android SDK 的本地属性...
1. npm 启动2. npm 运行安卓
关于android - 停留在开始 Intent 主要 Activity react native 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61262743/
这是我的代码 />100 1000 它不按要求工作.. 当提交表单时(并且在任何错误情况下)它返回到默认选中的单选按钮,即值 = 1000 用户必须再次单击值 = 100,而目标是,如果用户选择了 1
假设我有一个透明的红色 HTML 元素。当我悬停该元素时,它应该变成纯红色。当我停止悬停该元素时,它应该动画回到第一个状态,但仅在 X 秒后。 到目前为止一切顺利,请参阅代码片段。 我的问题是当我停止
我遇到了 cookie 情况,我的 cookie 会存储一个颜色名称或根本不存储任何内容。所以让我们这样解释吧。我的 cookie 与我网站的外观有关,我的网站有 3 种外观: 正常(完全没有 coo
这是我的问题。我有一张包含三个 div 的 Bootstrap v4 卡。 A 是最重要的一个,我希望它保持在左上角。 当页面较宽时,我希望 B 和 C 在 A 的右侧。 当页面变窄时,卡片缩小,C
示例表: uid time_stp traf 1 2016-01-13 00:00:00 6 1 2016-01-13 05:00:00 8 1
我是一名优秀的程序员,十分优秀!