Closed crabdancing closed 2 months ago
Figured it out. Now I'm getting another error about 'no platforms installed'. Closing.
Had to do:
android-sdk = inputs.android-nixpkgs.sdk.${system} (sdkPkgs:
with sdkPkgs; [
cmdline-tools-latest
build-tools-34-0-0
platform-tools
platforms-android-34
emulator
ndk-bundle # this bit is important
sources-android-34
]);
devShells.default = craneLib.devShell {
ANDROID_NDK_ROOT = "${android-sdk}/share/android-sdk/ndk-bundle";
};
When trying to get the APK compiling on NixOS, I get the following:
This is confusing to me, because there was no source.properties in the git repo, yet somehow apparently it worked before?
Out of desparation, I tried
xbuild
too (as suggested bycargo-apk
's README.md) and it gives me: