【问题标题】:React native the release apk is not showing the modified or updated codeReact Native 发布的 apk 没有显示修改或更新的代码
【发布时间】:2021-01-05 13:58:57
【问题描述】:

我正在使用 gradlew assembleRelease /android/app 生成 apk,apk 已成功创建,但生成的 apk 未显示最新或修改后的代码。这可能是什么问题。任何帮助将不胜感激。

【问题讨论】:

  • 请添加更多详细信息
  • 更多细节像?我应该提供什么。

标签: react-native build.gradle apk gradlew


【解决方案1】:

试试这个命令:

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/ && cd android && ./gradlew assembleRelease && cd ..

希望它有效!

【讨论】:

    【解决方案2】:

    确保您正在保存您的代码并清理您的 npm 缓存并响应本机缓存,然后再试一次,希望对您有所帮助,请使用此链接清理您的缓存

    https://gist.github.com/jarretmoses/c2e4786fd342b3444f3bc6beff32098d

    【讨论】:

    • 尝试上述步骤后我也遇到了同样的问题
    猜你喜欢
    • 1970-01-01
    • 2018-06-26
    • 2017-04-07
    • 1970-01-01
    • 1970-01-01
    • 2018-05-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多