我在 Crashlytics 中收到了这个错误报告。

Fatal Exception: java.lang.RuntimeException
Unable to start activity ComponentInfo{com.example/com.example.view.main.MainActivity}: android.view.InflateException: Binary XML file line #32: Binary XML file line #32: Error inflating class ImageView

android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2665)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2726)
android.app.ActivityThread.-wrap12 (ActivityThread.java)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1477)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6119)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:886)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)
de.robv.android.xposed.XposedBridge.main (XposedBridge.java:107)

Caused by android.view.InflateException
Binary XML file line #32: Binary XML file line #32: Error inflating class ImageView

Caused by android.view.InflateException
Binary XML file line #32: Error inflating class ImageView

Caused by android.content.res.Resources$NotFoundException
Drawable (missing name) with resource ID #0x7f081080

Caused by android.content.res.Resources$NotFoundException
Unable to find resource ID #0x7f081080

android.content.res.ResourcesImpl.getResourceName (ResourcesImpl.java:228)
android.view.LayoutInflater.inflate (LayoutInflater.java:518)
de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative (XposedBridge.java)
de.robv.android.xposed.XposedBridge.handleHookedMethod (XposedBridge.java:360)
android.view.LayoutInflater.inflate (LayoutInflater.java)
androidx.databinding.DataBindingUtil.inflate (DataBindingUtil.java:95)
com.example.view.main.fragment.InitFragment.onCreateView (InitFragment.java:137)
androidx.fragment.app.Fragment.onCreateAnimator (Fragment.java:8)
androidx.appcompat.app.AppCompatActivity.onStart (AppCompatActivity.java:178)
com.example.view.main.MainActivity.onStart (MainActivity.java:147)
android.app.Instrumentation.callActivityOnStart (Instrumentation.java:1248)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)
de.robv.android.xposed.XposedBridge.main (XposedBridge.java:107)

我觉得奇怪的是 xposedXposedBridge 。我寻找它是什么,我发现它是在 Root 设备以改变其行为或 UI 后使用的。检查 here

是否也值得对应根设备?我想我可以忽略它。你有什么意见,如果有解决这个问题的办法。我该怎么做?

最佳答案

怎么修



在您的项目中搜索生成的 rescoureid“0x7f081080”(可能是一些 .../generated/.../R.java),它将把缺少的资源 ID 转换为符号 ID

IE。

public static final int my_image_id=0x7f081080;

然后再次搜索您项目的符号 ID,您可能会在其中找到 sind xml-layout-file 或一些使用该资源的 Java 代码

接下来做什么取决于使用资源的代码

关于android - XposedBridge 崩溃报告,如何修复?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/56930569/

10-09 00:04