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]