sensorsdata / sa-sdk-android

神策数据官方 Android 埋点 SDK,是一款轻量级用于 Android 端的数据采集埋点 SDK,包含代码埋点、全埋点、点击图和可视化全埋点功能。全埋点通过配合神策官方 Android 埋点插件来实现,神策数据官方 Android 埋点插件使用字节码插桩(ASM)的技术实现 Android 端的全埋点(无埋点、无码埋点、无痕埋点、自动埋点)。
http://opensource.sensorsdata.cn
Other
1.32k stars 434 forks source link

java.lang.NoSuchMethodError: No static method aspectOf()Lcom/sensorsdata/analytics/android/sdk/aop/RadioGroupOnCheckedChangeAspectj #8

Closed typ0520 closed 7 years ago

typ0520 commented 7 years ago

os: Mac gradle version:3.3 android-gradle-build:2.3.3

classpath 'com.sensorsdata.analytics.android:android-gradle-plugin:1.0.7' compile 'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:1.7.8' 插件也加了 apply plugin: 'com.sensorsdata.analytics.android'

编译正常,运行的时候报下面这个错误 java.lang.NoSuchMethodError: No static method aspectOf()Lcom/sensorsdata/analytics/android/sdk/aop/RadioGroupOnCheckedChangeAspectj; in class Lcom/sensorsdata/analytics/android/sdk/aop/RadioGroupOnCheckedChangeAspectj; or its super classes (declaration of 'com.sensorsdata.analytics.android.sdk.aop.RadioGroupOnCheckedChangeAspectj' appears in /data/app/com.tianxi66.zxgb-1/base.apk:classes2.dex) at com.dx168.zxgb.widget.BottomBarView$1.onCheckedChanged(BottomBarView.java:52) at android.widget.RadioGroup.setCheckedId(RadioGroup.java:174) at android.widget.RadioGroup.access$600(RadioGroup.java:54) at android.widget.RadioGroup$CheckedStateTracker.onCheckedChanged(RadioGroup.java:358) at android.widget.CompoundButton.setChecked(CompoundButton.java:157) at android.widget.CompoundButton.toggle(CompoundButton.java:113) at android.widget.RadioButton.toggle(RadioButton.java:78) at android.widget.CompoundButton.performClick(CompoundButton.java:118) at android.view.View$PerformClick.run(View.java:20341) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:5911) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879)

wangzhzh commented 7 years ago

你是我们的客户吗?

typ0520 commented 7 years ago

是的

wangzhzh commented 7 years ago

具体是哪家客户? 我们可以在客户群里进行沟通,这样方便一些

typ0520 commented 7 years ago

银科的,我没在群里

wangzhzh commented 7 years ago

第四步: 在 project 级别的 gradle.properties 中添加如下配置:

android.enableBuildCache=false

这一步你做了吗?

typ0520 commented 7 years ago

我只是做测试,没有加这个,我试试看