Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade from 0.57.8 to 0.58.0 Version mismatch on APK #25512

Closed
joan-saum opened this issue Jul 5, 2019 · 4 comments
Closed

Upgrade from 0.57.8 to 0.58.0 Version mismatch on APK #25512

joan-saum opened this issue Jul 5, 2019 · 4 comments
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@joan-saum
Copy link

joan-saum commented Jul 5, 2019

I'm stuck on a weird problem since 2 days

I upgraded my react native version from 0.57.8 to 0.58.0 using rn-diff-purge. I made all necessary changes, upgrade dependencies that needed to be, etc
Everything works well on my computer when i run it on android (react-native run-android)

After that, i try build an apk of my application using gradlew and jarsigner. Build success

I install it on my device (adb install test.apk) and launch it.
Everything works fine except all my svg disappeared. Weird...
(I'm using react-native-svg and react-native-svg-uri. Both doesn't show a svg anymore)

So i'm running adb logcat | tee android.log to have logs on what is happening there
And i see a log saying i have react native version mismatch

JavaScript version: 0.57.8
Native version: 0.58.0

So maybe the problem is here..
I tried everything i found to fix this version mismatch :

  • Close all terminals and build the apk again
  • watchman watch-del-all
  • rm -rf node_modules && yarn
  • rm -rf /tmp/metro-*
  • rm -rf /tmp/react-*
  • I added this in the android/app/build.gradle:
    dependencies{compile ("com.facebook.react:react-native:0.58.0") { force = true } }

But this Javascript version is stuck to 0.57.8 ..

The upgrade i've made for react native 0.58 are :

  • install core-js 2.5.7
  • upgrade react-native-svg from 7.0.3 to 8.0.0
  • upgrade @storybook/react-native from 4.1.11 to 5.1.9
  • install babel-polyfill 6.26.0

React Native version:
React Native Environment Info:
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 82.02 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.9.0 - ~/.nvm/versions/node/v10.16.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 23, 25, 27, 28
Build Tools: 23.0.1, 27.0.3, 28.0.2
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.58.0 => 0.58.0
npmGlobalPackages:
react-native-git-upgrade: 0.2.7

I don't know what to try now

@joan-saum joan-saum added the Bug label Jul 5, 2019
@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the React Native version: section?

If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.

@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.60 and verify if the issue still exists.

The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.

@thymikee
Copy link
Contributor

thymikee commented Jul 5, 2019

It may be an issue with your 3rd party libraries specific versions. I'd advise to go straight to version 0.59.10, which is very stable in the community for couple of months and should cause less headaches. Then to 0.60 if all works and your 3rd party libs are compatible (we released it just 2 days ago, so weird things can happen).

Please come back if you have issues with 0.59. Closing this.

@thymikee thymikee closed this as completed Jul 5, 2019
@joan-saum
Copy link
Author

If anyone has the same problem :
I built the APK using appcenter this time and SVG was here, everything works. It seems there is still a cache i didn't delete which cause the problem. Unfortunately I don't know which one and how to find. 😒

@facebook facebook locked as resolved and limited conversation to collaborators Jul 5, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants