Android~记录material,35岁之后找不到工作怎么办

2019-12-30 16:50:41.586 10184-10184/? E/AndroidRuntime: FATAL EXCEPTION: main

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ut.smartcook/com.ut.smartcook.MainActivity}:

android.view.InflateException: Binary XML file line

#24: Binary XML file line #24: Error inflating class com.google.android.material.tabs.TabLayout

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3021)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3156)

at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1864)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loop(Looper.java:205)

at android.app.ActivityThread.main(ActivityThread.java:6991)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:884)

Caused by: android.view.InflateException: Binary XML file line

#24: Binary XML file line #24: Error inflating class com.google.android.material.tabs.TabLayout

Caused by: android.view.InflateException: Binary XML file line

#24: Error inflating class com.google.android.material.tabs.TabLayout

Caused by: java.lang.reflect.InvocationTargetException

at java.lang.reflect.Constructor.newInstance0(Native Method)

at java.lang.reflect.Constructor.newInstance(Constructor.java:343)

at android.view.LayoutInflater.createView(LayoutInflater.java:647)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

at android.view.LayoutInflater.inflate(LayoutInflater.java:515)

at android.view.LayoutInflater.inflate(LayoutInflater.java:423)

at android.view.LayoutInflater.inflate(LayoutInflater.java:374)

at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:435)

at android.app.Activity.setContentView(Activity.java:2777)

at com.ut.smartcook.MainActivity.onCreate(MainActivity.java:34)

at android.app.Activity.performCreate(Activity.java:7159)

at android.app.Activity.performCreate(Activity.java:7150)

at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3001)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3156)

at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1864)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loop(Looper.java:205)

at android.app.ActivityThread.main(ActivityThread.java:6991)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:884)

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method

‘int android.content.res.ColorStateList.getDefaultColor()’ on a null object reference

at com.google.android.material.tabs.TabLayout.(TabLayout.java:548)

at com.google.android.material.tabs.TabLayout.(TabLayout.java:461)

at java.lang.reflect.Constructor.newInstance0(Native Method)

at java.lang.reflect.Constructor.newInstance(Constructor.java:343)

at android.view.LayoutInflater.createView(LayoutInflater.java:647)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:866)

at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)

at android.view.LayoutInflater.inflate(LayoutInflater.java:515)

at android.view.LayoutInflater.inflate(LayoutInflater.java:423)

at android.view.LayoutInflater.inflate(LayoutInflater.java:374)

at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:435)

at android.app.Activity.setContentView(Activity.java:2777)

at com.ut.smartcook.MainActivity.onCreate(MainActivity.java:34)

at android.app.Activity.performCreate(Activity.java:7159)

at android.app.Activity.performCreate(Activity.java:7150)

at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3001)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3156)

at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1864)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loop(Looper.java:205)

at android.app.ActivityThread.main(ActivityThread.java:6991)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)

最后看一下《Android框架体系架构(高级UI+FrameWork源码)》学习需要的所有知识点的思维导图。在刚刚那份学习笔记里包含了下面知识点所有内容!文章里已经展示了部分!如果你正愁这块不知道如何学习或者想提升学习这块知识的学习效率,那么这份学习笔记绝对是你的秘密武器!

AB%98%E8%96%AA%EF%BC%81.md)学习需要的所有知识点的思维导图。在刚刚那份学习笔记里包含了下面知识点所有内容!文章里已经展示了部分!如果你正愁这块不知道如何学习或者想提升学习这块知识的学习效率,那么这份学习笔记绝对是你的秘密武器!

[外链图片转存中…(img-7mbkONwZ-1727084729313)]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值