Expo APK/AAB Building Tutorial (No EAS Required)

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 26

  • @p369m
    @p369m 4 місяці тому +1

    Nice bro keep it up 💪

  • @BBTR_
    @BBTR_ 3 місяці тому +2

    before, it is impossible to build local in expo. they advice to eject project and then build. But this feature is new? i saw build first time with prebuild

    • @AverageDevDude
      @AverageDevDude  3 місяці тому +1

      Yes expo eject is deprecated and prebuild is the much better replacement. Also expo has improved quite a lot with addition of expo router and less configuration to write

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

      bro thank you. I want to do a project, but for example, when you enter the application, it will download a 50 MB database from the Google cloud service and its data will be updated. But I couldn't find anything like this in the expo. Downloads always go to the android download folder. Can you make a video about this?

    • @najeemfasil5199
      @najeemfasil5199 Місяць тому +1

      Yeah bro, I wasn't aware of this and struggled the whole day. Finally, I found this video.

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

    you are great....😍😍😍😍😍😍

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

    Hi bro. It is very useful.

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

    Thanks broh!!!!!
    KEEP IT UP💪💪

  • @doms1570
    @doms1570 4 місяці тому

    u are amazing!! thank u very much. Please tell me if with this tutorial i cant install native libraries like notifee on my expo app . can u do tutorial about it please ?

    • @AverageDevDude
      @AverageDevDude  4 місяці тому +2

      yes you can use notifee on expo but you cannot use it on Expo Go, you need to make an debug apk/development build
      For notifee
      1. install the package `pnpm expo install @notifee/react-native`
      2. add the notifee plugin in the app.json, you can see the docs
      3. prebuild the app `pnpm expo prebuild`
      4. Now to make you debug apk connect to an android phone debugging enabled, then run `pnpm expo run:android --variant debug`, make sure this apk is installed in the connected phone
      5. Now for next time, you can connect the phone and run `pnpm start -d`
      and remember you need to build the debug apk again if you add any new native libraries, e.g react native firebase

  • @aadarshgurug
    @aadarshgurug 5 місяців тому

    it helped alot. thanks

    • @AverageDevDude
      @AverageDevDude  5 місяців тому

      Glad it helped!

    • @aadarshgurug
      @aadarshgurug 5 місяців тому +2

      @@AverageDevDude would like to have video on webrtc implementation and testing in expo and native cli apps

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

    is it must to have openjdk 17 and not another version?

    • @AverageDevDude
      @AverageDevDude  3 місяці тому +1

      It is recommended on the official docs
      reactnative.dev/docs/set-up-your-environment?os=windows

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

    I was using eas build --local which is creating .aab file . i want apk file with this. is that possible?

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

      I have shown how to make both apk and aab files in the video :-)

    • @7-haroon
      @7-haroon 3 місяці тому

      which OS you are using for local build . I want to build my app but i am confused how to build locally

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

      @7-haroon I have Windows as my OS and to build apk/aab locally, follow the instructions in the video

  • @mwlulud2995
    @mwlulud2995 2 місяці тому

    Its work with expo 51?

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

    for ios pls?

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

    hello I followed the tutorial to the letter but in the end I got this error. your aude would be very useful to me thank you very much """".....\android> npx react-native build-android --mode=release
    info Building the app...
    FAILURE: Build failed with an exception.
    * Where:
    Settings file 'C:\Users\daoud\Desktop\project\mobil\lycee_augustin
    ode_modules\@react-native\gradle-plugin\settings.gradle.kts' line: 16
    * What went wrong:
    Plugin [id: 'org.gradle.toolchains.foojay-resolver-convention', version: '0.5.0'] was not found in any of the following sources:
    - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
    - Included Builds (No included builds contain this plugin)
    - Plugin Repositories (could not resolve plugin artifact 'org.gradle.toolchains.foojay-resolver-convention:org.gradle.toolchains.foojay-resolver-convention.gradle.plugin:0.5.0')
    Searched in the following repositories:
    MavenRepo
    Google
    Gradle Central Plugin Repository
    * Try:
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    > Get more help at help.gradle.org.
    BUILD FAILED in 3m 20s
    info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
    error Failed to build the app.
    Error: Command failed with exit code 1: gradlew.bat app:bundleRelease"""""

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

      github.com/facebook/react-native/issues/42149