ionic-team / ionic-team/native-run

ERR_SDK_NOT_FOUND: No valid Android SDK root found.

Open
#235 8 comments 0 reactions 0 assignees View on GitHub
android
Dominant language
TypeScript
Stars
137
Forks
28
PR merge metrics
No merged PRs in 30d

Description

**Version:**
1.6.0

**Description:**
I have defined my sdk location using this command on the cmd
set ANDROID_SDK_ROOT=D:\Android\sdk\
set ANDROID_HOME=D:\Android\sdk\
But any of these are working as expected.

**Command Output:**
npx capacitor run android --verbose
√ Copying web assets from www to android\app\src\main\assets\public in 1.96s
√ Creating capacitor.config.json in android\app\src\main\assets in 1.53ms
copy android [info] Found 8 Cordova plugins for android:
cordova-plugin-chooser@1.3.2
cordova-plugin-file@6.0.2
cordova-plugin-ionic@5.5.2
cordova-plugin-screen-orientation@3.0.2
cordova-plugin-telerik-imagepicker@2.3.6
cordova-plugin-whitelist@1.3.5
es6-promise-plugin@4.2.2
√ copy android in 2.09s
√ Updating Android plugins in 7.77ms
[info] Found 5 Capacitor plugins for android:
@capacitor/app@1.1.1
@capacitor/camera@1.3.1
@capacitor/haptics@1.1.4
@capacitor/keyboard@1.2.2
@capacitor/status-bar@1.0.8
/ update android [info] Found 8 Cordova plugins for android:
cordova-plugin-chooser@1.3.2
cordova-plugin-file@6.0.2
cordova-plugin-file-opener2@3.0.5
cordova-plugin-ionic@5.5.2
cordova-plugin-screen-orientation@3.0.2
cordova-plugin-telerik-imagepicker@2.3.6
cordova-plugin-whitelist@1.3.5
es6-promise-plugin@4.2.2
√ update android in 240.14ms
[error] native-run failed with error

ERR_SDK_NOT_FOUND: No valid Android SDK root found.

More details for this error may be available online:
https://github.com/ionic-team/native-run/wiki/Android-Errors

**SDK Info:**
ERR_SDK_NOT_FOUND: No valid Android SDK root found.
More details for this error may be available online:
https://github.com/ionic-team/native-run/wiki/Android-Errors

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.