Bu, Flutter/Android icin GENEL tuzaklari listeler. Projeye ozel build tuzaklari
(gomulu ag kutuphaneleri, paket adi gecmisi vb.) varsa onlari projenin kendi
belgesinde ya da ayri bir proje skill'inde tut.
A legacy TextField(value, onValueChange) in Jetpack Compose does NOT support native double-tap word selection (only long-press) - this is a real, reported bug class ("double-tap doesn't select the word"), not a misconfiguration. Fix it by switching that field to the newer state-based API: OutlinedTextField(state = rememberSaveable(saver = TextFieldState.Saver) { TextFieldState(initialText) }, ...), reading the current text via state.text.toString(). Apply the same fix everywhere the app has more than one text field (e.g. a composer AND a separate rename dialog) - fixing only the first one found leaves the same bug live elsewhere.
A coroutine-timing-sensitive unit test (one that uses runBlocking/delay-based coroutine resumption to assert an async callback fired) can fail intermittently under full-test-suite contention and then pass cleanly alone or on an immediate re-run, with no code change in between. Before treating such a failure as a regression introduced by your own change, re-run the SAME full test task once; if it goes green with nothing touched, it's pre-existing test flakiness, not your bug - don't chase it, and don't let it block an otherwise-clean build.
When a project's build.gradle introduces or already has ABI splits (e.g. for a native/NDK library), assembleDebug/assembleRelease stops producing one APK and instead produces several (app-universal-*.apk, app-arm64-v8a-*.apk, app-x86_64-*.apk, ...) - the universal one is much larger (it bundles every ABI's native code) and can exceed a chat platform bot's file-delivery size limit, causing the send to silently fail to arrive with no error surfaced to the agent. When sending a build to a user over such a channel, prefer the architecture-specific APK matching real devices (arm64-v8a covers virtually all modern Android phones) over the universal one. If even the single-arch APK still sits right at or over the limit (confirm with the user whether it actually arrived - a few MB over a soft limit can fail silently), don't just keep shrinking variants: serve the file over the user's own Tailscale network instead - copy it into a dedicated directory, start python3 -m http.server <port> there (as a tracked background=true process, never a nohup/disown wrapper), then tailscale serve --bg --https=<port> http://127.0.0.1:<port> (the macOS App Store Tailscale build cannot serve a directory path directly - always proxy to a local server). Check the local port is free first (lsof -nP -iTCP:<port> -sTCP:LISTEN): another agent's server already on that port makes the new one fail silently while the tailnet URL serves the wrong site. Verify both the local and the https://<tailnet-host>.ts.net:<port>/<file> URL return 200 with the exact expected byte size via curl -sk -o /dev/null -w '%{http_code} %{size_download}', and hand the user that HTTPS link to open directly on the target device's browser. Write the served copy under the agent's own scratch directory, not /tmp - some sandboxed environments silently wipe /tmp between tool calls, which kills the server with a no such file or directory on its next invocation even though the first launch reported success.
Before trusting flutter_launcher_icons (or any launcher-icon generator) output, check the SOURCE PNG's alpha channel at its four corners, not just its center: a source icon drawn as a rounded-rect/blob shape on an otherwise-transparent square canvas (common when the design tool exports a rounded card rather than a full-bleed square) leaves the corners at alpha=0, and many Android launchers composite a transparent legacy icon against a plain white backdrop - producing a visible white halo/box around the icon that is NOT present if you only glance at a resized preview of the shape itself. Verify with PIL: Image.open(path).convert('RGBA').getpixel((0,0)) should have alpha 255, matching a properly full-bleed icon (compare against a known-good sibling app's icon in the same project if one exists). Fix by extending the edge color to the corners rather than redrawing from scratch: build an opaque fill using the nearest already-opaque pixel's color at every transparent coordinate (scipy.ndimage.distance_transform_edt(~opaque, return_indices=True) gives the nearest-opaque index map in one call), force alpha to 255 everywhere, then re-run the icon generator from that full-bleed source. Re-verify pixel-level corner alpha on the REGENERATED mipmap file itself afterward, not just the source - the generator's own resize/mask step is a separate place the same transparency bug can reappear. When ios: true is set, the SAME run can also silently corrupt ios/Runner.xcodeproj/project.pbxproj: it has been observed flipping ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS from YES to the string AppIcon (an invalid value for that build setting) as an unrelated side effect of touching the AppIcon asset catalog. Diff the pbxproj after every flutter_launcher_icons run (even an Android-only icon fix, if ios: true stayed in the config) and revert any such stray setting change - don't assume the tool only touches image assets just because that's what you intended to change.
When ./gradlew fails INSTANTLY (under ~2-3s, before any task runs) with FAILURE: Build failed with an exception. * What went wrong: followed by a BARE NUMBER with no sentence (e.g. 27, 25.0.3) and no stack trace worth reading, that number is the running JDK's version, not an exit code or a real Gradle message - Gradle swallowed a JDK-incompatibility exception and rendered only the version string. This happens when the system/IDE-default java resolves to a JDK newer than the project's pinned Gradle version supports (e.g. Gradle 8.14.x rejects both JDK 25 and JDK 27). Don't chase it as an OOM or daemon-corruption issue (--stop, clearing swap, --max-workers=1 will all fail identically in ~2s). Fix: find a JDK the project actually builds with - check /usr/libexec/java_home -V for installed options and try Android Studio's bundled JBR (/Applications/Android Studio.app/Contents/jbr/Contents/Home on macOS) or an older Homebrew JDK (openjdk@21, openjdk@17) - then pass it explicitly: ./gradlew <task> -Dorg.gradle.java.home="<jdk_home_path>". A dispatched coding agent's own session may already have the right JAVA_HOME set and report green tests while your independent verification in a fresh shell hits this; don't conclude the agent lied before checking which JDK each of you is actually using.