You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2020/09/24 13:20:39 UTC
[cordova-cli] branch master updated: (android) Replace deprecated
`android` command with `avdmanager` (#533)
This is an automated email from the ASF dual-hosted git repository.
timbru31 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-cli.git
The following commit(s) were added to refs/heads/master by this push:
new 7f89fce (android) Replace deprecated `android` command with `avdmanager` (#533)
7f89fce is described below
commit 7f89fcecd67d1e43dada0dda60c70f9ce11c09ba
Author: James Kruth <ja...@kruth.org>
AuthorDate: Thu Sep 24 09:20:32 2020 -0400
(android) Replace deprecated `android` command with `avdmanager` (#533)
The `android` command is deprecated. When you run the command, it displays the following:
```
*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
Running /path/to/android-sdk/tools/bin/avdmanager list target
```
On many systems the `android` command isn't even in the PATH and so attempting to run the original command fails.
---
src/info.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/info.js b/src/info.js
index 5ad11be..27a8acd 100644
--- a/src/info.js
+++ b/src/info.js
@@ -171,7 +171,7 @@ const _legacyPlatformInfo = {
}],
android: async () => [{
key: 'android',
- value: await _failSafeSpawn('android', ['list', 'target'])
+ value: await _failSafeSpawn('avdmanager', ['list', 'target'])
}]
};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org