【问题标题】:The react native app isn't the latest page packagedreact native 应用不是最新打包的页面
【发布时间】:2019-08-21 03:24:04
【问题描述】:

应用程序开发完成后,我想打包发布。安装在我的手机上,不是最新的页面

反应原生:0.58.6 反应:16.8.3

cd android && gradlew assembleRelease

【问题讨论】:

标签: android react-native


【解决方案1】:

尝试运行(对于 RN android)

1. react-native start --reset-cache
 2. react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
 3. cd android
 4. gradlew clean
 5. gradlew assembleDebug

【讨论】:

    【解决方案2】:

    您需要遵循以下步骤来解决此问题。

    删除android文件夹并做react-native升级(不是react-native run-android)

    在以下位置创建文件夹。

    your_app/android/app/src/main 在根目录执行以下命令。 (只需复制并粘贴以下代码)

    react-native bundle --platform android --dev false --entry-file index.js   --bundle-output android/app/src/main/assets/index.android.bundle   --assets-dest android/app/src/main/res/
    Please note if you are using index.android.js then replace it in --entry-file.
    

    最后

    cd android && ./gradlew installDebug
    

    希望这能解决您的问题。

    Go to this reference

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-02
      • 1970-01-01
      • 2019-06-02
      • 1970-01-01
      • 1970-01-01
      • 2019-12-12
      • 1970-01-01
      • 2018-12-02
      相关资源
      最近更新 更多