Build apk file from React Native Application
The easy way to create your own apk file is to follow the react native docs. There are different commands to build your app as debug or release mode or if you want to publish your app in playstore or any other store then you need to build it differently.
#reactnative #apk #MobileAppDevelopment #react
Пікірлер: 55
Hi, I generated apk using gradlew assembleRelease but if i drag that apk file and tried to launch it in my emulator it is showing like dropped content didnot have any files
Thank you my friend! very helpful
@monisankarnath
Ай бұрын
Glad to be helpful my friend. Thank you for subscribing😃
Thank you Bro your video is great help
@monisankarnath
7 ай бұрын
thanks bro. Glad you like them
If you are getting error you can try running cmd as a administrator . It solved my issue.
@merubrafique8785
4 ай бұрын
Thanku 👍
@coderbhai1215
2 ай бұрын
Thanks 🙏❤
i cannot find a android folder in ny RN project
Thanks Bhai
Amazingggg, thank you!
@monisankarnath
Ай бұрын
Glad to be helpful. Thank you for subscribing😃
Thank you!
how to create debug APK and how to debug
I have no java folder
Hey I have an error while making the private signing key using key tool Java file io not foundexception my upload key keysstore ( Acces denied)
@JanMager
3 ай бұрын
open cmd as a administrator
Thank you!!!
can i follow this instruction without use android studio, be cause i can not the android folder?
@monisankarnath
9 ай бұрын
I think you are asking me if u can run this command even if u don't have Android studio, I think yes but u got to have jdk I think. I have everything setup already in my system.
@ABUTAHER-wg7gz
9 ай бұрын
@@monisankarnath sure
thank Yoou
i build app and app installed in phone but backend is not run in the app
@vivekrk5946
5 ай бұрын
did you get it now?
@user-uo3tf6ju4u
5 ай бұрын
No @@vivekrk5946
i have this error : "BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 64" can you help me fix it
@monisankarnath
9 ай бұрын
Can you please check your java/jdk version and if it is supported by your gradle version
Please,next time leave a link
> Task :app:mergeReleaseResources FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeReleaseResources'. > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable > Android resource compilation failed ERROR:C:\Users\81pc\Documents\GitHub\care4uapp\android\app\build\generated es\createBundleReleaseJsAndAssets\drawable-mdpi\src_assets_images_qrcode_scanner_icon.png: AAPT: error: file failed to compile.
@monisankarnath
9 ай бұрын
It seems like this is happening because of an asset, there are some necessary steps needs to be followed for assets, please check the docs
@74n3r
9 ай бұрын
@@monisankarnath i solve that thnx
@brigadut
9 ай бұрын
how@@74n3r
@yashrathod6277
2 ай бұрын
@@74n3r i also got same error. How did you solve it?
Sir i have 1 problem with apk. I installed the apk in my device. But my app gets closed after clicking on menu bar. Please help me with my problem.
@monisankarnath
8 ай бұрын
Please check the build in local run first. There might have been some errors
@chaitanyadharpale1407
8 ай бұрын
@@monisankarnathok sir ! Thanks for your advice.
@chaitanyadharpale1407
8 ай бұрын
@@monisankarnathsir, it is my last work remaining to complete my app. Will you guide me further to complete my apk build? I'm going to upload this app on the Play Store.
@monisankarnath
8 ай бұрын
@@chaitanyadharpale1407 you need some more setup done before uploading it to play store. Please follow the documentation or any blogs.
@chaitanyadharpale1407
8 ай бұрын
@@monisankarnath ok si 👍r. Thanks
It's not working. showing below error. gradle : The term 'gradle' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + gradle assembleRelease + ~~~~~~ + CategoryInfo : ObjectNotFound: (gradle:String) [], CommandNotFo undException + FullyQualifiedErrorId : CommandNotFoundException
@YulianGames
5 ай бұрын
try using ./gradlew
@inzamam1320
3 ай бұрын
Use "./gradlew clean" instead of "gradlew clean"
@christopherquarshie8258
2 ай бұрын
@@inzamam1320 This didn't work for me. I now says './gradlew' is not recognized as the name of a cmdlet. Any soultion?
@inzamam1320
2 ай бұрын
@@christopherquarshie8258 first cd into android folder then run the command it will work
ok all good but ap i's not working what is this issue please tell me
@user-vu7mf6ie5e
9 ай бұрын
API
@monisankarnath
9 ай бұрын
@@user-vu7mf6ie5e can you please check if you have given all the permissions
gonna dislike if u don't reply. it says "gradlew" command not found. my terminal says.
@monisankarnath
9 ай бұрын
Lol bro. Are you using mac?
@soner8780
9 ай бұрын
@@monisankarnath linux. "./gradlew clean" worked ig
@lokeshkaushik1812
9 ай бұрын
try this command = .\gradlew clean
@monisankarnath
9 ай бұрын
@@lokeshkaushik1812 I think it's ./gradlew clean
In my Case ".\gradlew assembleRelease" worked.
@mohammadfaisal3649
2 ай бұрын
bro what if i already make a build and then i updated some code and i want to make new build ?
@kpummoses9747
2 ай бұрын
gradlew clean gradlew assemblerelease