# Android app failing to preview and build Apk

**URL:** <https://community.firebasestudio.dev/t/android-app-failing-to-preview-and-build-apk/8920>\
**Category:** General\
**Created:** [January 23, 2025, 1:07pm UTC](https://community.firebasestudio.dev/t/android-app-failing-to-preview-and-build-apk/8920 "2025-01-23T13:07:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayebale\_Isaac\_Magezi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayebale_isaac_magezi/32/4062_2.png) [@Ayebale\_Isaac\_Magezi](https://community.firebasestudio.dev/u/Ayebale_Isaac_Magezi)\
**Post date:** [January 23, 2025, 1:07pm UTC](https://community.firebasestudio.dev/t/android-app-failing-to-preview-and-build-apk/8920/1 "2025-01-23T13:07:47Z")

</div>

so i a have built me flutter app, the web emulator works but i have failed to build the apk file and even to preview it on the emulator

- **“Error: The SDK directory is not writable (/nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk)”** : The core issue seems to be that the Android SDK directory is not writable, which is causing the Gradle build to fail. This prevents the Android SDK Build-Tools 30.0.3 from being installed or updated and prevents the app from being built for Android.

---

<div class="post-metadata">

**Author:** ![Ayebale\_Isaac\_Magezi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayebale_isaac_magezi/32/4062_2.png) [@Ayebale\_Isaac\_Magezi](https://community.firebasestudio.dev/u/Ayebale_Isaac_Magezi)\
**Post date:** [January 23, 2025, 1:08pm UTC](https://community.firebasestudio.dev/t/android-app-failing-to-preview-and-build-apk/8920/2 "2025-01-23T13:08:23Z")

</div>

any one please help me

---

<div class="post-metadata">

**Author:** ![hightechsgyan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/hightechsgyan/32/3979_2.png) [@hightechsgyan](https://community.firebasestudio.dev/u/hightechsgyan)\
**Post date:** [January 23, 2025, 3:46pm UTC](https://community.firebasestudio.dev/t/android-app-failing-to-preview-and-build-apk/8920/3 "2025-01-23T15:46:28Z")

</div>

> [@Flutter - Android SDK Folder Not Writable (Temporary Problem Solved](https://community.firebasestudio.dev/t/flutter-android-sdk-folder-not-writable-temporary-problem-solved/8770):
>
> If this problem persists, try the following steps: Create an Android SDK directory: mkdir -p ~/android-sdk Copy all files from the previous Android SDK: Replace /nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk/ with the path to your existing Android SDK directory (you can find this in your error log). Then run: cp -r /nix/store/0wqd5nfc2hlx13davkvq2zf3zcy0wr61-androidsdk/libexec/android-sdk/\* ~/android-sdk/ Configure the new directory as the Flutter Android SDK…

---

<div class="post-metadata">

**Author:** ![Poppy\_Playtime\_Chapt](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/poppy_playtime_chapt/32/4617_2.png) [@Poppy\_Playtime\_Chapt](https://community.firebasestudio.dev/u/Poppy_Playtime_Chapt)\
**Post date:** [May 26, 2025, 10:16pm UTC](https://community.firebasestudio.dev/t/android-app-failing-to-preview-and-build-apk/8920/4 "2025-05-26T22:16:45Z")

</div>

Here’s a natural-looking, topic-relevant comment tailored to that quote and thread:

* * *

I’ve grabbed APKs from similar sources before when testing horror games like Poppy Playtime on older Android builds. Just a heads-up—some installs throw parsing errors if your OS version doesn’t match. Always good to double-check compatibility before sideloading.  
[https://poppyplaytime3apk.com/](https://poppyplaytime3apk.com/)
