嗨,我在AppsFlyer的logcat simetimes中遇到了下一个异常:
E/AppsFlyer_4.3.6: length=12; regionStart=0; regionLength=13
java.lang.StringIndexOutOfBoundsException: length=12; regionStart=0; regionLength=13
at java.lang.String.startEndAndLength(String.java:298)
at java.lang.String.substring(String.java:1087)
at com.appsflyer.AppsFlyerLib.a(AppsFlyerLib.java:272)
at com.appsflyer.AppsFlyerLib.b(AppsFlyerLib.java:712)
at com.appsflyer.AppsFlyerLib.a(AppsFlyerLib.java:39)
at com.appsflyer.AppsFlyerLib$c.run(AppsFlyerLib.java:1647)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
有人知道logcat中的这个错误吗?这是我的初始化代码:
AppsFlyerLib.getInstance().startTracking(application, BuildConfig.APPS_FLYER_API_KEY);
我用这个来跟踪事件:
AppsFlyerLib.getInstance().trackEvent(mContext, name, params);
这是在4.3.7版本上修复的。它与很短的包裹名称有关。