π οΈ Troubleshooting
SDK not initializedβ
Symptom: Error mentions initialize or SDK token not found.
Fix:
- Call
initializewith a valid API key first. - Wait for success before
connector showing UI. - On Android, use the callback β do not call
connectUseruntil initialize succeeds.
Not connected / ensureConnectedβ
Symptom: Cannot show nutrition/training UI.
Fix: Call connect / connectUser after initialize. Check JWT is not expired.
Wrong connect parametersβ
Symptom: Connect fails or wrong user.
Fix:
- Do not pass
userIdinto connect. - Pass
token,gender,height,weightβ see Measurements.
iOS: missing Flutter frameworksβ
Symptom: Xcode cannot find xcframeworks / build fails on sdk/ios.
Fix: From repo root run:
./scripts/ios_build.sh
Then reopen the Xcode workspace.
Android: AAR not foundβ
Symptom: Gradle cannot resolve com.azeoo:sdk.
Fix:
- Download AAR from Downloads or copy from
example/android/app/libs. - Add local Maven repo in
settings.gradle.ktsas in Android installation.
Android: native library / UnsatisfiedLinkErrorβ
Symptom: java.lang.UnsatisfiedLinkError: dlopen failed, missing libflutter.so, or ABI-related build errors after adding the SDK.
Fix: Add NDK ABI filters in your app module (app/build.gradle.kts). This is required for every host app β the SDK AAR cannot set it for you.
android {
defaultConfig {
ndk {
abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86_64")
}
}
}
Full explanation: Android installation β NDK ABI filters. Then clean and rebuild.
React Native: Android build failsβ
Symptom: Missing Flutter engine / SDK dependency.
Fix: In project-level android/build.gradle:
apply from: "../node_modules/react-native-azeoo-lib/android/azeoolib-dependencies.gradle"
Deep links not opening SDK screensβ
Fix:
- Configure URL schemes / universal links in the host app.
- Pass matching
deepLinks/DeepLinkConfigat initialize. - Forward URLs to SDK
handleDeepLink(native/RN).
Theme / embedded view issues (React Native)β
See React Native theme and UI components. If problems persist, compare with example/react-native and include SDK version in support requests.
Still stuck?β
- Compare with the matching example app.
- Check Integration checklist.
- Contact AZEOO support with platform, SDK version, and initialize/connect logs (no secrets).