U
U
Username2019-03-22 14:29:11
Android
Username, 2019-03-22 14:29:11

Why is React Native building an old apk version?

Good afternoon!
I ran into a problem when building apk with the command

$ cd android
$ ./gradlew assembleRelease

The old apk file is being built, if the application is launched through expo, then the current version is loaded.
How to build a new apk?
What I tried to do:
  1. 1. cd android
    2. ./gradlew clean
    3. ./gradlew assembleRelease

  2. react-native start --reset-cache
  3. There are more solutions from users, but as I understand it, this is for the old version of react native, since I don’t have such files
    react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

    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

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Melnikov, 2019-03-28
@almel

Good afternoon!
Please try:
watchman watch-del-all && rm -rf node_modules/ && npm verify && npm install && cd android && rm -rf build && ./gradlew clean && gradlew assembleRelease

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question