为了账号安全,请及时绑定邮箱和手机立即绑定

error inflating class null

E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.proclassmates.ganandroid, PID: 29673

    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.proclassmates.ganandroid/com.proclassmates.ganandroid.tabfragment.WithTabActivity}: android.view.InflateException: Binary XML file line #29 in com.proclassmates.ganandroid:layout/activity_withtab: Binary XML file line #29 in com.proclassmates.ganandroid:layout/activity_withtab: Error inflating class null

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

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

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

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

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

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

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

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

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

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

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

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

     Caused by: android.view.InflateException: Binary XML file line #29 in com.proclassmates.ganandroid:layout/activity_withtab: Binary XML file line #29 in com.proclassmates.ganandroid:layout/activity_withtab: Error inflating class null

     Caused by: android.view.InflateException: Binary XML file line #29 in com.proclassmates.ganandroid:layout/activity_withtab: Error inflating class null

     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

        at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1054)

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

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

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

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

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

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

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

        at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)

        at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)

        at com.proclassmates.ganandroid.tabfragment.WithTabActivity.onCreate(WithTabActivity.java:45)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


正在回答

1 回答

Error inflating class null

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
ViewPager+Tab特效实现微信主界面
  • 参与学习       6387    人
  • 解答问题       35    个

综合利用ViewPager、Tab等诸多核心技术实现微信主界面的框架搭建任务

进入课程

error inflating class null

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信