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

Not entering in EventSubscriber or EventLogListener #46

Open
furflez opened this issue Mar 4, 2018 · 10 comments
Open

Not entering in EventSubscriber or EventLogListener #46

furflez opened this issue Mar 4, 2018 · 10 comments

Comments

@furflez
Copy link

furflez commented Mar 4, 2018

I've followed the sample code, and downloaded it too, but onEventTracked is never called.
The way I found it to work is to use tracklytics.trackEvent (String eventName, Map Attributes), but did not want to do it that way.

@furflez furflez changed the title Not entering in EventSubscriber Not entering in EventSubscriber or EventLogListener Mar 4, 2018
@glocci
Copy link

glocci commented Mar 13, 2018

@furflez Have you found a way to solve this issue?

@furflez
Copy link
Author

furflez commented Mar 13, 2018

@glocci for now i'm using an older version (1.3.0) 'com.orhanobut.tracklytics:tracklytics-plugin:1.3.0'. Many things changed on version (2.0.0) so I reccomend see this old version of readme.md

@orhanobut
Copy link
Owner

Let me check the issue. Could you give me more details about environment?

  • Are you using kotlin?
  • Android studio version

etc

@glocci
Copy link

glocci commented Apr 4, 2018

@orhanobut HI! no, I'm using Java and the latest Android Studio. I think that there might be some conflicts with multidex.

@furflez
Copy link
Author

furflez commented Apr 4, 2018

@orhanobut same as @glocci here

@orhanobut
Copy link
Owner

It seems that the issue is related to gradle plugin 3.1
Could you confirm that if Tracklytics triggers event on previous gradle plugin versions e.g. 3.0.1?

@dened
Copy link

dened commented May 21, 2018

Could you confirm that if Tracklytics triggers event on previous gradle plugin versions e.g. 3.0.1?

I can confirm. Tracklytics triggers event on gradle plugin versions 3.0.1, but it doesn't work with the latest version (3.1.2)

@furflez
Copy link
Author

furflez commented Aug 23, 2018

Could you confirm that if Tracklytics triggers event on previous gradle plugin versions e.g. 3.0.1?

@orhanobut Doesn't working on gradle version 3.1.4. but working on 3.0.1

@furflez
Copy link
Author

furflez commented Sep 17, 2018

What can be done to make it work? I really like and need this on my project.

@marcelskotnicki
Copy link

marcelskotnicki commented Jul 24, 2019

Add

buildscript {
ext.kotlin_version = '1.3.41'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.orhanobut.tracklytics:tracklytics-plugin:2.1.0'
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.4'
}
}

in root-level build.gradle and apply plugin:

apply plugin: 'com.android.application'
apply plugin: 'com.orhanobut.tracklytics'
apply plugin: 'android-aspectjx'

in app-level build.gradle.
Works for both Gradle version 3.4.2 and Tracklytics version 2.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants