How to base64 encode a png asset in expo 50 android production app
I have been trying to get this to work for ages and have tried many different ways to get this to work. I am trying to get a bundled asset in an android app, created with expo 50, base64 encode it so I can use it to create a PDF. It works fine in development but after building the APK it doesn’t load. I am not able to use Asset from expo assets as that is for sdk 51 I believe. I have found threads elsewhere that say to prepend file:/// or file:///android_asset or file:///android_res to the resource identifier that is available from assets[0].localUri but none of these variations work, the issue is not that assets[0].localUri is undefined, it is that I don’t know how to use this resource identifier to access the resource with FileSystem. I have tried unzipping an APK to look at the file structure but it is not like a normal android app, I can’t see any mention of any of the image i am trying to use, however there are other images the app uses, for splash screen etc. and i cant find those either even though they do work. Here is a minimal version of the screen that I am trying to get working. I am greatful for any help.
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:compileDebugKotlin’
I’m trying to generate an android build for my React-native project, but I’m getting this error during compilation. I can’t find the reason for the problem
Expo After building as preview on android, shows only a blank white screen
Successful build but white screen on device.
ERROR TypeError: Cannot read property ‘__expo_module_name__’ of undefined, js engine: hermes
{ … “scripts”: { “off”: “expo start –offline”, “start”: “expo start”, “android”: “expo start –android”, “ios”: “expo start –ios”, “web”: “expo start –web” }, “dependencies”: { “@react-native-async-storage/async-storage”: “^1.23.1”, “@react-native-community/art”: “^1.2.0”, “@react-native-community/netinfo”: “9.3.10”, “@react-native-picker/picker”: “2.4.10”, “@react-navigation/material-bottom-tabs”: “^6.2.4”, “@react-navigation/material-top-tabs”: “^6.5.3”, “@react-navigation/native”: “^6.0.13”, “@react-navigation/native-stack”: “^6.9.0”, “@react-navigation/stack”: “^6.3.1”, “@svanboxel/visibility-sensor-react-native”: “^1.0.2”, “axios”: “^1.1.3”, “country-data”: “^0.0.31”, “expo”: “^51.0.18”, “expo-av”: “~13.4.1”, “expo-blur”: […]
React Native fetch() returns “Network request failed” (Android)
Some users in our production app are not able to access our API through our app.
Expo Android cannot build
I have %JAVA_HOME% pointing to: C:Program FilesMicrosoftjdk-11.0.12.7-hotspot
React Native – Expo freezes while building android app
Due to a future mobile project and knowledge of react and typescript I wanted to get into react native. I followed the instructions as found on the official react native “get started” page and went on by using expo.
Is there any way to solve to run gradle error which involves problem in classifier and java executable file
How to get solve this error:
Expo doesn’t render italic fonts on Android
We are having 2 problems loading custom fonts on Android.
Task :expo-modules-core:configureCMakeDebug[arm64-v8a] FAILED
I’m facing an issue while building an Expo Android project. When I attempt to run the app using either npx expo run:android
or eas build
, I encounter the following error: