Getting error in react native experimental

getting this error when running the command
npm run android

Starting project at /home/user/cake
Starting Metro Bundler
Failed to resolve the Android SDK path. Default install location not found: /home/user/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Failed to resolve the Android SDK path. Default install location not found: /home/user/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Error: spawn adb ENOENT
Error: spawn adb ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

@Hamid_Raza - thanks for flagging this! We are seeing it as well, and we’re working on a fix right now.

Cheers,
Kirupa

@Hamid_Raza - we deployed a fix a few moments ago! It should work now. When I tried it just now, it worked well for me :slight_smile:

Now getting this issue react native experimental is gone now

Are you still not seeing it? There is a slight lag when we make some changes it going live in all regions, so you may checked during that time.

The direct link is: https://idx.google.com/new/react-native (Let me know if the direct link doesn’t work either. That is a bigger problem!)

It is fixed now Thanx google…
idx is gonna remain free or u will add subscription thing in it because due to higher load I don’t think so it is gonna remain free I am a student so this is an important Q for me.

1 Like

I answer this question here: Project IDX Pricing - #4 by kirupa

TL;DR: We want to make sure a version of IDX is available at no-cost for all users.

just getting this error after just the template was created, please provide a fix -

these 5 derivations will be built:

/nix/store/dgvgsznrx1rgfpzcnhi0fxavgyiyj6jx-idx-template.drv

/nix/store/r1g97pfblqkssrarpkj6dcwmj6sv8ig5-sandbox-files.drv

/nix/store/mc03ch95g29zl9228i1hjg991s11jhk4-sandbox.drv

/nix/store/m1xfbhhyjnqlwrfn7hm4s14ny421xi6f-usr-env.drv

/nix/store/91bfws4bi8269q370fs190rr6ar4rir5-idx-template.drv

these 31 paths will be fetched (181.54 MiB download, 2476.02 MiB unpacked):

/nix/store/1jnl0g7a6fcc7ma4f4kg77arpz84ifzf-ShellCheck-0.9.0

/nix/store/wam6939g2ch4aj6g30nfcsfm9lchmmjy-bash-5.2-p15-man

/nix/store/ghjnww2sc6ldrkpjv5qhdx6a4nrik70b-case-insensitive-1.2.1.0

/nix/store/c59y1z2fmplqj4ajqgdwads1a8ipr1p6-case-insensitive-1.2.1.0-doc

/nix/store/3sl4k58xipvxpjqxrfhacwbg0ixc6c7x-cmdargs-0.10.22

/nix/store/744fhmanqzx0lmf5jw5rb5rvm027nl0f-cmdargs-0.10.22-doc

/nix/store/bpkcpf47jx1b491x85qqrzlqqh37k6qa-ghc-9.4.8

/nix/store/bzms4w90hcmpms8wd0r6g8iz72ahda8f-ghc-9.4.8-doc

/nix/store/cbc267lm5j349s4yiqx5qn0r58hx9gz0-gmp-with-cxx-6.3.0-dev

/nix/store/6hh2qxld33xbswzhq52ih8s3w9d7vvc5-hashable-1.4.3.0

/nix/store/d75fp0h4v4rpim6kgxnifi6bxgbn0m8a-hashable-1.4.3.0-doc

/nix/store/5ml3grg25lbfkh6jqp7nrr1cqf4bxm36-integer-logarithms-1.0.3.1

/nix/store/ra8vdmp24dpbyj3ws5f49xacz98ijxgq-integer-logarithms-1.0.3.1-doc

/nix/store/p9afjrw693j0z7yq038lrhi1wy9m5dml-libffi-3.4.4-dev

/nix/store/mibmy33xpgl1a8v6zzpsllfjmbys4a02-megaparsec-9.3.1

/nix/store/hpphljcc7r74nizh4wv1pkqiyyw13iij-megaparsec-9.3.1-doc

/nix/store/03f2bk1yx5zmz5hm9kba4nnmigzhm99r-nixfmt-0.6.0

/nix/store/lhdyzv9accyqx5ibj90amlv47i0n7xyw-nixfmt-0.6.0-bin

