I am generating APK using eas build --platform android and expo build:android -t apk.
Both generate apps but the eas build generated app crashes while the expo build app works fine. There is no difference in code. Not able to check why it happens. Any suggestion would be helpful.
I resolved the issue by manually installing some dependency that EXPO is managing itself.
Building .apks using EXPO command expo build:android -t apk never crashed on the physical device, but when I switched to EAS command eas build --platform android the app crashed on physical devices.
Dependency e.g "react-native-screens": "~3.8.0". Now i can export .apk and .aab using EAS command eas build --platform android
Other issues like camera and gallery permission are also managed by EXPO if you don't mention them.
This may be because of the Expo SDK version.
Related
I was using expo build:android -t apk to get an apk file an try the application.
It was automatically available in expo.
Now I try to do the same with eas but it is not working.
I tried :
yarn eas build -p android -t apk
yarn eas build -p android --profile preview
yarn eas build -p android
All my build are of course created, but no one is available directly in expo like I was used to.
Any idea ?
I created an empty project and uploaded it using EAS build for android. "eas build -p android". but the app.aab file has 30.9MB. An empty native project in kotlin/java has something about 5-7MB. How can I reduce this EAS app bundle?
expo build:android -t app-bundle works for me
enter image description here
Why do you want the new Build React Native Can't Compressing Project Files?
What is wrong ?
Is the EAS EXPO still the development stage?
if you use it
Expo Build: Android -t APK
Expo Build: Android -t App-Bundle
can be good but if you use it
EAS Build - Android Platform
EAS Build - Platform iOS
EAS Build -P Android - Prevrofile Preview
can't,
why ?
I have build the apk of my react native app and installed it on android device. But whenever I try to open the app it shows below errors:
ss1
ss2
Any help or suggestion would be well appreciated.
you can use ./gradlew assembleRelease to generate apk in release mode or ./gradlew bundleRelease to generate the bundle of the app .aab
for more, you can follow this https://reactnative.dev/docs/signed-apk-android#generating-the-release-aab
project directory: cd android
./gradlew bundleRelease
react-native run-android is working fine, which means dev apk is working on device but, release apk is not build and failed with the above error.
How I can solve this issue?