Created
July 26, 2019 14:40
-
-
Save Jomik/17efba3a26bd3a1e8475006ba25155ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> { config.android_sdk.accept_license = true; }; | |
let | |
inherit (pkgs) mkShell openjdk; | |
androidPkgs = androidenv.composeAndroidPackages { | |
platformVersions = [ "28" ]; | |
abiVersions = [ "x86" "x86_64"]; | |
includeEmulator = true; | |
}; | |
inherit (androidPkgs) androidsdk; | |
in mkShell { | |
JAVA_HOME = "${openjdk}"; | |
ANDROID_HOME = "${androidsdk}"; | |
buildInputs = with pkgs; [ | |
nodejs-10_x | |
androidsdk | |
]; | |
} |
I figured it out! The easiest way to work around this problem is using buildFHSUserEnv, as documented here https://nixos.wiki/wiki/Android#gradlew
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try it like this, fixed these errors for me:
(nixpkgs
20.09pre218613.ae6bdcc5358
)Upon
tns run android
I always hit this though:Not sure which file it is missing… I'm trying to build the Svelte Native template.
If you have new findings please let me know.