Hi can you explain further how you get the error? Do you mean you already build the binary and the you get the error when trying to execute the binary? Or do you just get the error when trying to build your project?
Sorry, i got too much work for the moment. I will come back later (a month or more) here and try to fix it.
I wanted it for a showcase, but could not make it on time. (now i got a project first to finish).
Hello. I have managed to make it work for version sdk 34, but not 35 or API 36.
/Android/Sdk/ndk/29.0.14206865/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
warning: ring@0.17.14: NixOS cannot run dynamically linked executables intended for generic
warning: ring@0.17.14: linux environments out of the box. For more information, see:
warning: ring@0.17.14: https://nix.dev/permalink/stub-ld
error: failed to run custom build command for `ring v0.17.14`
``
warning: ring@0.17.14: Compiler family detection failed due to error: ToolExecError: command did not execute successfully (status code exit status: 127): “/home/Lejla94/Android/Sdk/ndk/29.0.14206865/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang” “-E” “/home/Lejla94/WORK/lx-f-dio-app/lx-f-dio-app/src-tauri/target/aarch64-linux-android/release/build/ring-6502c2ca38f61477/out/1656391200873064347detect_compiler_family.c”
warning: ring@0.17.14: Could not start dynamically linked executable: /home/Lejla94/Android/Sdk/ndk/29.0.14206865/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
warning: ring@0.17.14: NixOS cannot run dynamically linked executables intended for generic
warning: ring@0.17.14: linux environments out of the box. For more information, see:
I also tried the following. It seems to pass until it tries to install sdk 35
Observed package id 'ndk;27.3.13750724' in inconsistent location '/nix/store/1gq1xalf5xiriwk2402gapjmavjg6g1n-androidsdk/libexec/android-sdk/ndk-bundle' (Expected '/nix/store/1gq1xalf5xiriwk2402gapjmavjg6g1n-androidsdk/libexec/android-sdk/ndk/27.3.13750724')
Observed package id 'ndk;27.3.13750724' in inconsistent location '/nix/store/1gq1xalf5xiriwk2402gapjmavjg6g1n-androidsdk/libexec/android-sdk/ndk-bundle' (Expected '/nix/store/1gq1xalf5xiriwk2402gapjmavjg6g1n-androidsdk/libexec/android-sdk/ndk/27.3.13750724')
Observed package id 'ndk;27.3.13750724' in inconsistent location '/nix/store/1gq1xalf5xiriwk2402gapjmavjg6g1n-androidsdk/libexec/android-sdk/ndk-bundle' (Expected '/nix/store/1gq1xalf5xiriwk2402gapjmavjg6g1n-androidsdk/libexec/android-sdk/ndk/27.3.13750724')
Checking the license for package Android SDK Build-Tools 35 in /nix/store/1gq1xalf5xiriwk2402gapjmavjg6g1n-androidsdk/libexec/android-sdk/licenses
License for package Android SDK Build-Tools 35 accepted.
Preparing "Install Android SDK Build-Tools 35 v.35.0.0".
Warning: Failed to read or create install properties file.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:minifyUniversalReleaseWithR8'.
> Failed to install the following SDK components:
build-tools;35.0.0 Android SDK Build-Tools 35
The SDK directory is not writable (/nix/store/1gq1xalf5xiriwk2402gapjmavjg6g1n-androidsdk/libexec/android-sdk)