1
votes

I am using react native cli approach for development. Requirements for setting environment are already fulfilled. After running this command npx react-native run-android android emulator launches and following errors occur.

  • Starting a Gradle Daemon (subsequent builds will be faster) File C:\Users\mycomputer.android\repositories.cfg could not be loaded.

  • "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" failed. Checking the license for package Android SDK Platform 29 in C:\Users\mycomputer\AppData\Local\Android\Sdk\licenses License for package Android SDK Platform 29 accepted. Preparing "Install Android SDK Platform 29 (revision: 5)". <=============> 100% CONFIGURING [14m 12s] > IDLE

Detail Errors

- First time run

D:\TASKS\Android_projects\testing>npx react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 967 file(s) to forward-jetify. Using 4 workers... info Starting JS server...

  • daemon not running; starting now at tcp:5037
  • daemon started successfully info Launching emulator... info Successfully launched emulator. info Installing the app... Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details File C:\Users\mycomputer.android\repositories.cfg could not be loaded. Checking the license for package Android SDK Build-Tools 28.0.3 in C:\Users\mycomputer\AppData\Local\Android\Sdk\licenses License for package Android SDK Build-Tools 28.0.3 accepted. Preparing "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)". <=============> 100% CONFIGURING [51s]

IDLE <=============> 100% CONFIGURING [52s]

<=============> 100% CONFIGURING [1m 2s]

1
Please upload the full error. It just seems like you need to update the sdk and install necessary platforms - Tawanda Muzavazi

1 Answers

0
votes

Check if Android SDK 10.0 (Q) is installed with these Packages intel x86 Atom_64 System image Google APIs intel x86 System Image

then navigate to SDK Tools tab & check Android SDK build tools package version should be 29.0.2

when creating AVD emulator navigate to x86 images tab and select Q 29 X86 Android 10.0 (Google APIS) should be downloaded already.