tracklytics icon indicating copy to clipboard operation
tracklytics copied to clipboard

Not entering in EventSubscriber or EventLogListener

Open furflez opened this issue 7 years ago • 10 comments

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 avatar Mar 04 '18 18:03 furflez

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

glocci avatar Mar 13 '18 14:03 glocci

@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

furflez avatar Mar 13 '18 18:03 furflez

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

  • Are you using kotlin?
  • Android studio version

etc

orhanobut avatar Apr 03 '18 06:04 orhanobut

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

glocci avatar Apr 04 '18 07:04 glocci

@orhanobut same as @glocci here

furflez avatar Apr 04 '18 11:04 furflez

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?

orhanobut avatar Apr 07 '18 03:04 orhanobut

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)

dened avatar May 21 '18 04:05 dened

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 avatar Aug 23 '18 20:08 furflez

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

furflez avatar Sep 17 '18 19:09 furflez

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.

marcelskotnicki avatar Jul 24 '19 12:07 marcelskotnicki