Build apk file from React Native Application

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 66

  • @sushantchoudhary444
    @sushantchoudhary444 11 місяців тому +9

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

  • @sujahathsiddeek378
    @sujahathsiddeek378 3 місяці тому +13

    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 )

  • @ShivamSingh-ke7ex
    @ShivamSingh-ke7ex 11 місяців тому +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 10 місяців тому

      open cmd as a administrator

  • @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

  • @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 8 місяців тому +1

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

    • @lijeshg9165
      @lijeshg9165 3 місяці тому

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

  • @gunalansuresh1599
    @gunalansuresh1599 Рік тому

    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

  • @chaitanyadharpale1407
    @chaitanyadharpale1407 Рік тому +2

    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

  • @ansari3896
    @ansari3896 Рік тому +3

    In my Case ".\gradlew assembleRelease" worked.

    • @mohammadfaisal3649
      @mohammadfaisal3649 9 місяців тому

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

    • @kpummoses9747
      @kpummoses9747 9 місяців тому

      gradlew clean
      gradlew assemblerelease

  • @HazzferProlence
    @HazzferProlence 11 місяців тому +1

    Thank you my friend! very helpful

    • @monisankarnath
      @monisankarnath  8 місяців тому

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

  • @arrywahyunggakpakaiz3853
    @arrywahyunggakpakaiz3853 6 місяців тому

    So uuh im using windows and the gradlew not found

  • @VishalPatil-o6p
    @VishalPatil-o6p Рік тому

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

  • @GokuHindustani
    @GokuHindustani Рік тому +1

    Thank you Bro your video is great help

  • @heyiiii
    @heyiiii 7 місяців тому

    i cannot find a android folder in ny RN project

    • @JohnWickXD
      @JohnWickXD 4 місяці тому +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😊

  • @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

  • @gringo2119
    @gringo2119 8 місяців тому +1

    Amazingggg, thank you!

    • @monisankarnath
      @monisankarnath  8 місяців тому +1

      Glad to be helpful. Thank you for subscribing😃

  • @toufikumar7169
    @toufikumar7169 8 місяців тому +1

    I have no java folder

  • @debabrataroy8172
    @debabrataroy8172 5 місяців тому +1

    Thank you, bro❤

  • @cleverW1izard
    @cleverW1izard Місяць тому

    i haven't android folder

  • @tttadmin7508
    @tttadmin7508 11 місяців тому

    how to create debug APK and how to debug

  • @itbloodoxy8111
    @itbloodoxy8111 Рік тому

    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 Рік тому

      try using ./gradlew

    • @inzamam1320
      @inzamam1320 10 місяців тому

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

    • @christopherquarshie8258
      @christopherquarshie8258 9 місяців тому

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

    • @inzamam1320
      @inzamam1320 9 місяців тому

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

  • @OK-dn5lr
    @OK-dn5lr Рік тому +1

    Please,next time leave a link

  • @pratyushkk_3
    @pratyushkk_3 Рік тому +1

    Thanks Bhai

  • @natnaelhailu-com
    @natnaelhailu-com 9 місяців тому

    Thank you!

  • @Pail4
    @Pail4 9 місяців тому

    Thank you!!!

  • @RevUpMotivation-RUM
    @RevUpMotivation-RUM Рік тому

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

  • @kamonwonpinpila8235
    @kamonwonpinpila8235 Рік тому +1

    thank Yoou

  • @soner8780
    @soner8780 Рік тому +1

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