java.lang.IllegalArgumentException: either category or name must be provided. 和集成的SDK冲突闪退

  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mujirenben.liangchenbufu/com.android.sdklibrary.view.HomeActivity}: java.lang.IllegalArgumentException: either category or name must be provided.
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2854)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2929)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1618)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:171)
        at android.app.ActivityThread.main(ActivityThread.java:6699)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:246)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
     Caused by: java.lang.IllegalArgumentException: either category or name must be provided.
        at com.segment.analytics.Analytics.screen(Analytics.java:803)
        at com.segment.analytics.Analytics.screen(Analytics.java:764)
        at com.segment.analytics.Analytics.recordScreenViews(Analytics.java:561)
        at com.segment.analytics.Analytics$3.onActivityStarted(Analytics.java:318)
        at android.app.Application.dispatchActivityStarted(Application.java:212)
        at android.app.Activity.onStart(Activity.java:1271)
已邀请:

、、习惯'℡

赞同来自:

public void screen(@Nullable final String category, @Nullable final String name, @Nullable final Properties properties, @Nullable final Options options) { this.assertNotShutdown(); if (Utils.isNullOrEmpty(category) && Utils.isNullOrEmpty(name)) { throw new IllegalArgumentException("either category or name must be provided."); } else { this.analyticsExecutor.submit(new Runnable() { public void run() {
name=“” 获取不到名字 怎么办
 

要回复问题请先登录注册

知识价值的认可,源自您的赞赏

扫描二维码,你的支付将由imGeek代收后转给对方

×