Build apk file from React Native Application

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024
  • 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

ความคิดเห็น • 60

  • @sujahathsiddeek378
    @sujahathsiddeek378 19 วันที่ผ่านมา +3

    Thank you, you saved my day dude
    Tips:
    1 - Run as admin
    2 - use ".\gradlew clean" and
    ".\gradlew assembleRelease" if gradlew clean or gradlew assembleRelease not working
    (2024 October )

  • @sushantchoudhary444
    @sushantchoudhary444 8 หลายเดือนก่อน +7

    If you are getting error you can try running cmd as a administrator . It solved my issue.

  • @ABUTAHER-wg7gz
    @ABUTAHER-wg7gz ปีที่แล้ว +1

    can i follow this instruction without use android studio, be cause i can not the android folder?

    • @monisankarnath
      @monisankarnath  ปีที่แล้ว +1

      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
      @ABUTAHER-wg7gz ปีที่แล้ว

      @@monisankarnath sure

  • @chaitanyadharpale1407
    @chaitanyadharpale1407 ปีที่แล้ว +1

    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
      @monisankarnath  ปีที่แล้ว

      Please check the build in local run first. There might have been some errors

    • @chaitanyadharpale1407
      @chaitanyadharpale1407 ปีที่แล้ว

      ​@@monisankarnathok sir ! Thanks for your advice.

    • @chaitanyadharpale1407
      @chaitanyadharpale1407 ปีที่แล้ว

      ​@@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
      @monisankarnath  ปีที่แล้ว

      @@chaitanyadharpale1407 you need some more setup done before uploading it to play store. Please follow the documentation or any blogs.

    • @chaitanyadharpale1407
      @chaitanyadharpale1407 ปีที่แล้ว

      @@monisankarnath ok si 👍r. Thanks

  • @74n3r
    @74n3r ปีที่แล้ว +2

    > 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
      @monisankarnath  ปีที่แล้ว +1

      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
      @74n3r ปีที่แล้ว +1

      @@monisankarnath i solve that thnx

    • @brigadut
      @brigadut ปีที่แล้ว

      how@@74n3r

    • @yashrathod6277
      @yashrathod6277 5 หลายเดือนก่อน +1

      @@74n3r i also got same error. How did you solve it?

    • @lijeshg9165
      @lijeshg9165 5 วันที่ผ่านมา

      ​@@74n3r hi could you please guide how did you solve this issue

  • @ShivamSingh-ke7ex
    @ShivamSingh-ke7ex 8 หลายเดือนก่อน +1

    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)

    • @capturedbyjan
      @capturedbyjan 7 หลายเดือนก่อน

      open cmd as a administrator

  • @gunalansuresh1599
    @gunalansuresh1599 9 หลายเดือนก่อน

    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

  • @ansari3896
    @ansari3896 9 หลายเดือนก่อน +3

    In my Case ".\gradlew assembleRelease" worked.

    • @mohammadfaisal3649
      @mohammadfaisal3649 6 หลายเดือนก่อน

      bro what if i already make a build and then i updated some code and i want to make new build ?

    • @kpummoses9747
      @kpummoses9747 6 หลายเดือนก่อน

      gradlew clean
      gradlew assemblerelease

  • @HazzferProlence
    @HazzferProlence 8 หลายเดือนก่อน +1

    Thank you my friend! very helpful

    • @monisankarnath
      @monisankarnath  5 หลายเดือนก่อน

      Glad to be helpful my friend. Thank you for subscribing😃

  • @arrywahyunggakpakaiz3853
    @arrywahyunggakpakaiz3853 3 หลายเดือนก่อน

    So uuh im using windows and the gradlew not found

  • @GokuHindustani
    @GokuHindustani 11 หลายเดือนก่อน +1

    Thank you Bro your video is great help

    • @monisankarnath
      @monisankarnath  11 หลายเดือนก่อน

      thanks bro. Glad you like them

  • @brigadut
    @brigadut ปีที่แล้ว +1

    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
      @monisankarnath  ปีที่แล้ว

      Can you please check your java/jdk version and if it is supported by your gradle version

  • @toufikumar7169
    @toufikumar7169 5 หลายเดือนก่อน +1

    I have no java folder

  • @VishalPatil-o6p
    @VishalPatil-o6p 10 หลายเดือนก่อน

    i build app and app installed in phone but backend is not run in the app

    • @vivekrk5946
      @vivekrk5946 9 หลายเดือนก่อน

      did you get it now?

    • @VishalPatil-o6p
      @VishalPatil-o6p 9 หลายเดือนก่อน

      No @@vivekrk5946

  • @debabrataroy8172
    @debabrataroy8172 2 หลายเดือนก่อน +1

    Thank you, bro❤

  • @heyiiii
    @heyiiii 4 หลายเดือนก่อน

    i cannot find a android folder in ny RN project

    • @JohnWickXD
      @JohnWickXD หลายเดือนก่อน +1

      Maybe cause you are using expo instead of "react native cli" but still you can create android build for your app using expo as welll😊

  • @tttadmin7508
    @tttadmin7508 8 หลายเดือนก่อน

    how to create debug APK and how to debug

  • @gringo2119
    @gringo2119 5 หลายเดือนก่อน +1

    Amazingggg, thank you!

    • @monisankarnath
      @monisankarnath  5 หลายเดือนก่อน +1

      Glad to be helpful. Thank you for subscribing😃

  • @pratyushkk_3
    @pratyushkk_3 ปีที่แล้ว +1

    Thanks Bhai

  • @itbloodoxy8111
    @itbloodoxy8111 10 หลายเดือนก่อน

    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
      @YulianGames 9 หลายเดือนก่อน

      try using ./gradlew

    • @inzamam1320
      @inzamam1320 7 หลายเดือนก่อน

      Use "./gradlew clean" instead of "gradlew clean"

    • @christopherquarshie8258
      @christopherquarshie8258 6 หลายเดือนก่อน

      @@inzamam1320 This didn't work for me. I now says './gradlew' is not recognized as the name of a cmdlet. Any soultion?

    • @inzamam1320
      @inzamam1320 6 หลายเดือนก่อน

      @@christopherquarshie8258 first cd into android folder then run the command it will work

  • @natnaelhailu-com
    @natnaelhailu-com 6 หลายเดือนก่อน

    Thank you!

  • @OK-dn5lr
    @OK-dn5lr 11 หลายเดือนก่อน +1

    Please,next time leave a link

  • @KamranKhan-m1t7j
    @KamranKhan-m1t7j ปีที่แล้ว

    ok all good but ap
    i's not working what is this issue please tell me

    • @KamranKhan-m1t7j
      @KamranKhan-m1t7j ปีที่แล้ว

      API

    • @monisankarnath
      @monisankarnath  ปีที่แล้ว

      @@KamranKhan-m1t7j can you please check if you have given all the permissions

  • @Pail4
    @Pail4 6 หลายเดือนก่อน

    Thank you!!!

  • @kamonwonpinpila8235
    @kamonwonpinpila8235 ปีที่แล้ว +1

    thank Yoou

  • @soner8780
    @soner8780 ปีที่แล้ว +1

    gonna dislike if u don't reply. it says "gradlew" command not found. my terminal says.

    • @monisankarnath
      @monisankarnath  ปีที่แล้ว

      Lol bro. Are you using mac?

    • @soner8780
      @soner8780 ปีที่แล้ว

      @@monisankarnath linux. "./gradlew clean" worked ig

    • @lokeshkaushik1812
      @lokeshkaushik1812 ปีที่แล้ว +4

      try this command = .\gradlew clean

    • @monisankarnath
      @monisankarnath  ปีที่แล้ว +1

      @@lokeshkaushik1812 I think it's ./gradlew clean