Expo APK/AAB Building Tutorial (No EAS Required)

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

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

  • @BBTR_
    @BBTR_ 2 หลายเดือนก่อน +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  2 หลายเดือนก่อน +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_ 2 หลายเดือนก่อน

      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 14 วันที่ผ่านมา +1

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

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

    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  3 หลายเดือนก่อน +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

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

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

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

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

  • @ThePrajaktaVlogs
    @ThePrajaktaVlogs 2 หลายเดือนก่อน

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

    • @AverageDevDude
      @AverageDevDude  2 หลายเดือนก่อน

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

    • @7-haroon
      @7-haroon 2 หลายเดือนก่อน

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

    • @AverageDevDude
      @AverageDevDude  2 หลายเดือนก่อน

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

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

    Its work with expo 51?

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

    it helped alot. thanks

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

      Glad it helped!

    • @aadarshgurug
      @aadarshgurug 4 หลายเดือนก่อน +2

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

  • @mahtab_sudip
    @mahtab_sudip 2 หลายเดือนก่อน

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

  • @naveenprasanth957
    @naveenprasanth957 2 หลายเดือนก่อน

    Hi bro. It is very useful.

  • @safalbk6571
    @safalbk6571 2 หลายเดือนก่อน

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

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

    Nice bro keep it up 💪

  • @thegraintgaymer8080
    @thegraintgaymer8080 2 หลายเดือนก่อน

    for ios pls?

    • @AverageDevDude
      @AverageDevDude  2 หลายเดือนก่อน

      for iOS, you need at least a Mac

  • @ElyDev0
    @ElyDev0 2 หลายเดือนก่อน

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

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