Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing class in generated Ampli.kt file #329

Open
hamen opened this issue Mar 24, 2022 · 1 comment
Open

Missing class in generated Ampli.kt file #329

hamen opened this issue Mar 24, 2022 · 1 comment
Assignees

Comments

@hamen
Copy link

hamen commented Mar 24, 2022

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

@justin-fiedler
Copy link
Contributor

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 justin-fiedler self-assigned this Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants