3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/mobile/androidenv
Luca Favatella c50618898f androidenv/emulate-app: fix image id for recent device manager
Symptom:
```
Available Android targets:
----------
id: 1 or "android-28"
     Name: Android 9
     Type: Platform
     API level: 28
     Revision: 6
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
 Tag/ABIs : google_ndk_playstore/x86
...
Error: Invalid --tag google_apis_playstore for the selected target.
```

For creation of AVD, switch from `android` to `avdmanager` as the
latter seems enabling selecting the image with less friction (and is
better documented as not deprecated).  This requires using recent
tools - from https://developer.android.com/studio/releases/sdk-tools :
> SDK Tools, Revision 25.3.0 (March 2017)
> ...
> `android avd` command-line functionality replaced with new
> `avdmanager` tool.

For listing of targets, switch from `android` to `avdmanager` as the
`android` command invocation fails in recent tools.  Symptom (not
missing `s` as backward incompatibility):
```
Invalid or unsupported command "list targets"

Supported commands are:
android list target
android list avd
android list device
android create avd
android move avd
android delete avd
android list sdk
android update sdk
```

References:
- https://developer.android.com/studio/tools/help/android
- https://developer.android.com/studio/command-line/avdmanager
2020-03-09 15:38:49 +00:00
..
generated androidenv: manually (!) delete default images with same name 2020-03-09 04:47:40 +00:00
ndk-bundle
tools
build-app.nix
build-tools.nix androidenv build-tools: fix old versions under linux 2020-02-14 11:41:57 +01:00
cmake.nix
compose-android-packages.nix androidenv: fix default platform-tools to a known one 2020-03-09 04:47:40 +00:00
convertaddons.xsl
convertpackages.xsl androidenv: fix packages xsl used in generate.sh 2020-03-09 04:45:36 +00:00
convertsystemimages.xsl androidenv: fix system images xsl used in generate.sh 2020-03-09 03:43:19 +00:00
default.nix
deploy-androidpackage.nix deployAndroidPackage: prefer local builds 2019-11-16 14:37:47 +01:00
emulate-app.nix androidenv/emulate-app: fix image id for recent device manager 2020-03-09 15:38:49 +00:00
emulator.nix androidenv: add missing linux dependencies 2020-03-09 04:49:47 +00:00
generate.sh androidenv: update generate.sh to use nix-shell and fail on error 2020-03-09 03:43:19 +00:00
lldb.nix androidenv.lldb: Fix libssl not found 2020-01-07 14:02:13 +07:00
platform-tools.nix treewide: *inputs are lists 2019-12-31 01:09:25 +01:00
querypackages.sh
tools.nix