Repository navigation
Description
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-allrm -rf node_modules && yarnrm -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
Activity
react-native-bot commentedon Jul 5, 2019
Can you run
react-native infoand edit your issue to include these results under the React Native version: section?Details
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 commentedon Jul 5, 2019
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.
Details
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 commentedon 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.
joan-saum commentedon Jul 5, 2019
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. 😒