SDK — Android (native)
Status of the native Kotlin/Java SDK. Currently unpublished — use React Native or the web client in the meantime.
Status: not yet published. There is no native Android SDK on Maven
Central or Google's Maven repo yet. implementation "com.layers:layers-android" will fail — the coordinate does not
resolve.
What exists today
For Android integration, the supported paths are:
- React Native SDK —
@layers/react-native(alpha) has an Android native module. - Expo SDK —
@layers/expowraps React Native with a config plugin. - Web SDK —
@layers/clientworks inside aWebView-hosted app or any JavaScript runtime.
Roadmap
A native Kotlin SDK is on the roadmap. When shipped, it will publish to
Maven Central under com.layers:layers-android, expose the same
conceptual API (init, track, identify, setConsent, flush), and
post to the existing https://in.layers.com/events ingest endpoint.
Until it lands, anything on this page that previously described a native
Layers.init(...) Kotlin call does not exist as a shipped package.
If you need Android now
- Run the web or React Native SDK as described above.
- For server-side event firing, use
@layers/nodefrom your backend. - For pure attribution (no in-app events), configure CAPI directly on a Meta or TikTok Ads layer — the server-side relay does not require an Android SDK.