Flutter - Android SDK Folder Not Writable

Its like there is a problem with adriod sdk regarding to the nix store

logs`Warning: Observed package id ‘ndk;23.1.7779620’ in inconsistent location ‘/nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk/ndk-bundle’ (Expected ‘/nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk/ndk/23.1.7779620’)

2025-01-18T09:59:52Z [android] Warning: Observed package id ‘ndk;23.1.7779620’ in inconsistent location ‘/nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk/ndk-bundle’ (Expected ‘/nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk/ndk/23.1.7779620’)

2025-01-18T09:59:53Z [android] Warning: Errors during XML parse:

2025-01-18T09:59:53Z [android] Warning: Additionally, the fallback loader failed to parse the XML.

2025-01-18T09:59:53Z [android] Warning: Errors during XML parse:

2025-01-18T09:59:53Z [android] Warning: Additionally, the fallback loader failed to parse the XML.

2025-01-18T09:59:53Z [android] Checking the license for package NDK (Side by side) 25.1.8937393 in /nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk/licenses

2025-01-18T09:59:53Z [android] License for package NDK (Side by side) 25.1.8937393 accepted.

2025-01-18T09:59:53Z [android] Preparing “Install NDK (Side by side) 25.1.8937393 v.25.1.8937393”.

2025-01-18T09:59:53Z [android] Warning: Failed to read or create install properties file.

2025-01-18T09:59:53Z [android] Error:

2025-01-18T09:59:53Z [android] FAILURE: Build failed with an exception.

2025-01-18T09:59:53Z [android]

2025-01-18T09:59:53Z [android] * What went wrong:

2025-01-18T09:59:53Z [android] A problem occurred configuring project ‘:orm_flutter_android’.

2025-01-18T09:59:53Z [android] > com.android.builder.sdk.InstallFailedException: Failed to install the following SDK components:

2025-01-18T09:59:53Z [android] ndk;25.1.8937393 NDK (Side by side) 25.1.8937393

2025-01-18T09:59:53Z [android] The SDK directory is not writable (/nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk)

2025-01-18T09:59:53Z [android]

2025-01-18T09:59:53Z [android]`:

3 Likes

Having the same issue (The SDK directory is not writable)

1 Like