Amplitude-Android icon indicating copy to clipboard operation
Amplitude-Android copied to clipboard

📣 Introducing Amplitude Android Kotlin SDK [BETA]

Open qingzhuozhen opened this issue 2 years ago • 2 comments


Announcement

Amplitude is introducing a new Kotlin SDK for Android [BETA]. This new SDK provides improved developer experience, helps users instrument data more seamlessly and provide more control over data being instrumented using custom plugins. The new SDKs also comes with:

  • Custom plugins
  • Built-in type definitions
  • No SQLite and Okhttp dependency

To learn more about the new SDK, here are some useful links:

  • Maven: https://search.maven.org/artifact/com.amplitude/analytics-android
  • GitHub: https://github.com/amplitude/Amplitude-Kotlin
  • Documentation: https://developers.amplitude.com/docs/kotlin-android-beta

Feel free to check it out and share any feedback!

qingzhuozhen avatar May 05 '22 23:05 qingzhuozhen

@qingzhuozhen i am have a crash updating from the old to new library

Caused by android.system.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Linux.open(Linux.java) at libcore.io.ForwardingOs.open(ForwardingOs.java:166) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:254) at libcore.io.ForwardingOs.open(ForwardingOs.java:166) at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7747) at libcore.io.IoBridge.open(IoBridge.java:478) at java.io.FileInputStream.<init>(FileInputStream.java:160) at com.amplitude.android.utilities.AndroidStorage.getEventsString(AndroidStorage.kt:65) at com.amplitude.core.platform.EventPipeline$upload$1.invokeSuspend(EventPipeline.kt:106) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923)

mahmoudElfeel67 avatar Aug 30 '22 09:08 mahmoudElfeel67

Hi @mahmoudElfeel67 can you please check what version of the SDK you are using. This issue should be fixed in 1.0.1 and above. Hopefully updating to the latest version 1.1.3 will fix the bug. Thanks! https://github.com/amplitude/Amplitude-Kotlin/releases

justin-fiedler avatar Aug 30 '22 18:08 justin-fiedler