workspace is built and opened but on terminal its showing build failed , emulators and flutter are not working properly
Firstly : when workspace is being built its showing unarchiving , which is unusual as its new workspace ( i have never seen it before )
AiCalc Setup Test 2aicalc-setup-test-2-[spoiler]20254749[/spoiler]
Setting up workspace
Unarchiving…
Initializing environment
Building environment
Finalizing
If I ignore this the below error shows up , and emulators dont work and flutter things dont work
- Executing task: /nix/store/674b8hrhqwh2f66z3dwsdb1z6rz6hnp4-build-flutter
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Task :gradle:checkKotlinGradlePluginConfigurationErrors SKIPPED
Task :gradle:compileKotlin UP-TO-DATE
Task :gradle:compileJava NO-SOURCE
Task :gradle:compileGroovy NO-SOURCE
Task :gradle:pluginDescriptors UP-TO-DATE
Task :gradle:processResources
Task :gradle:classes
Task :gradle:jar
Configure project :app
Observed package id ‘ndk;23.1.7779620’ in inconsistent location ‘/nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk/ndk-bundle’ (Expected ‘/nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk/ndk/23.1.7779620’)
Observed package id ‘ndk;23.1.7779620’ in inconsistent location ‘/nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk/ndk-bundle’ (Expected ‘/nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk/ndk/23.1.7779620’)
Warning: Observed package id ‘ndk;23.1.7779620’ in inconsistent location ‘/nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk/ndk-bundle’ (Expected ‘/nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk/ndk/23.1.7779620’)
Warning: Observed package id ‘ndk;23.1.7779620’ in inconsistent location ‘/nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk/ndk-bundle’ (Expected ‘/nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk/ndk/23.1.7779620’)
Checking the license for package NDK (Side by side) 26.3.11579264 in /nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk/licenses
License for package NDK (Side by side) 26.3.11579264 accepted.
Preparing “Install NDK (Side by side) 26.3.11579264 v.26.3.11579264”.
Warning: Failed to read or create install properties file.
FAILURE: Build failed with an exception.
-
Where:
Build file ‘/home/user/myapp/android/build.gradle.kts’ line: 16 -
What went wrong:
A problem occurred configuring project ‘:app’.
com.android.builder.sdk.InstallFailedException: Failed to install the following SDK components:
ndk;26.3.11579264 NDK (Side by side) 26.3.11579264
The SDK directory is not writable (/nix/store/gb9a17xwci34k0vhinhq94vb0wak116n-androidsdk/libexec/android-sdk)
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
BUILD FAILED in 36s
4 actionable tasks: 2 executed, 2 up-to-date
- The terminal process “/nix/store/674b8hrhqwh2f66z3dwsdb1z6rz6hnp4-build-flutter” terminated with exit code: 1.
- Terminal will be reused by tasks, press any key to close it.
There nearly 50 tasks when i created my last flutter workspace now its only 4
Did you guys replace the old flutter template with new one? @kirupa Can you please solve this or tell me how to access community templates