Launching lib/main.dart on sdk gphone64 x86 64 in debug mode…
Checking the license for package Android SDK Platform 33 in /nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk/licenses
License for package Android SDK Platform 33 accepted.
Preparing “Install Android SDK Platform 33 (revision 3)”.
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 ‘:firebase_auth:generateDebugRFile’.
Failed to install the following SDK components:
platforms;android-33 Android SDK Platform 33
The SDK directory is not writable (/nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk)
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 2s
Error: Gradle task assembleDebug failed with exit code 1
Exited (1). problem facing repeated treid all things
1 Like
I’m also facing the same problem from yesterday, but mine was sdk 35.
This happened when starting the emulator and running flutter build apk.
3 Likes
I’m facing the same problem.
I’m also facing the same problem
thanks hightechgyan i try your code
Same for me 2025-01-18T09:42:02Z [android] FAILURE: Build failed with an exception.
2025-01-18T09:42:02Z [android]
2025-01-18T09:42:02Z [android] * What went wrong:
2025-01-18T09:42:02Z [android] Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.
2025-01-18T09:42:02Z [android]
2025-01-18T09:42:02Z [android] Error: > Failed to install the following SDK components:
2025-01-18T09:42:02Z [android] build-tools;30.0.3 Android SDK Build-Tools 30.0.3
2025-01-18T09:42:02Z [android] The SDK directory is not writable (/nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk)
2025-01-18T09:42:02Z [android]
2025-01-18T09:42:02Z [android]
2025-01-18T09:42:02Z [android] * Try:
2025-01-18T09:42:02Z [android] > Run with --stacktrace option to get the stack trace.
2025-01-18T09:42:02Z [android] > Run with --info or --debug option to get more log output.
2025-01-18T09:42:02Z [android] > Run with --scan to get full insights.
2025-01-18T09:42:02Z [android]
2025-01-18T09:42:02Z [android] * Get more help at https://help.gradle.org
2025-01-18T09:42:02Z [android]
2025-01-18T09:42:02Z [android] BUILD FAILED in 2s
2025-01-18T09:42:02Z [android]
2025-01-18T09:42:14Z [android] Error: Error: Gradle task assembleDebug failed with exit code 1
2025-01-18T09:42:14Z [android]
2025-01-18T09:42:14Z [android] ✘ Preview failed to start