Unable to load tag handler class

看一下.tld文件的<tag-class>属性是否和自定义标签类一致
try { Class<?> cls = null; cls = context.getClassLoader().loadClass(clsName); mFactory = (SystemUIFactory) cls.newInstance(); mFactory.init(context, fromTest); } catch (Throwable t) { Log.w(TAG, "Error creating SystemUIFactory component: " + clsName, t); throw new RuntimeException(t); }中如何防止出现以下错误:java.lang.RuntimeException: Unable to create application com.android.systemui.SystemUIApplication: java.lang.RuntimeException: java.lang.IllegalStateException: Replacing existing organizer currently unsupported at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6882) at android.app.ActivityThread.access$1500(ActivityThread.java:265) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2122) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:232) at android.os.Looper.loop(Looper.java:334) at android.app.ActivityThread.main(ActivityThread.java:7985) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013) Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Replacing existing organizer currently unsupported at com.android.systemui.SystemUIFactory.createFromConfig(SystemUIFactory.java:77) at com.android.systemui.SystemUIFactory.createFromConfig(SystemUIFactory.java:56) at com.android.systemui.SystemUIAppComponentFactory.lambda$instantiateApplicationCompat$0(SystemUIAppComponentFactory.java:68) at com.android.systemui.SystemUIAppComponentFactory.$r8$lambda$zKKm1nezMgurYfpE42JHdUJUlZ0(Unknown Source:0) at com.android.systemui.SystemUIAppComponentFactory$$ExternalSyntheticLambda1.onContextAvailable(Unknown Source:2) at com.android.systemui.SystemUIApplication.onCreate(SystemUIApplication.java:83) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1223) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6877)
最新发布
06-06
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值