Building an Android APK with React Native Expo | Tutorial EAS Build

  Рет қаралды 83,541

Code with Beto

Code with Beto

Жыл бұрын

Join us in this tutorial as we create an APK for Android.
React Native Course 👉🏼 codewithbeto.dev/learn
For resources go to Code With Beto 👉🏼 codewithbeto.dev
My new channel 👉🏼 / @codewithbeto1
Join the Discord: / discord
👨🏻‍💻 ☕️ 🌟 Would you like to support me? Sponsor me on GitHub🌟 ☕️ 👨🏻‍💻
github.com/betomoedano
⭐️ If you want to learn more about me, check this links:
Twitter: / betomoedano
Instagram: / betomoedano. .
Github: github.com/betomoedano
Linkedin: / betomoedano
Discord: / discord
Code With Beto: codewithbeto.vercel.app/
Medium: / betomoedano01
Figma: www.figma.com/@betomoedano
My channel in Spanish: / betomoedano
⭐️ My apps & projects:
► Code With Beto: codewithbeto.vercel.app/
► Eco Studios: ecodev.netlify.app
⭐️ Contact: betomoedano@outlook.com

Пікірлер: 110
@user-dp9ef2lv6l
@user-dp9ef2lv6l Жыл бұрын
I am getting error android build failed can you please resolve it ?
@user-rb2kh1jd2s
@user-rb2kh1jd2s 8 ай бұрын
Thanks for the useful video! Can you share how did you changed the app icon? I can't seem to change it no matter what I try. I changed it in the app.json file and ran eas update but the icon doesnt change. Help please🙏
@JuneBeforeJuly
@JuneBeforeJuly 10 ай бұрын
am i doing th enpm install in my project folder or do i do it through git?
@victorhugotiradopenaranda3149
@victorhugotiradopenaranda3149 Жыл бұрын
Linking local project to EAS project d7fc23b1-48ad-47da-a3ae-xxxxx3f7xxxx No config exists Error: build:configure command failed.
@Daniel-vc2nz
@Daniel-vc2nz 22 күн бұрын
i couldn't explore more on the eas.json file and was not able to edit on it just like what you're doing on your screen but my eas build was successfully created for all device .what can i do ?
@pierremutamba5272
@pierremutamba5272 Жыл бұрын
Hi, I can't create an account when I create it, I get an error message, can you help me, thank you for your answer. Peter
@sujanjoshi8151
@sujanjoshi8151 Жыл бұрын
I get error with: Linking local project to EAS project
@aryanbarnwal5645
@aryanbarnwal5645 4 ай бұрын
can you please tell me if the APK file will run on my Android phone?
@danielsalazar6557
@danielsalazar6557 20 күн бұрын
Im having problems with asynstorage in the Apk when I install the file in my Android phone, for some reason the the asynstorage doesn't save any value, Did anyone have the same problem?
@Habitual-Developer
@Habitual-Developer Жыл бұрын
IS it Debug apk? if yes then is it possible throught create-react-native-app?
@pramudnadula9690
@pramudnadula9690 11 ай бұрын
can you tell me what is the name of android simulator and where can i download
@user-dm2kl7dw2h
@user-dm2kl7dw2h 9 ай бұрын
if it is crush after lounch then remove node modules and package-lock install packages using yarn and then during build check errors and in my case it was about add package react-native-screens
@testing0911
@testing0911 7 ай бұрын
thanks buddy really needed this
@lucasdossantosgomes8312
@lucasdossantosgomes8312 Жыл бұрын
Build failed: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information. how to resolve this problem?
@my_extreme_code
@my_extreme_code Жыл бұрын
When encountering a Gradle build failure with an unknown error, it can be challenging to pinpoint the exact cause without additional information or error logs. However, here are some general troubleshooting steps you can follow to resolve the issue: Check the error logs: Look for the specific error message or stack trace provided in the logs for the "Run gradlew" phase. The logs can usually be found in the console output or in a separate log file. Understanding the specific error message can help you identify the root cause of the problem. Verify Gradle version: Ensure that you are using a compatible Gradle version for your project. Check the Gradle documentation or the project's documentation to determine the recommended Gradle version. You can also try updating Gradle to a newer version if you are using an outdated one. Check for dependency conflicts: Gradle builds can fail due to conflicts between different dependencies. Use the dependency management features of Gradle to analyze and resolve any conflicts. You can try excluding or updating specific dependencies to resolve conflicts. Clean and rebuild: Sometimes, build failures can be caused by corrupt or outdated build artifacts. Try cleaning the project build by running gradlew clean or ./gradlew clean (depending on your operating system) before attempting to rebuild. This will remove any previously generated build files and start with a clean slate. Internet connectivity: Gradle relies on internet connectivity to download dependencies and plugins. Ensure that you have a stable internet connection and that any necessary proxies or firewalls are properly configured. Check for build script errors: Review your Gradle build scripts (build.gradle or build.gradle.kts) for any syntax errors or misconfigurations. Pay attention to the tasks, dependencies, and plugins specified in the build scripts. Gradle wrapper: If you are using the Gradle wrapper (gradlew or gradlew.bat), make sure it is properly configured and up to date. You can try updating the Gradle wrapper by running gradlew wrapper --gradle-version X.Y.Z (replace X.Y.Z with the desired Gradle version). Seek help: If you have tried the above steps and the issue persists, consider seeking help from the Gradle community or the specific project's support channels. They may be able to provide more targeted guidance based on the error logs or project-specific configuration. Remember to provide as much relevant information as possible when seeking assistance, such as the error message, relevant portions of the build script, and any additional context that might be helpful in diagnosing the problem.
@javiersistemas
@javiersistemas Жыл бұрын
Better English than some guys, Beto ... congrats 😀👍 By the way, can you explain how to run and configure that Emulator on the right side on the screen, man. Thanks in advance 😀👍
@codewithbeto
@codewithbeto Жыл бұрын
Thanks bro! Do you mean the IOS simulator? You just need to download Xcode 👍👍
@javiersistemas
@javiersistemas Жыл бұрын
@@codewithbeto OK... in MacOS but in Windows is it possible? 🤔 I guess so. Thanks for your answer, my man 😀👍
@codewithbeto
@codewithbeto Жыл бұрын
@@javiersistemas is not possible on windows
@javiersistemas
@javiersistemas Жыл бұрын
@@codewithbeto ohhh boy 😨😨😨 ... that's so sad 😞 ... Anyway, thanks for your time, man and I'll keep supporting you, brother 😃😃
@codewithbeto
@codewithbeto Жыл бұрын
@@javiersistemas thanks Javier I appreciate you
@amanikafonogo9695
@amanikafonogo9695 4 ай бұрын
I am getting eas not recognize command
@abishaa6691
@abishaa6691 Жыл бұрын
Thank you.🎉
@codewithbeto
@codewithbeto Жыл бұрын
You bet!
@sp-ef2fi
@sp-ef2fi Жыл бұрын
So in Windows using EAS we can only target android simulator but not iOS? Then what is the benefit of using Expo over react native cli?
@codewithbeto
@codewithbeto Жыл бұрын
Yes you can target android, this tutorial is just for android
@anillimbu7092
@anillimbu7092 Жыл бұрын
When i run this command in my terminal eas build:configure it says zsh: command not found: eas, how to fix it ?
@codewithbeto
@codewithbeto Жыл бұрын
You need to install the expo CLI, refer to the expo documentation for instructions 👍
@SonuSinghmirzapur
@SonuSinghmirzapur 10 ай бұрын
Compressing project files :- failed to upload the project tarball to eas build. Reason :- cannot copy 'C:\Users\***' to a subdirectory of itself, Help ?
@satyamtripathi5462
@satyamtripathi5462 Ай бұрын
hi facing same issue can u let me know how u resolved it ?
@user-su3zo4oe5g
@user-su3zo4oe5g 4 ай бұрын
what about on windows?
@tonnykizito816
@tonnykizito816 Жыл бұрын
The link generated for downloadingi
@bilelrahmouni01
@bilelrahmouni01 10 ай бұрын
thank you
@michaellevi1474
@michaellevi1474 Жыл бұрын
So, how do you pass the point with the node version problem? It seems like there's nothing I can do. It's literally the first problem, yet I can't seem to find a solution. How did you solve this?
@codewithbeto
@codewithbeto Жыл бұрын
Can you provide more context to this problem? I’m not sure what error you are referring
@michaellevi1474
@michaellevi1474 Жыл бұрын
@@codewithbeto Sure. Expo doesn't support the LSV of Node, but not even the latest version, but the last 3 versions. I believe Node v16 and below are supported by Expo. Has something to do with Node using different hashing for security, I dunno. So my question is, is there a way around it? Or is the only way to downgrade node to version that supports Expo?
@codewithbeto
@codewithbeto Жыл бұрын
It should work with node 18 but you can try using a node version manager like nvm to quickly change between node versions in your computer. I hope this helps
@ItsMe-fj1co
@ItsMe-fj1co Жыл бұрын
ver helpful, tu ver much!
@patriciodiaz4483
@patriciodiaz4483 5 ай бұрын
Hi! I have a question, how you configure the environment variables for development and production? I read the documentation and it says you have to pass them in thw eas.json file, but when I do it and build my preview android apk, it doesn't works
@sfallpeoplefaiz4473
@sfallpeoplefaiz4473 4 ай бұрын
show me ur eas.json code
@wendigo6372
@wendigo6372 26 күн бұрын
Did you solve it?
@patriciodiaz4483
@patriciodiaz4483 25 күн бұрын
@@wendigo6372 yes I figured it out, I was able to set 3 environments, in my case development, preview and production. Also I found a way to change the App name depending of this one
@patriciodiaz4483
@patriciodiaz4483 25 күн бұрын
{ "cli": { "version": ">= 6.0.0" }, "build": { "development": { "developmentClient": true, "distribution": "internal", "env": { "EXPO_PUBLIC_API_EXAMPLE": "", "EXPO_PUBLIC_API_EXAMPLE_2": "" }, "android": { "buildType": "apk" } }, "preview": { "distribution": "internal", "android": { "buildType": "apk" }, "env": { "EXPO_PUBLIC_API_EXAMPLE": "", "EXPO_PUBLIC_API_EXAMPLE_2": "", "APP_VARIANT": "preview" } }, "production": { "env": { "EXPO_PUBLIC_API_EXAMPLE": "", "EXPO_PUBLIC_API_NODO_EXAMPLE_2": "" }, "android": { "buildType": "apk" } } }, "submit": { "production": {} } }
@patriciodiaz4483
@patriciodiaz4483 25 күн бұрын
That is the structure I use for eas.json. The important thing to set the correct prefix variable in env object, is a must to type the EXPO_PUBLIC_API_ . Another thing is the APP_VARIANT, is optional, but this will help you as a environment variable to be able to change some dynamic values (in my case de name of the app), I will comment an example
@Lobos91
@Lobos91 Жыл бұрын
There is 30 free builds a month in free plan, does it mean i can only run my app 30 times in visual code? That would be insane if there is 5 people working on app amd we daily open amd run it like 50 times
@awaisDeshmukh
@awaisDeshmukh Жыл бұрын
As I understand it, it is not about running the app in Visual Studio Code, but rather about building it, which means that one can build the Android app up to 30 times and the iOS app up to 15 times. Trust me, I've run my own expo app more than 500 times in a month with Visual Studio Code. In other words, it's not about running an app, but about building an apk. I hope my response was helpful.
@user-dm2kl7dw2h
@user-dm2kl7dw2h 9 ай бұрын
how to build for ios?
@Nibezak
@Nibezak Жыл бұрын
mine is telling me android bundle failed , run "grandlew " 😭😭😭 please help me I need this
@codewithbeto
@codewithbeto Жыл бұрын
Sometimes you just have to try again.
@cristianduran4676
@cristianduran4676 Жыл бұрын
did u found a solution?
@anantgupta5806
@anantgupta5806 3 ай бұрын
no worries for English bro, it's perfect
@echendukwe1510
@echendukwe1510 Жыл бұрын
i get an AAB file instead of an apk, any help?
@wisdomelue
@wisdomelue 10 ай бұрын
add this to the "preview" object "android": { "buildType": "apk" }
@edcelguinto719
@edcelguinto719 11 ай бұрын
i tried to build the app but upon installing in on an android device the app is stuck on the splash screen.
@mehmoodahmad6078
@mehmoodahmad6078 11 ай бұрын
same error
@user-yg1wd6bk5j
@user-yg1wd6bk5j 11 ай бұрын
Same error
@laurenceparcon5147
@laurenceparcon5147 10 ай бұрын
"You have reached the concurrency limit. Build is waiting to enter the queue. "hello what is this error sir?
@user-dm2kl7dw2h
@user-dm2kl7dw2h 9 ай бұрын
you have to wait more for your build because another are in the queue
@elvinmucaj9664
@elvinmucaj9664 Жыл бұрын
did you try to install into a android device? because I tried and comes with an error and I have to specify that I'm using windows OS
@arpanbajpai1226
@arpanbajpai1226 Жыл бұрын
Did your app crashes as soon as you open your apk? And how to fix it.Plz help bro
@emirozdemir9060
@emirozdemir9060 Жыл бұрын
@@arpanbajpai1226 I have the same issue... Did you find a solution?
@hudsonmenezesdev
@hudsonmenezesdev 11 ай бұрын
@@emirozdemir9060 any of you found a solution?
@tungac
@tungac 10 ай бұрын
my app crashing too when i start@@arpanbajpai1226
@neelsoni13062
@neelsoni13062 7 ай бұрын
Work this video😀😀😀😀
@Herowindows
@Herowindows 8 ай бұрын
apk crash everytime while open , what's the solution ??
@enesgok7667
@enesgok7667 8 ай бұрын
same
@Rabeet_CodeLab
@Rabeet_CodeLab 11 ай бұрын
When i install .apk file into android phone. it installs, but when i open it says 'app stops' and never start
@hudsonmenezesdev
@hudsonmenezesdev 11 ай бұрын
Mine too, did you fix it? How?
@tungac
@tungac 10 ай бұрын
how did you fix it?@@hudsonmenezesdev
@wisdomelue
@wisdomelue 10 ай бұрын
​@@hudsonmenezesdevhappened to me, I had to check the build logs to figure it out, might be dependency issues or even the images you are using for icon, adaptive-icon etc specifically check the "expo run doctor" part of the build logs and also "run gradle"
@keithlunatic2266
@keithlunatic2266 8 ай бұрын
It might be caused due to dependency issue, happened to me
@user-yi8kh8bv1h
@user-yi8kh8bv1h 4 ай бұрын
Did you fix it?
@arpanbajpai1226
@arpanbajpai1226 Жыл бұрын
Bro when i launch apk through my android phone it crashes and doesnt open what to do?
@rishabhagarwal24
@rishabhagarwal24 Жыл бұрын
Did the problem resolved?
@codewithbeto
@codewithbeto Жыл бұрын
Try building the apk again, sometimes that happens
@emirozdemir9060
@emirozdemir9060 Жыл бұрын
Any updates on this?
@k1ll3trs86
@k1ll3trs86 2 ай бұрын
That doesn't work anymore
@johncmm9759
@johncmm9759 Жыл бұрын
Let us know if you publish the course in English! I'd buy in a heartbeat
@codewithbeto
@codewithbeto Жыл бұрын
The course is almost entirely available in English now! You can see the progres here codewithbeto.dev/learn
@EdikTVSet
@EdikTVSet Жыл бұрын
My app works via Metro but it crashes after splash screen when I try to launch it via apk. 😭
@arpanbajpai1226
@arpanbajpai1226 Жыл бұрын
Is your problem resolved?plz help me.
@EdikTVSet
@EdikTVSet Жыл бұрын
@arpanbajpai1226 yep yep. I figured it out via creating a new project. In the new project I realized that I made some mistakes in previous project. For example, my way of installing packages was wrong. I used to installing packages using "npm install" but the right way is "npx expo install nameOfPackageYouWannaInstall" It was the main problem. Also, there were other problems with layout. I had some red errors but it worked via Metro. But unfortunately it doesn't work via apk. Make sure your project doesn't have errors.
@arpanbajpai1226
@arpanbajpai1226 Жыл бұрын
@@EdikTVSet My project is almost error free.I am able to build and install the apk file in my physical android but as soon as i open it,it crashes and takes it to the Android interface.I dont know how to fix it.
@EdikTVSet
@EdikTVSet Жыл бұрын
@arpanbajpai1226 try to create a new empty project. Then build it. Does it work? If so, great. Start adding new content step-by-step, build and test project. This way you will find the problem cuz one time you will get a wrong build. And you will know the reason why
@arpanbajpai1226
@arpanbajpai1226 Жыл бұрын
@@EdikTVSet Ok bro I wanna this method may be it will work.Thnx
@tonnykizito816
@tonnykizito816 Жыл бұрын
The link generated for downloading apk is unreachable
@codewithbeto
@codewithbeto Жыл бұрын
Sometimes you just need to try again 😅
@tonnykizito816
@tonnykizito816 Жыл бұрын
Ok, but I tried several times but still failed. Thank you for replying me
@user-op1jl9kq8f
@user-op1jl9kq8f 8 ай бұрын
apk crash everytime while open
@Herowindows
@Herowindows 8 ай бұрын
same for me !!
@alimosbah
@alimosbah Жыл бұрын
English Bro English Plz Plz 😇😇😇😇😇😇😇
@OmSingh-ku5ms
@OmSingh-ku5ms Жыл бұрын
bro english courses are very important
@codewithbeto
@codewithbeto Жыл бұрын
Definitely
@emmanuelolaosebikan8211
@emmanuelolaosebikan8211 12 күн бұрын
English or Spanish 😂
@codewithbeto
@codewithbeto 10 күн бұрын
😂
@asmaakhaled9951
@asmaakhaled9951 11 ай бұрын
I have a problem that the apk after build, and install it, the app crashed, it is open and close in the same moment, what is the problem?
@user-dm2kl7dw2h
@user-dm2kl7dw2h 9 ай бұрын
I have the same
🔴 Convert an Expo App to Apk in React Native!
7:38
Sujan Anand
Рет қаралды 57 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 56 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 23 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 8 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 9 МЛН
Building an Android APK with React Native CLI
4:30
Code with Beto
Рет қаралды 1,3 М.
React Native Expo to APK File
14:31
Full Stack Niraj
Рет қаралды 42 М.
How ChatGPT Built My App in Minutes 🤯
8:28
Website Learners
Рет қаралды 2,2 МЛН
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Рет қаралды 750 М.
eas submit tutorial | Expo | React Native
12:03
Native Notify
Рет қаралды 10 М.
React Native vs Flutter in 2024 - Make the RIGHT Choice (Difference Explained)
10:31
Daniel Dan | Tech & Data
Рет қаралды 158 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН
low battery 🪫
0:10
dednahype
Рет қаралды 1,1 МЛН