我在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)
我奇怪的是xposed
和XposedBridge
。我查找了它的含义,并弄清了它在植根设备后更改其行为或UI所使用的东西。选中InheritedWidget
是否也值得对应植根的设备?我想我可以忽略它。您对此有何看法,是否有解决方案。我该怎么办?
答案 0 :(得分:0)
如何修复
由android.content.res.Resources $ NotFoundException引起 找不到资源ID#0x7f081080
在您的项目中搜索生成的rescoureid“ 0x7f081080”(可能是一些... /生成/.../R.java),它将把missing-resource-ID转换为symbolic-id
即
public static final int my_image_id=0x7f081080;
然后再次搜索您的符号ID,您可能会在其中找到sind xml-layout-file或一些使用该资源的Java代码
下一步做什么取决于使用资源的代码