Android: Difference between revisions

imported>Jmarmstrong1207
m Add a better way to install.
imported>Jmarmstrong1207
No edit summary
Line 1: Line 1:
== Using the Android SDK and Manually Creating Emulators ==
== Using the Android SDK and Creating Emulators with Nix ==
NixOS uses the androidenv package for building android SDKs and manually creating emulators without the use of Android Studio.  
NixOS uses the androidenv package for building android SDKs and manually creating emulators without the use of Android Studio.  


Line 6: Line 6:
# [https://nixos.org/manual/nixpkgs/unstable/#android Official Android SDK guide from NixOS.org]  
# [https://nixos.org/manual/nixpkgs/unstable/#android Official Android SDK guide from NixOS.org]  
# [https://sandervanderburg.blogspot.de/2014/02/reproducing-android-app-deployments-or.html  Reproducing Android app deployments]
# [https://sandervanderburg.blogspot.de/2014/02/reproducing-android-app-deployments-or.html  Reproducing Android app deployments]
== Emulators without Nix ==
If you don't want to nixify your emulators, you can use Android Studio and set up emulators there like a regular system.


== adb setup ==
== adb setup ==
Line 194: Line 197:
     export ALLOW_NINJA_ENV=true
     export ALLOW_NINJA_ENV=true
     export USE_CCACHE=1
     export USE_CCACHE=1
     export ANDROID_JAVA_HOME=${pkgs.jdk.home}
     export ANDROID_JAVA_HOME=${pkgs.jdk.home}sdkmanager install avd
     export LD_LIBRARY_PATH=/usr/lib:/usr/lib32
     export LD_LIBRARY_PATH=/usr/lib:/usr/lib32
   '';
   '';