How can I fix this? My app works fine if I use expo app to emulate it on android, but it crashes when I build the apk

Marco Sajeva

I used ReactNative to create my simple app, but after I builded the apk and installed on my phone and even into others phones it didn't work. I don't know why, I made a lot of tries changing a lot of things. I don't how to fix it, I'm trying by a week. I thought the problem was that I didn't installed correctly some components but I tried making a new project without make any changes and It worked, so it is sure a problem of my project. To make my project I used expo init and then expo eject and I choiced ExpoKit, because using only expo init I doesn't have android folder and using react native I doesn't have expo, so I used this command to have both. Tells me which files you need to see. I don't know whick one put there because I don't have any more ideas of whick could be the problem.

Carlos Yanes

I will recommend that if you use Expo try not to eject it because it simply doesn't work well. I myself have been developing react native apps for over a year and at first I used expo for obvious simple reasons but as the app grow bigger and needed native components and api from iOS and Android the app didn't work. Some months ago I just started with react-native init and use all the frontend code from the expo before ejecting and now works fine!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

My Android Studio's app collapses when I use TabLayout, how can I fix it?

App crashes when I try to launch in Android Kitkat 4.4.4 but works fine in Android 5 & 6 versions

How can I fix the layout views in my android app?

expo android build failed grandle how can I fix this?

My app works fine when I run it from android studio, but doesn't work from google play

Why can't I see my NGINX log's when my app is deployed to Azure app services, but it works fine locally?

My published app on google play shows an android file when users download it. How can i fix this?

My intel xdk project works when i emulate but no when i generate my apk

How can I build my Expo app using SDK 49: CocoaPods could not find compatible versions for pod

My android studio project is not giving me the option to build apk. How can I fix it?

How can I publish to the Apple app store my expo application?

My android app crashes when I use it, and Android studio shows "FATAL EXCEPTION"

My Android App crashes when I hit the button

How can I use Android native icons in my new app?

Android App Bundle kills Google Play Games integration - Working with plain old APK - How can I fix this?

Can I use android app bundle to generate required APK on my server?

How can I profile my Android app?

how can I run my android app?

How to download my android app to my computer so I can fix it in Android Studio

Can I use Expo Packages (such as expo-linear-gradient or expo-mail-composer) Without actually running my app on Expo

What causes the Build Failed error in AndroidManifest.xml and how can I fix it in my Flutter app?

my app crashes eveytime I try to use app.use

Android app crashes when i try to reLogin

Can i still use expo after i detach my react native app?

How can I ensure my Android app always starts on the main activity, even if it crashes?

How can I execute checkstyle whenever I build an Android app

App crashes when i make its Signed Apk

Please how can I fix this error in my react app

How can I generate apk file for create-react-native-app (using EXPO.IO component)