Capacitor cannot find Android SDK platform tools in custom location "ERR_SDK_PACKAGE_NOT_FOUND" #4828
-
I wanted to run my Ionic/Capacitor app via
The correct location of the platform tools would be: D:\Android_SDK_HOME\Sdk\platform-tools. My ANDROID_SDK_HOME variable is set to D:\Android_SDK_HOME, but when I change it to D:\Android_SDK_HOME\Sdk, this still results in the same error. Does anyone know how/from where Capacitor accesses the SDK location, and how I can configure it? Could not find any documentation about that in the Capacitor docs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Capacitor uses native-run package to run the apps and the error contains a link to the docs. |
Beta Was this translation helpful? Give feedback.
Capacitor uses native-run package to run the apps and the error contains a link to the docs.
It’s telling you that the platform-tools are not installed
https://github.com/ionic-team/native-run/wiki/Android-Errors#err_sdk_package_not_found