- Home
- Skills
- Mobile Development
- Flutter Mobile Development
Flutter Mobile Development
by joker
- Build optimization resolves Gradle version conflicts, Pod installation errors, and ABI mismatches.
Free
Flutter Mobile Development
Example session with this skill installed
My Flutter app is crashing with a 'Signal 11' error when I call the native C++ library. I've attached the logcat output and the Dart FFI struct definition. Can you find the cause?
- Read your context and instructions
- Compiled the flutter mobile development
I have analyzed the logcat trace and your FFI definitions. The crash (Signal 11) is caused by a memory alignment mismatch in the UserPayload struct between Dart and C++.
Diagnostic Report
| Evidence | Finding |
|---|---|
| Logcat | Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) at libnative.so+0x1a4c |
| FFI Mapping | Dart Int64 used for a field that is int (32-bit) in the C header. |
| Alignment | Struct padding is missing in the Dart Struct definition, shifting subsequent pointers. |
Fixed FFI Definition
import 'dart:ffi';
import 'package:ffi/ffi.dart';
// Fixed: Changed Int64 to Int32 to match C 'int' and added proper padding
final class UserPayload extends Struct {
@Int32()
external int id;
@Int32() // Was Int64, causing 4-byte shift
external int flags;
external Pointer<Utf8> username;
}
typedef NativeFunc = Void Function(Pointer<UserPayload>);
typedef DartFunc = void Function(Pointer<UserPayload>);
Next steps
- Run
flutter clean && flutter pub getto ensure no stale artifacts remain. - Execute
scripts/doctor.pyto verify the fix on a physical device. - Check the
references/ffi-type-map.mdto ensureflagsdoesn't requireUint32instead ofInt32.
Connects securely to your tools. The creator never sees your data.
About this skill
Mobile development often stalls at the boundary between Flutter and native code. This skill resolves complex build failures, runtime crashes, and FFI integration issues across iOS, Android, HarmonyOS, and Web by enforcing a strict evidence-based diagnostic workflow.
What it does
- Root-cause analysis identifies the specific trigger of build failures or performance stutters using log evidence.
- FFI troubleshooting fixes symbol errors, pointer lifetime issues, and type mismatches in C/C++/Rust integrations.
- Multi-platform adaptation manages platform-specific bridging for Android, iOS, HarmonyOS ArkUI, and WeChat Mini Programs.
- Build optimization resolves Gradle version conflicts, Pod installation errors, and ABI mismatches.
- Submission preparation audits privacy manifests and signing configurations for App Store and Play Store compliance.
How it works
- Evidence Collection requires running
flutter doctor -vand capturing full build logs oradb logcatoutput. - Classification maps symptoms to high-probability root causes like ABI mismatches or struct alignment errors.
- Targeted Fixes apply minimal diffs to project files while preserving existing logic and architecture.
- Cross-Platform Verification runs release builds for all target platforms to ensure the fix persists in production.
Frameworks & tools
Specifically designed for Flutter environments using Dart FFI, CocoaPods, Gradle, and platform-specific SDKs including HarmonyOS ArkUI and WeChat Mini Program bridges.
Why this beats prompting it yourself
Generic prompts often guess at solutions, leading to "shotgun debugging" that breaks dependencies. This skill follows a rigorous data-driven chain, verifying every fix against real device logs and type mapping tables.
Use cases
- Debugging a memory crash in a custom C++ library linked via Dart FFI.
- Resolving a "blank screen" error appearing only on specific Android API levels.
- Porting an existing Flutter app to the HarmonyOS ArkUI environment.
Known limitations
Requires users to provide full, non-truncated logs for accurate diagnosis. It does not perform opportunistic refactoring of healthy code.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 10 days ago
- Free with an Agensi account
Requires
Mac only
Permissions
What's inside
Frequently Asked Questions
New in Mobile Development
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Mobile Development.