AppsFlyerLib StringIndexOutOfBoundsException

时间:2016-05-10 11:44:35

标签: android appsflyer appsflyer-android-sdk

您好我在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);

1 个答案:

答案 0 :(得分:1)

这是在4.3.7版本上修复的。它与非常短的包名有关。