java.lang.IllegalStateException: View 'tv_lucky_treasure' with ID 2131297597 for field 'tvluckytreas

解决办法 删除ButterKnife 生成到build 文件

05-17 18:40:16.103 27164 27164 E CrashHandler: UncaughtException detected: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sdbz.dbank/com.sdbz.dbank.ui.bank.YuBaoActivity}: java.lang.IllegalStateException: View 'tv_lucky_treasure' with ID 2131297597 for field 'tvluckytreasure' was of the wrong type. See cause for more info.
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3300)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3484)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:86)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2123)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.os.Handler.dispatchMessage(Handler.java:109)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.os.Looper.loop(Looper.java:207)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.ActivityThread.main(ActivityThread.java:7470)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at java.lang.reflect.Method.invoke(Native Method)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
05-17 18:40:16.103 27164 27164 E CrashHandler: Caused by: java.lang.IllegalStateException: View 'tv_lucky_treasure' with ID 2131297597 for field 'tvluckytreasure' was of the wrong type. See cause for more info.
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at butterknife.internal.Utils.castView(Utils.java:109)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at butterknife.internal.Utils.findRequiredViewAsType(Utils.java:101)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at com.sdbz.dbank.ui.bank.YuBaoActivity_ViewBinding.<init>(YuBaoActivity_ViewBinding.java:67)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at java.lang.reflect.Constructor.newInstance0(Native Method)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at butterknife.ButterKnife.bind(ButterKnife.java:171)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at butterknife.ButterKnife.bind(ButterKnife.java:100)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at com.sdbz.dbank.ui.bank.YuBaoActivity.onCreate(YuBaoActivity.java:673)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.Activity.performCreate(Activity.java:7436)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.Activity.performCreate(Activity.java:7426)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1286)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3279)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	... 11 more
05-17 18:40:16.103 27164 27164 E CrashHandler: Caused by: java.lang.ClassCastException: Cannot cast q.rorbin.badgeview.QBadgeView$BadgeContainer to android.widget.TextView
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at java.lang.Class.cast(Class.java:2441)
05-17 18:40:16.103 27164 27164 E CrashHandler: 	at butterknif
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值