problem in apk preparation

I have prepared .apk using “expo build:android” command .
let assume my version is 1.0.0 .
Again i have done some changes and prepared .apk in same process and this version is 2.0.0
Now If I am installing version1.0.0 in my android phone it is working fine. Now I kill the app. and reopen the app this time automatically changes done in version2.0.0 is showing inside my 1.0.0 app. I checked the app version at this point from settings. And version is 1.0.0 only. But still it is showing all the changes done in version 2.0.0

P.S. I am using the same device during development while I am using Expo start to run the app.
Could you help. me with the solutions?

when you run expo build it also runs expo publish which sends OTA updates to older versions of you app with the same sdkVersion

You can start using separate release channels for production and non-production environment, or you can switch to eas build (it does not require publishing before build)

https://docs.expo.dev/workflow/publishing/

1 Like

Thanks Team. But while I am doing this eas build getting failed.

Running npm in the root dir of your repository 

2[stderr]

npm WARN deprecated xmldom@0.1.27: Deprecated due to CVE-2021-21366 resolved in 0.5.0

3[stderr]

npm WARN deprecated watchman@1.0.0: Package no longer supported. Contact support@npmjs.com for more info.

4[stderr]

npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

5[stderr]

npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

6[stderr]

npm WARN deprecated

7[stderr]

uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

8[stderr]

npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

9[stderr]

npm

10[stderr]

WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added

11[stderr]

npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142

12[stderr]

npm WARN deprecated react-native-swipeout@2.3.6: Package no longer supported. Use at your own risk or consider using https://github.com/software-mansion/react-native-gesture-handler

13[stderr]

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

14[stderr]

npm WARN deprecated react-load-script@0.0.6: abandoned and unmaintained

15[stderr]

npm WARN

16[stderr]

deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

17[stderr]

npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0

18[stderr]

npm

19[stderr]

deprecated

20[stderr]

hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

21[stderr]


22[stderr]

WARN

23[stderr]


24[stderr]

npm WARN deprecated har-validator@5.1.5: this library is no longer supported

25[stderr]

npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.

26[stderr]

npm WARN deprecated @hapi/pinpoint@2.0.0: Moved to 'npm install @sideway/pinpoint'

27[stderr]

npm WARN deprecated @hapi/formula@2.0.0: Moved to 'npm install @sideway/formula'

28[stderr]

npm WARN deprecated @hapi/address@4.1.0: Moved to 'npm install @sideway/address'

29[stderr]

npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.

30[stderr]

npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.

31[stderr]

npm WARN deprecated uuid@2.0.3: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

32[stderr]

npm WARN deprecated @babel/polyfill@7.12.1: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.

33[stderr]

npm WARN deprecated buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer

34[stderr]

npm WARN deprecated uuid@3.0.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

35[stderr]

npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0

36[stderr]

npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0

37[stderr]

npm

38[stderr]


39[stderr]

WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

40[stderr]

npm WARN deprecated

41[stderr]

uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

42[stderr]

npm WARN deprecated uuid@3.3.2: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

43[stderr]

npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0

44[stderr]

npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0

45[stderr]

npm WARN deprecated joi@11.4.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

46[stderr]

npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0

47[stderr]

npm WARN deprecated uuid@3.3.2: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

48[stderr]

npm WARN deprecated @hapi/joi@17.1.1: Switch to 'npm install joi'

49[stderr]

npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0

50[stderr]

npm WARN deprecated axios@0.17.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410

51[stderr]

npm WARN deprecated graphql-tools@3.0.0: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead

52[stderr]

npm WARN deprecated axios@0.19.0: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410

53[stderr]

npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410

54[stderr]

npm WARN deprecated react-navigation-stack@1.10.3: This version of React Navigation Stack is no longer supported. Please upgrade to 2.x.x. See https://reactnavigation.org/docs/4.x/upgrading-from-3.x#react-navigation-stack for instructions.

