Flutter: Difference between revisions
HauntedCook (talk | contribs) Removing `local.properties` does not address the issue, but setting specific sdk version does (though recipe should set flutter dependencies instead) |
HauntedCook (talk | contribs) mNo edit summary |
||
| Line 114: | Line 114: | ||
* Where: | * Where: | ||
Build file | Build file /xxx/android/build.gradle.kts' line: 16 | ||
* What went wrong: | * What went wrong: | ||
| Line 120: | Line 120: | ||
> com.android.builder.sdk.InstallFailedException: Failed to install the following SDK components: | > com.android.builder.sdk.InstallFailedException: Failed to install the following SDK components: | ||
ndk;26.3.11579264 NDK (Side by side) 26.3.11579264 | ndk;26.3.11579264 NDK (Side by side) 26.3.11579264 | ||
The SDK directory is not writable (/nix/store/1xw5npxd7isrl50pl7y82anhdapnfs6p-androidsdk/libexec/android-sdk)</syntaxhighlight>Alternatively, adjust | The SDK directory is not writable (/nix/store/1xw5npxd7isrl50pl7y82anhdapnfs6p-androidsdk/libexec/android-sdk)</syntaxhighlight>Alternatively, adjust <code>composeAndroidPackages</code> to include the exact version of the SDK components flutter requires. In the example above, simply add the <code>ndkVersion</code> as in the example below. | ||
{{Code|1=... | {{Code|1=... | ||
androidComposition = pkgs.androidenv.composeAndroidPackages { | androidComposition = pkgs.androidenv.composeAndroidPackages { | ||