/nix/store/vhlp48larcj2gqiah36aggb6l0nhrys6-nixfmt-0.6.0-doc

/nix/store/s3f8rn300nd84gmppr7j9z2azck8spbm-parser-combinators-1.3.0

/nix/store/syracs00f4v3z5zxxmmvmkh8qydg4dm1-parser-combinators-1.3.0-doc

/nix/store/kp9j3lsi0pbfzdaw5hwgn7ba7srf2xjf-primitive-0.8.0.0

/nix/store/rarc02cy7w6xfgqm0pydax68prmsgriq-primitive-0.8.0.0-doc

/nix/store/g594pj929kh6i3f9g2nrd8ynwwpxfl67-python3.11-Jinja2-3.1.3

/nix/store/vdr314xabaljqch1c7k3kbfyzq0yf46z-python3.11-babel-2.12.1

/nix/store/14w0bsccbmmn08d4lcf5i61qabzh5r5a-python3.11-j2cli-0.3.10

/nix/store/byw1nlizabkdxx5bv632pv83n2x6di7g-python3.11-markupsafe-2.1.3

/nix/store/4adazmshiklx92rpb2f9c2aria6zfc01-safe-exceptions-0.1.7.4

/nix/store/08c4xwa3ny64m9mcal0bzlf921dbrhx4-safe-exceptions-0.1.7.4-doc

/nix/store/ppgdvqryyk3224cz266whvwp5gzfj5ks-scientific-0.3.7.0

/nix/store/m50v3929pwf53a0ykmai71nl48mixs12-scientific-0.3.7.0-doc

copying path ‘/nix/store/1jnl0g7a6fcc7ma4f4kg77arpz84ifzf-ShellCheck-0.9.0’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/wam6939g2ch4aj6g30nfcsfm9lchmmjy-bash-5.2-p15-man’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/lhdyzv9accyqx5ibj90amlv47i0n7xyw-nixfmt-0.6.0-bin’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/vdr314xabaljqch1c7k3kbfyzq0yf46z-python3.11-babel-2.12.1’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/byw1nlizabkdxx5bv632pv83n2x6di7g-python3.11-markupsafe-2.1.3’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

building ‘/nix/store/r1g97pfblqkssrarpkj6dcwmj6sv8ig5-sandbox-files.drv’…

copying path ‘/nix/store/bzms4w90hcmpms8wd0r6g8iz72ahda8f-ghc-9.4.8-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/cbc267lm5j349s4yiqx5qn0r58hx9gz0-gmp-with-cxx-6.3.0-dev’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/p9afjrw693j0z7yq038lrhi1wy9m5dml-libffi-3.4.4-dev’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/g594pj929kh6i3f9g2nrd8ynwwpxfl67-python3.11-Jinja2-3.1.3’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/14w0bsccbmmn08d4lcf5i61qabzh5r5a-python3.11-j2cli-0.3.10’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/744fhmanqzx0lmf5jw5rb5rvm027nl0f-cmdargs-0.10.22-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/bpkcpf47jx1b491x85qqrzlqqh37k6qa-ghc-9.4.8’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/d75fp0h4v4rpim6kgxnifi6bxgbn0m8a-hashable-1.4.3.0-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/ra8vdmp24dpbyj3ws5f49xacz98ijxgq-integer-logarithms-1.0.3.1-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/syracs00f4v3z5zxxmmvmkh8qydg4dm1-parser-combinators-1.3.0-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/rarc02cy7w6xfgqm0pydax68prmsgriq-primitive-0.8.0.0-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/08c4xwa3ny64m9mcal0bzlf921dbrhx4-safe-exceptions-0.1.7.4-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/c59y1z2fmplqj4ajqgdwads1a8ipr1p6-case-insensitive-1.2.1.0-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/m50v3929pwf53a0ykmai71nl48mixs12-scientific-0.3.7.0-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/hpphljcc7r74nizh4wv1pkqiyyw13iij-megaparsec-9.3.1-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/vhlp48larcj2gqiah36aggb6l0nhrys6-nixfmt-0.6.0-doc’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/3sl4k58xipvxpjqxrfhacwbg0ixc6c7x-cmdargs-0.10.22’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/6hh2qxld33xbswzhq52ih8s3w9d7vvc5-hashable-1.4.3.0’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/5ml3grg25lbfkh6jqp7nrr1cqf4bxm36-integer-logarithms-1.0.3.1’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/s3f8rn300nd84gmppr7j9z2azck8spbm-parser-combinators-1.3.0’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/kp9j3lsi0pbfzdaw5hwgn7ba7srf2xjf-primitive-0.8.0.0’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/4adazmshiklx92rpb2f9c2aria6zfc01-safe-exceptions-0.1.7.4’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/ghjnww2sc6ldrkpjv5qhdx6a4nrik70b-case-insensitive-1.2.1.0’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/ppgdvqryyk3224cz266whvwp5gzfj5ks-scientific-0.3.7.0’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/mibmy33xpgl1a8v6zzpsllfjmbys4a02-megaparsec-9.3.1’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

