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

Missing class in generated Ampli.kt file

Open hamen opened this issue 3 years ago • 1 comments

Hi all,

I'm integrating Ampli in my current project and everything was fine until I run:

ampli pull

The Ampli.kt file that I find in my codebase does not compile, as we have this error: image

I checked the Kotlin app example here, and I noticed that the groupIdentify() function in my file is slightly different from the one in the example.

If I replace my implementation with that one, I get to build the app, but my changes will be inevitably lost once I run ampli pull again.

Notes

My build.gradle contains

implementation("com.amplitude:android-sdk:2.36.3")
implementation("com.squareup.okhttp3:okhttp:4.9.3")

as from documentation.

I really need your help here. Thanks

hamen avatar Mar 24 '22 15:03 hamen

Hi @hamen, thanks for submitting the issue. This is a bug in our code generation that seems to be caused by not having any "Group Properties" in your tracking plan. We will get started on a fix and keep you updated. Thanks again!

justin-fiedler avatar Mar 24 '22 16:03 justin-fiedler