55[stderr]

npm WARN deprecated core-js@1.2.7: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.

56[stderr]

npm WARN deprecated core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.

57[stderr]

npm ERR! code E404

58[stderr]

npm ERR! 404

59[stderr]

Not Found - GET http://npm-cache-service.production.svc.cluster.local:4873/-/-/--0.0.1.tgz - File not found

60[stderr]

npm ERR! 404 

61[stderr]

npm ERR! 404  '-@http://npm-cache-service.production.svc.cluster.local:4873/-/-/--0.0.1.tgz' is not in this registry.

62[stderr]

npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

63[stderr]

npm ERR! 404 

64[stderr]

npm ERR! 404 Note that you can also install from a

65[stderr]

npm ERR! 404 tarball, folder, http url, or git url.

66[stderr]


67[stderr]

npm ERR! A complete log of this run can be found in:

68[stderr]

npm ERR!     /home/expo/.npm/_logs/2022-03-01T05_22_42_813Z-debug.log

69


npm exited with non-zero code: 1

It looks like you might have a weird dependency. Could you post the dependencies section from your package.json?

technically it’s probably bug in verdacio that we use as npm cache, it looks like you have a package named - in your dependencies, which I assume is a mistake.

1 Like

@expo/vector-icons”: “^12.0.0”,

"@react-native-async-storage/async-storage": "~1.15.0",

"@react-native-community/art": "^1.2.0",

"@react-native-community/cameraroll": "^1.8.1",

"@react-native-community/datetimepicker": "3.5.2",

"@react-native-community/netinfo": "6.0.2",

"@react-native-community/toolbar-android": "0.1.0-rc.2",

"@react-navigation/bottom-tabs": "^5.11.15",

"@react-navigation/native": "^5.4.0",

"@react-navigation/stack": "^5.14.9",

"amazon-cognito-identity-js": "^3.3.3",

"aws-amplify": "^1.3.3",

"axios": "^0.21.4",

"expo": "^43.0.0",

"expo-barcode-scanner": "^11.2.0",

"expo-camera": "~12.0.3",

"expo-cli": "^3.28.6",

"expo-constants": "~12.1.3",

"expo-file-system": "~13.0.3",

"expo-font": "~10.0.3",

"expo-image-manipulator": "~10.1.2",

"expo-image-picker": "~11.0.3",

"expo-local-authentication": "~12.0.1",

"expo-localization": "~11.0.0",

"expo-media-library": "^14.0.0",

"expo-notifications": "~0.13.3",

"expo-permissions": "~13.0.3",

"expo-react-native-adapter": "^3.0.1",

"expo-screen-orientation": "^4.1.2",

"expo-splash-screen": "~0.13.5",

"expo-status-bar": "~1.1.0",

"expo-updates": "~0.10.15",

"fast-sort": "^2.2.0",

"filter-data": "^0.1.3",

"grunt": "^1.4.1",

"i18n-iso-countries": "^5.5.0",

"moment": "^2.29.1",

"moment-timezone": "^0.5.34",

"react": "17.0.1",

"react-devtools": "^3.6.3",

"react-dom": "17.0.1",

"react-google-charts": "^3.0.15",

"react-moment": "^0.9.7",

"react-native": "0.64.3",

"react-native-action-button": "^2.8.5",

"react-native-animated-loader": "0.0.8",

"react-native-background-timer": "^2.4.1",

"react-native-btr": "^1.2.0",

"react-native-cardview": "^2.0.5",

"react-native-chart-kit": "^5.6.1",

"react-native-check-box": "^2.1.7",

"react-native-circular-progress": "^1.3.7",

"react-native-crypto": "^2.2.0",

"react-native-custom-snackbar": "^1.0.1",

"react-native-datepicker": "^1.7.2",

"react-native-device-info": "^5.6.5",

"react-native-drawer": "^2.5.1",

"react-native-dynamic-tab-view": "^1.0.7-0",