copying path ‘/nix/store/03f2bk1yx5zmz5hm9kba4nnmigzhm99r-nixfmt-0.6.0’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…

building ‘/nix/store/dgvgsznrx1rgfpzcnhi0fxavgyiyj6jx-idx-template.drv’…

building ‘/nix/store/mc03ch95g29zl9228i1hjg991s11jhk4-sandbox.drv’…

created 352 symlinks in user environment

building ‘/nix/store/m1xfbhhyjnqlwrfn7hm4s14ny421xi6f-usr-env.drv’…

/nix/store/nbfbn667l28n2sm8y0ldmpz8dxiv1337-usr-env /build

/nix/store/nbfbn667l28n2sm8y0ldmpz8dxiv1337-usr-env/usr /nix/store/nbfbn667l28n2sm8y0ldmpz8dxiv1337-usr-env /build

/nix/store/nbfbn667l28n2sm8y0ldmpz8dxiv1337-usr-env /build

building ‘/nix/store/91bfws4bi8269q370fs190rr6ar4rir5-idx-template.drv’…

npm WARN exec The following package was not found and will be installed: create-expo@3.0.0

Cannot create an app named “react-native” because it would conflict with a dependency of the same name.

npm ERR! code 1

npm ERR! path /build

npm ERR! command failed

npm ERR! command sh -c create-expo react-native

npm ERR! A complete log of this run can be found in: /home/user/.npm/_logs/2024-07-25T05_15_09_419Z-debug-0.log

Cannot create an app named “react-native” because it would conflict with a dependency of the same name.

Hi @R99 - Can you create a new project with a different name? The name “react native” is conflicting with some internal dependencies. We’ll make sure to prevent invalid names like this from added in the future.

Cheers,
Kirupa

It Worked, Thanks :+1::+1::+1:

1 Like

Hi :slightly_smiling_face:
I have already exisiting react-native project (IGNITE) that I imported to idx from GitHub.
But getting this errors:

app-clientgit-3321426:~/app-client{main}$ yarn android
Failed to resolve the Android SDK path. Default install location not found: /home/user/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Failed to resolve the Android SDK path. Default install location not found: /home/user/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
CommandError: No Android connected device found, and no emulators could be started automatically.
Please connect a device or create an emulator (https://docs.expo.dev/workflow/android-studio-emulator).
Then follow the instructions here to enable USB debugging:
https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

How can I setup exisitng react-native project? so I can use the emulator (or from my device)

Thanks,
Oshri.

Hi @oshriza - is your github repo for your project public? If so, can you please post the URL? That will help us better figure out what is going on.

Thanks,
Kirupa

Hi Kirupa,
Thanks for the quick reply and sorry for the delay.
Yes, actually we clone a very famous boilerplate for react-native - Ignite.
so Ignite it’s a public repo and it’s the same like our repo right now.

Please let me know if it’s help and how can I help besides that :slight_smile:

Thank you Kirupa!

Also having issues with the emulator in react native, have reset the project to get started but it never loads the project, just get the idx logo on the emulator. Tried running the tunnel again and resetting the project and rebuilding the project but no luck. Could you advise please, would be good to finally be able to use this.

Hi @schrimy_t - are you working with a new project you created in IDX or are you bringing in your own existing project?