React Native 101: Building Your First App and Troubleshooting Common Issues

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

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

  • @LorenzoJimenez
    @LorenzoJimenez ปีที่แล้ว +9

    Kudos for this rare video. There are many issues to face: upgrading to a higher React Native version, when Apple deprecates a version of IOS, 3rd party libraries not upgraded to a new react version or incompatible to a higher verion of ios or android

  • @mehdi2368
    @mehdi2368 ปีที่แล้ว +9

    for people who are facing problems setuping env i recommend you to start with expo and then after you learn react native you can solve your previous problems

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

      For everyone that is having problems, do not use expo go under any circunstancies. It will bring you lot of more problems.

  • @pademo57
    @pademo57 ปีที่แล้ว +20

    Absolutely love these videos. Finally someone who explains not only what is the best way to set this up but also what to look for or what to do when something goes wrong. Thank you and keep up the good work!

  • @shivtiwarii
    @shivtiwarii 11 หลายเดือนก่อน +5

    to those who are facing the issue with the final command that starts the preview on the device, try running "npm run start" in a separate terminal and then in another terminal run "npm run android"

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

      Thank you vey much. I could not figure out what to do.

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

    Your videos are easily understandable...Even if I have to pay something for these kinds of lectures, I will happily do it.

  • @NOT_TON_Fan
    @NOT_TON_Fan ปีที่แล้ว +7

    React Native environment setup is damn difficult but finally I've done it in 2 hrs. Most of the issues were solved by setting the env variable.

  • @venkatchalam6385
    @venkatchalam6385 ปีที่แล้ว +6

    After long time I am waiting for your video for react native thank u

  • @Peterin
    @Peterin ปีที่แล้ว +5

    how to bring the phones screen on the laptop? Anybody pls provide a solution for mac

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

      android studio

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

    Successfully configured my android device for react native. Thank you so much, sir.

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

    Thanks, I have been struggling with the same error over more than two weeks.

  • @bhumit070
    @bhumit070 ปีที่แล้ว +3

    sir how do you mirror phone on mac ?

  • @B-NikhilRichhariya
    @B-NikhilRichhariya 7 หลายเดือนก่อน +10

    took me two days to install and run lol

    • @WinNair-q6p
      @WinNair-q6p หลายเดือนก่อน

      Literally brother 😢😢

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

    It's takes 3 months to setup using CLI process but finally did it.

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

    Thanks buddy💚
    Great job Hashnode🤝

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

    I just love the constant reassurances. I hope I am able to make it to the end of the series 😄!

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

    Hello Hitesh Sir,
    Please also make a video on how you set up your android studio. I found it hard to install it.
    My app is not running and its trying to download some libraries and then fails.
    Thanks

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

    FYI: run "npm" instead of "npx" and hopefully there will be no issues if all the settings are fine.
    - npm start
    - npm run android

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

    After facing my first error in getting the Metro Server up and running, really excited to start writing code in React Native. Moving onto the next video :)

  • @deepyadav6918
    @deepyadav6918 16 วันที่ผ่านมา

    How did he connected his phone device ??
    I am not getting any configuration option on my android app

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

    when I am doing in cmd it's working but in visiual studio my node.js not open why?

  • @anirudhamahale1955
    @anirudhamahale1955 28 วันที่ผ่านมา

    How can I run the application using the debug button on vscode? and also add break points. can you make a video on that too 😅

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

    Actually i have a doubt I created an app during second video. can i code there or create a new one again?

  • @niteshbisht31
    @niteshbisht31 11 วันที่ผ่านมา

    whoever not able to run their first app due to some error, run "npx react-native doctor" command it will check and tells you what is missing and how to fix.

  • @ahmedsstudio8924
    @ahmedsstudio8924 14 วันที่ผ่านมา

    at 6.45 min how prepared the device?

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

    The discord link is not working. It says "Privay error"

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

    i always get this error when opening in android studio - error Cannot start server in new window because no terminal app was specified. you just need to use npm start before run command in this case

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

    Hi sir great video 👏 BTW, when I run "adb devices" it's not listing any devices. Also could you please explain how to mirror the output on our phone more elaborately on the next episode? Thanks in advance 😉

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

    Hello Sir, When I continue using my app the app runs fine but when I don't use it for more than 5 minutes it slows down for a minute and then it seems to be running normally as before. I made my app react native. While its backend code is written in codeignitor4, the data from PHP and API is being fetched at the right time for viewing from postman, what is the problem, why is my app getting slow.

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

    How to mirror the device to laptop? 6:44

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

      +1 did you find a solution ?

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

    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
    > Could not determine the dependencies of null.
    > Cannot query the value of this provider because it has no value available.
    can you tell me issue when i runing android on mac this error comes @hitesh

  • @NaveenKumar-jo6cv
    @NaveenKumar-jo6cv ปีที่แล้ว

    I can not find my device under the "adb devices" command. I also tried using emulator but it also gives me an error stating: Could not open settings generic class cache for settings file

  • @AnjaliYadav-p3h8y
    @AnjaliYadav-p3h8y 6 วันที่ผ่านมา

    that term """adb --version""" is not recognized. Pls help in this....

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

    Finally it done. After 3 hours. Thank hitesh sir, also thanks chatGpt

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

      its been 3 days for me i coudlnt do it can you help me

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

      What type of problem

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

      @@pitamdas4882 What went wrong:
      Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
      > Could not determine the dependencies of null.
      > SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/khushsharma/awesome01/android/local.properties'.

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

    Please help, if you can:-
    When I am building the app with cmd (npx react-native run-android), there are multiple files start downloading, in which one of them is of 188mb in size and the download speed is very slow.

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

      For first time it is lengthy process and taking more time. But later on it works fine. I am talking about windows platform.

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

      Thanks for helping

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

    how to mirror the andriod or ios phone screen? using the andriod studio API?

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

    Man, installing react native was such a pain in the ass.Finally was able to do it.

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

      awesome!

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

      bro i stiill cant ddo iit can you help me

  • @Learntocode-balaji
    @Learntocode-balaji ปีที่แล้ว

    Hello sir...while running the app I'm getting error that unable to load script and some bundle related issue..
    I have tried everything which I knew but the error didn't solve.

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

    HI bro, The option Select USB Configuration not shown in Onepluse 7t mobile.

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

    What about using npx create-expo-app ? the diff and when to use one ?

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

    facing an issue
    > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66

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

    Hi i have used a company laptop. So we didn't install adb driver. Now what i do for run first program

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

    Sir mine npx react-native run-android is taking too much time to load.
    it's my very first time learning react-native.
    How can i resolve it Sir ?

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

    how can you create android device for running that I am confused please help me

  • @rv-web
    @rv-web ปีที่แล้ว

    Hi, Could you help me the guide to setup environment on macOS? I followed the documentation but getting many errors. Also it slowdown performance of my macOS. Using RN 0.71.6 version

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

    React native setup is nowadays very effortless if you use the Expo framework. Just install android-sdk, java, maybe xcode, that's it (much more effortless if you use apt commands in linux). It's as easy as scanning a qr code on mobile to run an application. You can always use expo snack if you don't want installation headaches temporarily.

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

    I'm getting an error activity class does not exist I tried a lot but I'm not able to resolve it

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

    do you have any video to run first app on iOS ?

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

    For windows we can use global environment variables for sdk

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

    Sir it took me a day to figure out and solve the errors, but at last i was able to build the app

  • @ashutoshchaurasiaco.543
    @ashutoshchaurasiaco.543 5 หลายเดือนก่อน

    Could not open settings generic class cache for settings this happening with me

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

    iits been 3 days i coudnt do it . android device not setting up.
    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
    > Could not determine the dependencies of null.
    > SDK location not found. Define a valid SDK location
    can anyone help me

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

    a note for those who build nowadays run npm start first and then run in another terminal npm run android and if there is a error then make a fresh install of android studio and jdk (i got issue with that)

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

    Hi, What's the software which you used to mirror android mobile in Mac. its really cool.
    Anybody else who knows too, please help me. I really like how he can click the android device with mouse

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

    when i cun npm run android it takes lots of time around 15-20 mint but at the end it simple running not loading the app
    any solution

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

    can anyone help like how to cast my mobile screen on pc??

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

    to run app is Android SDK 12 is mandatory or Android SDK 13 will also work ? As Currently I am facing error
    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

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

      thanks to you after adding path of adb in system variables I was able to run my first react native app.Thank you ❤❤

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

    I shifted to react-native CLI, since last two days,more than two hours each day spent in installation process...I got bunch of error while the same process but at the End "BUILD SUCCESSFULL" and satisfaction too...🎉☕

  • @unstoppable-ayush
    @unstoppable-ayush ปีที่แล้ว +1

    error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.

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

      Try our discord server, folks are very kind and helpful there. We will surely help you

    • @unstoppable-ayush
      @unstoppable-ayush ปีที่แล้ว

      @@HiteshCodeLab thanks u sir 😄
      Now problem solved, helpful peoples

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

    love you sir ji....🙂🙂🙂🙂almost lost my calm starting the app. but you were right. make errors your friend. thank you sir

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

    Lol my freshly downloaded code shows a bunch of errors to the point the editor turns totally red but still runs. What gives?

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

    Dear Hitesh, I am a web designer and currently making websites in WordPress but I am facing so much problem in page loading speed and hacking attempts on WordPress website as its uses theme and plugins... I want to devolve a dynamic website which is fast in loading compare to WordPress easy to maintain .. and no need to update the code frequently ... What language or framework will you suggest me ..please guide me on this...

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

    I am getting blank screen on virtual device even though the build is successful. Could anyone please help to resolve it

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

    Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
    warn Please launch an emulator manually or connect a device. Otherwise app may fail to
    launch.

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

      I think your device is not connect with pc properly

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

    Thank you very much, amazing course, the best i found, everything clear

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

    What's the name of the VSCode theme that you are currenltly using? :)

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

      "Noctis"

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

    Nice work sir.... Some struggle to setup but worth it... Excited for next video

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

      its been 3 days i couldn’t do it can you help me

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

    I use a windows laptop and an iphone, anyway to use both?

  • @Saka.D
    @Saka.D 11 หลายเดือนก่อน

    i cannot connect my ios physically to the vscode instead of android. please help!

  • @piyush-singhania
    @piyush-singhania ปีที่แล้ว

    So far with you 💌
    (will keep on posting this comment to track my progress)

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

    Hey can I get the discord channel link as I am facing issues while running the application android / ios emulator on a MAC computer.

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

    Could someone help me out with this error: Could not compile settings file 'E:\ReactNative\platform-tools\Projects\MobileApp01\android\settings.gradle'.

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

      did you resolve it? I am facing the same issue.

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

    All worked fine but the app keeps crashing on opening in emulator as well as phone , can some one help

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

    Very good teaching skills

  • @AmitKumar-id7fn
    @AmitKumar-id7fn ปีที่แล้ว

    > Task :app:compileDebugJavaWithJavac FAILED
    i am encountering this error while running npx react-native run-android

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

    Plz help
    Iam facing an error of "could not open settings generic class cache for settings file react native"

    • @ANKUSHJHA-mw7ni
      @ANKUSHJHA-mw7ni 8 หลายเดือนก่อน

      Same Error I am facing, how to resolve this?

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

    sir i everyday i check for the new video for the course . i am very much excited for the whole series

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

    how can i add devices ?

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

    I have installed and learned angular in vscode. is there any problem in installing react also in the vscode.? or should i need to install locally instead of global ?

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

      There will be no problem I believe

    • @guptapandiri
      @guptapandiri ปีที่แล้ว +3

      Hey, you don't need to install react or react native globally, you can use the npx command like npx create-react app or npx react-native init, which fetches the latest version. Anyway even if you install it globally, it won't be a problem.

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

    Thank you very much. This is really helpful.

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

    Great sir but kash ye course Hindi me hota ...😢😢

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

    Thank you so much Sir for this...😊🌼

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

    I am using expo client. So will it be ok to continue or should I install React Native this way?

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

      I will use CLI in course, rest is your choice 🙂

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

    your ssl cetificate has expired ,having a hard time getting the discord link,

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

    why is your discord http and not https ?

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

    Error I got :
    A problem occurred evaluating project ':app'.
    > Failed to apply plugin 'com.android.internal.application'.
    > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
    Your current JDK is located in C:\Program Files\Java\jre1.8.0_311
    You can try some of the following options:
    - changing the IDE settings.
    - changing the JAVA_HOME environment variable.
    - changing `org.gradle.java.home` in `gradle.properties`.

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

      Upgrade the Java JDK version to 11

    • @unstoppable-ayush
      @unstoppable-ayush ปีที่แล้ว +1

      there is showing jre not jdk ,install latest jdk

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

      Thanks, I upgraded the JDK and it works. Another mistake I did was SDK directory, I used one backlash \ instead of \\ two and therefore I was getting some kind of error.

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

    there is not set up video for the mac

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

    my device is ln linux what can i use in the place of sdk.dir

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

      Just locate the android sdk in your linux system .

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

    Waiting for next video sir......I am also learning backend dev using node js and express hope mobile development and Web development don't mix-up just because I'm learning them both at same time 🙂

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

    I spent my whole day to solving 5:49 that error 🙂

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

    In Linux, React native setup is quite easy. I too faced one error while running npx react-native init command but it was easy fix😁😁

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

      I am facing some issue, can you give resource you referred to.

    • @vikaswakde-dj2dw
      @vikaswakde-dj2dw 11 หลายเดือนก่อน

      linux users having ufair advantage

  • @mma-dost
    @mma-dost ปีที่แล้ว

    It took me 2 days finally today I was able to run the app on android phone

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

      Please help me !
      I am facing the error: unknown command 'run-android'

    • @mma-dost
      @mma-dost ปีที่แล้ว

      @@rahul_sidhha what is the command you are running ?

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

      @@mma-dost thank you for your reply .. now done 👍

    • @mma-dost
      @mma-dost ปีที่แล้ว

      @@rahul_sidhha great but can you share what was the issue?

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

      @@mma-dost when I was run the command : npx react-native run-android
      It was showing - unknown command 'run-android'

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

    npx react-native init MyNewProject is creating an empty folder with just .git folder in it

  • @muhammadbilal-sd9kf
    @muhammadbilal-sd9kf ปีที่แล้ว

    Can you share the Discord Server link
    the given link is not working

  • @yt-1161
    @yt-1161 7 หลายเดือนก่อน

    for me it worked without needing to create "local.properties" file

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

    Great video sir !

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

    iam unable to get adb --version

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

    Thankuuuuuiu 🥺🥺🥺

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

    Let's start this experiment together

  • @sagar-ko3gb
    @sagar-ko3gb ปีที่แล้ว

    how to setup for iphone

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

    Finaly i also solve problem from ur tutorial i love from pakistan