svanderburg / nix-androidenvtests

Nix Android build tests
MIT License
34 stars 4 forks source link

Attribute 'armeabi-v7a' missing #8

Closed tobiasBora closed 5 years ago

tobiasBora commented 5 years ago

Hello,

first, thanks a lot for this great package. I tried to run the emulator, and it works great with abi x86_64, unfortunately I have issues with the abi armeabi-v7a that is required by the program I need to emulate: indeed, when I use:

with import <nixpkgs> {};
androidenv.emulateApp {
  name = "emu";
  platformVersion = "26";
  useGoogleAPIs = true;
  enableGPU = false;
  abiVersion = "armeabi-v7a";
  systemImageType = "default";
  avdHomeDir = "/home/me/avd/Revolut";

  # App revolut:
  app = ./revolut_5.12.apk;
  package = "com.revolut.revolut";
  activity = "com.revolut.ui.main.MainActivity"; 
}

it fails with the error:

$ nix-build emux.nix && result/bin/run-test-emulator                                                                        
error: attribute 'armeabi-v7a' missing, at /nix/store/zigrxqpxhzznpk1pachx8zkdxrm8aw3j-nixos-19.09pre181629.ae71c13a92f/nixos/pkgs/development/mobile/androidenv/compose-android-packages.nix:123:21
(use '--show-trace' to show detailed location information)

Did I miss something?

tobiasBora commented 5 years ago

Ok I got it, not all platform have armeabi available, the list is maintained here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/mobile/androidenv/generated/system-images-android.nix. Sorry for the noise, keep the amazing work!

Thanks!