Release APK Not Updating With JavaScript Code

后端 未结 4 929
醉话见心
醉话见心 2020-12-04 17:14

My Android APK is running off the JavaScript present when I generated the first signed APK. I\'ve tried cleaning/rebuilding the project in Android Studio, I\'ve

4条回答
  •  醉话见心
    2020-12-04 17:48

    1.Delete (index.android.bundle) files inside directory android/app/src/main/assets.

    2.run 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.Delete folders (drawable,drawable-hdpi,drawable-mdpi,drawable-xhdpi,drawable-xxhdpi,drawable-xxxhdpi,raw) inside android/app/src/main/res

    4.run react-native run-android --variant=release

    IF NOT WORKING TRY THIS https://github.com/react-native-community/async-storage/issues/127#issuecomment-502574735

提交回复
热议问题