malan-pl opened a new issue #1297:
URL: https://github.com/apache/cordova-android/issues/1297
# Bug Report
## Problem
Probably problem only appears on Cordova Android 10. On Cordova Android
9.1.0 everything is ok.
```
$ cordova run android --debug --noprepare --nobuild --target Nexus_5X_API_24
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=***** (recommended setting)
ANDROID_HOME=***** (DEPRECATED)
Using Android SDK: *****
not found: emulator
```
### What is expected to happen?
App should be deployed to emulator.
### What does actually happen?
App is not deploying to emulator and error message is showing up.
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
config.xml
```
...
<preference name="android-minSdkVersion" value="22"/>
<preference name="android-targetSdkVersion" value="29"/>
...
```
Command to reproduce problem:
```
cordova run android
```
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
Build tools version: 30.0.3
```
$ cordova info
Cordova Packages:
cli: 10.0.0
common: 4.0.2
create: 3.0.0
lib: 10.0.0
common: 4.0.2
fetch: 3.0.1
serve: 4.0.0
Project Installed Platforms:
android: 10.0.1-nightly.2021.7.27.c11fcc10
Project Installed Plugins:
cordova-plugin-device: 2.0.3
cordova-plugin-splashscreen: 5.0.4
cordova-promise-polyfill: 0.0.2
Environment:
OS: Ubuntu 20.04.2 LTS (linux 5.8.0-59-generic) x64
Node: v14.17.3
npm:
android Environment:
android:
ERROR: Command failed with ENOENT: android list target
spawn android ENOENT
```
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]