【问题标题】:How to Install React- Naitve project after uninstalling it from physical device从物理设备卸载 React-Native 项目后如何安装它
【发布时间】:2021-09-16 20:53:48
【问题描述】:

我最近卸载了react native项目在物理设备中重建项目。

Installing APK 'app-debug.apk' on 'ZenFone Max Pro M1 - 10' for app:debug
Installed on 1 device.

BUILD SUCCESSFUL in 26s
167 actionable tasks: 2 executed, 165 up-to-date
info Connecting to the development server...
info Starting the app on "C4ATAS000000"...

但它不会初始化项目。显示此错误后。

Starting: Intent { cmp=com.newproject/.MainActivity }
Error type 3
Error: Activity class {com.newproject/com.newproject.MainActivity} does not exist.
Done in 37.23s.

我应该怎么做才能在物理设备中重新安装它。 提前致谢

【问题讨论】:

    标签: javascript react-native console.log


    【解决方案1】:

    这是有时会发生的常见错误,请尝试使用以下命令可能对您有所帮助

    • 卸载旧应用
    • 打开项目,然后打开终端
    • cd 安卓
    • ./gradlew clean
    • cd ..
    • npx react-native run-android

    【讨论】:

    • 非常感谢。我用 adb 命令正确卸载后它工作了
    猜你喜欢
    • 2021-04-07
    • 1970-01-01
    • 2018-09-11
    • 2010-10-17
    • 1970-01-01
    • 1970-01-01
    • 2022-06-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多