orhanobut / tracklytics

✔️ Annotation based tracking handler with aspect oriented programming
Apache License 2.0
429 stars 45 forks source link

Not entering in EventSubscriber or EventLogListener #46

Open furflez opened 6 years ago

furflez commented 6 years ago

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.

glocci commented 6 years ago

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

furflez commented 6 years ago

@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 commented 6 years ago

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

etc

glocci commented 6 years ago

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

furflez commented 6 years ago

@orhanobut same as @glocci here

orhanobut commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

marcelskotnicki commented 5 years ago

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.