"react-native-elements": "^1.2.7",

"react-native-event-listeners": "^1.0.7",

"react-native-exit-app": "^1.1.0",

"react-native-expo-cached-image": "^1.3.1",

"react-native-fast-image": "^7.0.2",

"react-native-flat-header": "^1.0.7",

"react-native-gesture-handler": "~1.10.2",

"react-native-hide-show-password-input": "^1.2.0",

"react-native-image-resizer": "^1.4.5",

"react-native-image-slider": "^2.0.3",

"react-native-image-slider-box": "^1.1.14",

"react-native-image-zoom-viewer": "^3.0.1",

"react-native-keyboard-aware-scroll-view": "^0.9.5",

"react-native-line-chart": "^1.0.4",

"react-native-loading-spinner-overlay": "^1.1.0",

"react-native-localize": "^1.4.3",

"react-native-material-dropdown": "^0.11.1",

"react-native-material-menu": "^1.2.0",

"react-native-material-textinput": "^1.1.0",

"react-native-modal-datetime-picker": "^8.9.3",

"react-native-modal-dropdown": "^0.7.0",

"react-native-modal-loader": "^1.3.0",

"react-native-modals": "^0.19.10",

"react-native-pager-view": "^5.4.11",

"react-native-paper": "^3.12.0",

"react-native-picker-checkbox": "^2.0.2",

"react-native-pie": "^1.1.2",

"react-native-progress": "^4.1.2",

"react-native-progress-bar-classic": "^1.2.1",

"react-native-pure-chart": "0.0.24",

"react-native-reanimated": "~2.2.0",

"react-native-responsive-fontsize": "^0.4.3",

"react-native-responsive-linechart": "^2.2.0",

"react-native-safe-area-context": "3.3.2",

"react-native-screens": "~3.8.0",

"react-native-segmented-control-tab": "^3.4.1",

"react-native-select-dropdown": "^1.8.0",

"react-native-selectable-flatlist": "^1.0.3",

"react-native-side-drawer": "^1.2.9",

"react-native-simple-progress-bar": "^0.1.4",

"react-native-smart-toast": "^1.1.1",

"react-native-snackbar-component": "^1.1.12",

"react-native-square-view": "0.0.3",

"react-native-status-bar-height": "^2.6.0",

"react-native-svg": "12.1.1",

"react-native-svg-charts": "^5.4.0",

"react-native-svg-uri": "^1.2.3",

"react-native-swipeable": "^0.6.0",

"react-native-swipeout": "^2.3.6",

"react-native-switch": "^1.5.0",

"react-native-tab-view": "^2.16.0",

"react-native-timer": "^1.3.6",

"react-native-timezone": "^1.0.3",

"react-native-unimodules": "~0.15.0",

"react-native-validator-form": "^1.0.0",

"react-native-vector-icons": "^6.7.0",

"react-native-web": "0.17.1",

"react-native-webview": "11.13.0",

"react-navigation": "^4.4.4",

"react-navigation-drawer": "^2.7.1",

"react-navigation-stack": "^1.10.3",

"react-navigation-tabs": "^2.11.1",

"reanimated-bottom-sheet": "^1.0.0-alpha.22",

"request-promise": "^4.2.6",

"rn-fetch-blob": "^0.12.0",

"rn-tooltip": "^2.0.0",

"save": "^2.4.0",

"tcomb-form-native": "^0.6.20",

"toggle-switch-react-native": "^2.3.0",

"validate.js": "^0.13.1",

"watchman": "^1.0.0",

"yarn": "^1.22.17"

Please find the dependecies for my app.
Another point I would like to highlight that i am using windows machine for my development.
Thanks.

Hello Team ,
Please find the dependencies of my app. Another point I would like to highlight that i am using windows machine for my development.
@expo/vector-icons”: “^12.0.0”,

"@react-native-async-storage/async-storage": "~1.15.0",

"@react-native-community/art": "^1.2.0",

"@react-native-community/cameraroll": "^1.8.1",

"@react-native-community/datetimepicker": "3.5.2",

"@react-native-community/netinfo": "6.0.2",

"@react-native-community/toolbar-android": "0.1.0-rc.2",

"@react-navigation/bottom-tabs": "^5.11.15",

"@react-navigation/native": "^5.4.0",

"@react-navigation/stack": "^5.14.9",

"amazon-cognito-identity-js": "^3.3.3",

"aws-amplify": "^1.3.3",

"axios": "^0.21.4",

"expo": "^43.0.0",

"expo-barcode-scanner": "^11.2.0",

"expo-camera": "~12.0.3",

"expo-cli": "^3.28.6",

"expo-constants": "~12.1.3",

"expo-file-system": "~13.0.3",

"expo-font": "~10.0.3",

"expo-image-manipulator": "~10.1.2",

"expo-image-picker": "~11.0.3",

"expo-local-authentication": "~12.0.1",

"expo-localization": "~11.0.0",

"expo-media-library": "^14.0.0",

"expo-notifications": "~0.13.3",

"expo-permissions": "~13.0.3",

"expo-react-native-adapter": "^3.0.1",

"expo-screen-orientation": "^4.1.2",

"expo-splash-screen": "~0.13.5",

"expo-status-bar": "~1.1.0",

"expo-updates": "~0.10.15",

"fast-sort": "^2.2.0",

"filter-data": "^0.1.3",

"grunt": "^1.4.1",

"i18n-iso-countries": "^5.5.0",

"moment": "^2.29.1",

"moment-timezone": "^0.5.34",

"react": "17.0.1",

"react-devtools": "^3.6.3",

"react-dom": "17.0.1",

"react-google-charts": "^3.0.15",

"react-moment": "^0.9.7",

"react-native": "0.64.3",

"react-native-action-button": "^2.8.5",

"react-native-animated-loader": "0.0.8",

"react-native-background-timer": "^2.4.1",

"react-native-btr": "^1.2.0",

"react-native-cardview": "^2.0.5",

"react-native-chart-kit": "^5.6.1",

"react-native-check-box": "^2.1.7",

"react-native-circular-progress": "^1.3.7",

"react-native-crypto": "^2.2.0",

"react-native-custom-snackbar": "^1.0.1",

"react-native-datepicker": "^1.7.2",

"react-native-device-info": "^5.6.5",

"react-native-drawer": "^2.5.1",

"react-native-dynamic-tab-view": "^1.0.7-0",

"react-native-elements": "^1.2.7",

"react-native-event-listeners": "^1.0.7",

"react-native-exit-app": "^1.1.0",

"react-native-expo-cached-image": "^1.3.1",

"react-native-fast-image": "^7.0.2",

"react-native-flat-header": "^1.0.7",

"react-native-gesture-handler": "~1.10.2",

"react-native-hide-show-password-input": "^1.2.0",

"react-native-image-resizer": "^1.4.5",

"react-native-image-slider": "^2.0.3",

"react-native-image-slider-box": "^1.1.14",

"react-native-image-zoom-viewer": "^3.0.1",

"react-native-keyboard-aware-scroll-view": "^0.9.5",

"react-native-line-chart": "^1.0.4",

"react-native-loading-spinner-overlay": "^1.1.0",

"react-native-localize": "^1.4.3",

"react-native-material-dropdown": "^0.11.1",

"react-native-material-menu": "^1.2.0",

"react-native-material-textinput": "^1.1.0",

"react-native-modal-datetime-picker": "^8.9.3",

"react-native-modal-dropdown": "^0.7.0",

"react-native-modal-loader": "^1.3.0",

"react-native-modals": "^0.19.10",

"react-native-pager-view": "^5.4.11",

"react-native-paper": "^3.12.0",

"react-native-picker-checkbox": "^2.0.2",

