gitofleonardo / AnyDebug

ViewEditor/视图编辑器
https://github.com/gitofleonardo/AnyDebug
GNU General Public License v3.0
323 stars 21 forks source link

2.0.6 MIUI14 Android13崩溃 #30

Open ytdttj opened 1 year ago

ytdttj commented 1 year ago

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hhvvg.anydebug/com.hhvvg.anydebug.ui.MainActivity}: android.view.InflateException: Binary XML file line #34 in com.hhvvg.anydebug:layout/activity_main: Binary XML file line #34 in com.hhvvg.anydebug:layout/activity_main: Error inflating class androidx.fragment.app.FragmentContainerView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3822) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) 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:2386) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:210) at android.os.Looper.loop(Looper.java:299) at android.app.ActivityThread.main(ActivityThread.java:8252) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954) Caused by: android.view.InflateException: Binary XML file line #34 in com.hhvvg.anydebug:layout/activity_main: Binary XML file line #34 in com.hhvvg.anydebug:layout/activity_main: Error inflating class androidx.fragment.app.FragmentContainerView Caused by: android.view.InflateException: Binary XML file line #34 in com.hhvvg.anydebug:layout/activity_main: Error inflating class androidx.fragment.app.FragmentContainerView Caused by: java.lang.NullPointerException: (...) must not be null at com.hhvvg.anydebug.ui.fragment.SettingsFragment.e0(Unknown Source:8) at com.hhvvg.anydebug.ui.fragment.SettingsFragment.d0(SourceFile:15) at androidx.preference.b.A(SourceFile:3) at com.hhvvg.anydebug.ui.fragment.SettingsFragment.A(Unknown Source:0) at androidx.fragment.app.d0.e(SourceFile:3) at androidx.fragment.app.d0.k(SourceFile:9) at androidx.fragment.app.x.D(SourceFile:23) at androidx.fragment.app.x.X(Unknown Source:91) at androidx.fragment.app.x.B(SourceFile:4) at androidx.fragment.app.x.v(SourceFile:3) at androidx.fragment.app.x.k(SourceFile:2) at androidx.fragment.app.n.A(SourceFile:2) at androidx.navigation.fragment.NavHostFragment.A(SourceFile:41) at androidx.fragment.app.d0.e(SourceFile:3) at androidx.fragment.app.d0.k(SourceFile:9) at androidx.fragment.app.x.D(SourceFile:23) at androidx.fragment.app.x.X(Unknown Source:91) at androidx.fragment.app.x.C(Unknown Source:31) at androidx.fragment.app.a.i(SourceFile:2) at androidx.fragment.app.FragmentContainerView.(SourceFile:6) at androidx.fragment.app.v.onCreateView(Unknown Source:16) at androidx.fragment.app.q.onCreateView(SourceFile:4) at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1098) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1026) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:990) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1152) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1113) at android.view.LayoutInflater.inflate(LayoutInflater.java:711) at android.view.LayoutInflater.inflate(LayoutInflater.java:548) at com.hhvvg.anydebug.ui.MainActivity$a.c(SourceFile:2) at q4.f.getValue(Unknown Source:20) at com.hhvvg.anydebug.ui.MainActivity.onCreate(SourceFile:1) at android.app.Activity.performCreate(Activity.java:8516) at android.app.Activity.performCreate(Activity.java:8480) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1418) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3803) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) 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:2386) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:210) at android.os.Looper.loop(Looper.java:299) at android.app.ActivityThread.main(ActivityThread.java:8252) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)

huaji23 commented 2 months ago

+1