question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

require image load wrong image in android

See original GitHub issue

Description

Whenever I add a new image to the project, the next update presents this problem in production, both in apk and aab. The problem is that some of the images in the app point to other images and not to those in source. for example instead of a wave or icon, I get something else. This does not happen in the android emulator, it only happens if I update the app from a previous version, if I install it from scratch it does not access. I uploaded two photos from two different phones, one before the update, one with the update. Can you give me a hand?

Version

0.66.3

Output of react-native info

OS: macOS 10.15.7
CPU: (4) x64 Intel(R) Core(TM) i5-3330S CPU @ 2.70GHz
Memory: 52.42 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh

Binaries: Node: 12.22.1 - /usr/local/bin/node Yarn: Not Found npm: 6.14.12 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2 System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: 11.0.13 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.3 => 0.66.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Whenever I add a new image to the project

Snack, code example, screenshot, or link to a repository

1638191929753 Screenshot_20211129_142013_com muvsrl

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

16reactions
invyctus92commented, Nov 30, 2021

Solved, problem was affecting Fresco, in particular version 2.6.0, downgrade to 2.5.0 I solved it

1reaction
dimaportenkocommented, Oct 24, 2022

@pierroo tbh, I don’t know. My case was slightly different and force "com.facebook.fresco:fresco:2.5.0" was enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android image loader sometime load wrong images or not ...
1 Answer 1 ... The issue with recycling views as is done in a ListView, is occasionally requests to load an image aren't...
Read more >
Displaying Images with the Glide Library - CodePath Cliffnotes
If an image or set of images aren't loading, make sure to check the Android monitor log in Android Studio. There's a good...
Read more >
Solving the Android Image Loading Problem: An Updated Guide
Check out our blog post Solving the Android Image Loading Problem: An Updated Guide from Big Nerd Ranch. Learn more and read it...
Read more >
react-native-fast-image - npm
FastImage, performant React Native image component. ... use Proguard you will need to add these lines to android/app/proguard-rules.pro :
Read more >
Take photos | Android Developers
If your application uses, but does not require a camera in order to function, instead set android:required to false . In doing so,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found