"react-native-pie": "^1.1.2",

"react-native-progress": "^4.1.2",

"react-native-progress-bar-classic": "^1.2.1",

"react-native-pure-chart": "0.0.24",

"react-native-reanimated": "~2.2.0",

"react-native-responsive-fontsize": "^0.4.3",

"react-native-responsive-linechart": "^2.2.0",

"react-native-safe-area-context": "3.3.2",

"react-native-screens": "~3.8.0",

"react-native-segmented-control-tab": "^3.4.1",

"react-native-select-dropdown": "^1.8.0",

"react-native-selectable-flatlist": "^1.0.3",

"react-native-side-drawer": "^1.2.9",

"react-native-simple-progress-bar": "^0.1.4",

"react-native-smart-toast": "^1.1.1",

"react-native-snackbar-component": "^1.1.12",

"react-native-square-view": "0.0.3",

"react-native-status-bar-height": "^2.6.0",

"react-native-svg": "12.1.1",

"react-native-svg-charts": "^5.4.0",

"react-native-svg-uri": "^1.2.3",

"react-native-swipeable": "^0.6.0",

"react-native-swipeout": "^2.3.6",

"react-native-switch": "^1.5.0",

"react-native-tab-view": "^2.16.0",

"react-native-timer": "^1.3.6",

"react-native-timezone": "^1.0.3",

"react-native-unimodules": "~0.15.0",

"react-native-validator-form": "^1.0.0",

"react-native-vector-icons": "^6.7.0",

"react-native-web": "0.17.1",

"react-native-webview": "11.13.0",

"react-navigation": "^4.4.4",

"react-navigation-drawer": "^2.7.1",

"react-navigation-stack": "^1.10.3",

"react-navigation-tabs": "^2.11.1",

"reanimated-bottom-sheet": "^1.0.0-alpha.22",

"request-promise": "^4.2.6",

"rn-fetch-blob": "^0.12.0",

"rn-tooltip": "^2.0.0",

"save": "^2.4.0",

"tcomb-form-native": "^0.6.20",

"toggle-switch-react-native": "^2.3.0",

"validate.js": "^0.13.1",

"watchman": "^1.0.0",

"yarn": "^1.22.17"

Hi

You have several things in there that should not be there or should rather be in devDependencies.

@react-native-community/art is not compatible with recent versions of Expo. In theory it should work if you use EAS Build (I haven’t looked into it), but it will not work with expo build. So I suspect your code is not actually making use of @react-native-community/art.

You have a mixture of different React Navigation versions. I would not be surprised if this caused some problems.

This will not work with with an app built with expo build. It looks like it will probably work out of the box if you build with EAS Build, though. Are you currently using this?

This is not something you need in a managed app. So it’s irrelevant if you are building with expo build.

This is incompatible with expo build. So again, if you built successfully with expo build and the app worked as it was supposed to, then I suspect you’re not actually using rn-fetch-blob.

These are all things you should not have as dependencies. For some, like grunt and react-devtools you might want to have them as devDependencies. But expo-cli and yarn are normally installed globally rather than as devDependencies.

I did not check the above thoroughly so there might be other problems.

Maybe start by removing dependencies you know you’re not using. Also run expo doctor to see if it complains about anything. If things still don’t work after that, have a closer look at the other dependencies and versions and see what you actually need.

If you still can’t get it to work like that, you could do it the other way around. Start with the bare minimum dependencies and devDependencies. Try to run/build your app. Then gradually start adding things back that you need.

Here’s what dependencies and devDependencies you get with a newly created SDK 43 app:

  "dependencies": {
    "expo": "~43.0.2",
    "expo-status-bar": "~1.1.0",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-web": "0.17.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9"
  },
1 Like

Hello Wodin ,
This is indeed a detail specification.
It helps me a lot in my understanding.
I will look into the packages one by one.
Thanks once again for you help :slight_smile:

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.