Android signed APK failed to load images - react-native

I followed this tutorial and generated signed APK , but when i try to run in my android emulator i got Unfortunatley AppName stopped
from adb logcat
E/AndroidRuntime( 3752): com.facebook.react.modules.core.JavascriptException: Requiring unknown module "AppName/images/home.png", stack:
but home.png is bundled in apk!
/AppName/android/app/build/outputs/apk/app-release/res/drawable-mdpi-v4/images_home.png
Note : My app is working fine in development mode

Related

Failed to launch emulator. Reason: Emulator exited before boot

I am installing React Native according to this website
https://reactnative.dev/docs/environment-setup
it's very useful until I run the command react-native run-android, this is the error I receive:
Failed to launch emulator. Reason: Emulator exited before boot..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
after i launch an emulator manually project build successfully but application is installed but not open?
create new emulator
increase space of emulator
wipe data of emulator
cold boot emulator
uninstall application
clean gradle

react-native appcenter-crashes does not log issues

I currently using react-native 0.65.
But crashes does not show on ms appcenter
I followed these instruction
https://learn.microsoft.com/en-us/appcenter/sdk/getting-started/react-native#3-add-the-app-center-sdk-modules
https://learn.microsoft.com/en-us/appcenter/sdk/crashes/react-native
I build an APK throwing an error
Then installed it on a device.
The app crashed but no item log registered on appcenter.
Any solutions for this?
Thank you

Expo can't connect to android-studio emulator (Ubuntu 20.04)

When I run "npm start" and then 'a'/ "sudo expo start --android" the connection to the android emulator fails.
the error I get is:
Couldn't start project on Android: Error running adb: No Android connected device found, and no emulators could be started automatically.
Please connect a device or create an emulator (https://docs.expo.io/workflow/android-studio-emulator).
Then follow the instructions here to enable USB debugging:
https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.
While trying to debug it I found:
The app is running on web browser
While launching the AVD on emulator on android-studio I get on android studio events:
Emulator: E0810 10:41:04.480101550 89662 socket_utils_common_posix.cc:201] check for SO_REUSEPORT: {"created":"#1597045264.480085451","description":"SO_REUSEPORT unavailable on compiling system","file":"/mnt/tmpfs/src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":169}
I Made sure that .bashrc includes the right SDK path: "export ANDROID_SDK=/home/user/Android/Sdk", and followed this link
I'll mention that the emulator already ran my app, I'm not sure what changed the configuration and made the app not running on android-studio emulator. I re-install android-studio but it's still have no connction

Expo is not running

When I am running my expo app, I am getting this warning: Warning: Problem validating app.json: Unable to perform cache refresh for C:\Users\User\AppData\Local\Expo\schema-37.0.0.json: Error: unable to get local issuer certificate.
enter image description here
I tried to ignore this warning, and run the app on Android emulator, but then I am getting this error: Couldn't start project on Android: Error running adb: unable to get local issuer certificate
enter image description here
You need to have the Android emulator opened, then you can open the project on it.

Titanium build error on device

I have a serious problem with titanium appcelerator studio build, i cannot build on device due to following error :
[ERROR] : An error occurred during build after 1m 35s 521ms
[ERROR] : Failed to install app on device (0xe8008018)
[ERROR] : For some reason the app failed to install on the device. Try reconnecting your device and check your provisioning profile and entitlements.
It happens just after titanium try to install app to device :
Installing app on device: xxx
Anyone has an idea about it please ?
Thank you.
To run on an iOS device, you need to have a valid signing cert and a valid provisioning profile that has that device's id embedded init.
Validity is important, as an expired signing cert will also return the
same error code (0xe8008018)
You can start up Xcode, visit the Devices window with your device plugged in to see the device console. That might give you more context than the titanium error logs will.
Follow ups would be:
1. Have you ever been able to build to a device with this project?
2. Have you ever been able to build to this device with this project?