我是Android编程的新手。我的应用在OPPO F3 Plus这样的少数手机中出现闪屏后崩溃,但在Samsung Note 8,J7,MotoG上运行。我不知道原因。这是我的调试控制台的副本。
I/Choreographer: Skipped 4 frames! The application may be doing too much work on its main thread.
W/ResourceType: Failure getting entry for 0x7f08008a (t=7 e=138) (error -75)
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.hu_tech.sat.loan, PID: 17400
android.content.res.Resources$NotFoundException: Resource ID #0x7f08008a
at android.content.res.Resources.getValue(Resources.java:1429)
at android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:331)
at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:198)
at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:191)
at android.support.v7.content.res.AppCompatResources.getDrawable(AppCompatResources.java:102)
at android.support.v7.view.menu.MenuItemImpl.getIcon(MenuItemImpl.java:505)
at android.support.design.internal.NavigationMenuItemView.initialize(NavigationMenuItemView.java:114)
at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onBindViewHolder(NavigationMenuPresenter.java:442)
at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.onBindViewHolder(NavigationMenuPresenter.java:361)
at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6781)
at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6823)
at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5752)
at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6019)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5858)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5854)
at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2230)
at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1557)
at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612)
at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641)
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4194)
at android.view.View.layout(View.java:16707)
at android.view.ViewGroup.layout(ViewGroup.java:5490)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at android.view.View.layout(View.java:16707)
at android.view.ViewGroup.layout(ViewGroup.java:5490)
at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1255)
at android.view.View.layout(View.java:16707)
at android.view.ViewGroup.layout(ViewGroup.java:5490)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at android.view.View.layout(View.java:16707)
at android.view.ViewGroup.layout(ViewGroup.java:5490)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
at android.view.View.layout(View.java:16707)
at android.view.ViewGroup.layout(ViewGroup.java:5490)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at android.view.View.layout(View.java:16707)
at android.view.ViewGroup.layout(ViewGroup.java:5490)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
at android.view.View.layout(View.java:16707)
at android.view.ViewGroup.layout(ViewGroup.java:5490)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindo
I/Process: Sending signal. PID: 17400 SIG: 9
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'
Logcat错误如下:
10-28 22:38:37.625 1225-3722 /? E / InputReader:电源键来了, notifyKey-eventTime = 19042493462000,deviceId = 4,source = 0x101, policyFlags = 0x0,action = 0x0,flags = 0x8,keyCode = 0x1a,scanCode = 0x74, metaState = 0x0,downTime = 19042493462000 10-28 22:38:37.638 1225-3722 /? E / QCOM PowerHAL:无效的提示ID。 10-28 22:38:37.665 1225-3735 /? E / native:假暂停 10-28 22:38:37.666 12964-12964 /? E / wpa_supplicant:wpa_driver_nl80211_enable_filter:启用:0,过滤器cnt:12 10-28 22:38:37.669 614-3656 /? E / bt_a2dp_hw:adev_set_parameters:错误:即使流输出为null也会调用set参数 10-28 22:38:37.768 1225-3722 /? E / InputReader:电源键到来,notifyKey-eventTime = 19042638180000,deviceId = 4,source = 0x101, policyFlags = 0x0,action = 0x1,flags = 0x8,keyCode = 0x1a,scanCode = 0x74, metaState = 0x0,downTime = 19042493462000 10-28 22:38:37.780 1225-4727 /? E / LocSvc_libulp:W / Loc HAL握手尚未发生... 10-28 22:38:37.782 1225-1241 /? E / qti_sensors_hal:激活:句柄为53,en为1 10-28 22:38:37.785 1225-1241 /? E / qti_sensors_hal:阈值启用,handle = 53,en = 1 10-28 22:38:37.819 21550-21550 /? E / CrashHelper:使用hockeyapp ID:ca4907e7617f425f31e0cf4f9a66e99e 10-28 22:38:37.835 614-21576 /? E / ACDB-LOADER:错误:ACDB AudProc卷返回= -19 10-28 22:38:37.835 614-21576 /? E / ACDB-LOADER:错误:返回ACDB AFE = -19 10-28 22:38:37.931 1225-3702 /? E / qti_sensors_hal:阈值处理Ind:代理数据:data [0] = 5.000305,data [1] = 99.000000, 距离= 5.000305,时间戳= 948790718 10-28 22:38:37.932 1225-4534 /? E / qti_sensors_hal:激活:句柄为53,en为0 10-28 22:38:37.932 1225-4534 /? E / qti_sensors_hal:阈值启用,handle = 53,en = 0 10-28 22:38:38.277 21550-21550 /? E / CrashHelper:使用hockeyapp ID:ca4907e7617f425f31e0cf4f9a66e99e 10-28 22:38:38.278 21550-21550 /? E / CrashHelper:使用hockeyapp ID:ca4907e7617f425f31e0cf4f9a66e99e 10-28 22:38:38.278 21550-21550 /? E / HockeyApp:已启用NativeCrashManager。更新监听器 10-28 22:38:38.279 21550-21550 /? A /调整:生产:调整在生产模式下运行。仅将此设置用于 您要发布。如果您想将环境设置为
sandbox
测试您的应用! 10-28 22:38:38.292 21550-21550 /? E / CrashHelper:使用hockeyapp ID:ca4907e7617f425f31e0cf4f9a66e99e 10-28 22:38:38.370 21550-21652 /? E / ActivityThread:无法找到com.facebook.katana.provider.AttributionIdProvider的提供者信息 10-28 22:38:38.374 21550-21550 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:39.083 1225-3735 /? E / WifiNetworkAvailable:无法启用wifi。 10-28 22:38:39.123 21531-21531 / com.hu_tech.sat.loan E / AndroidRuntime:FATAL EXCEPTION:main 流程:com.hu_tech.sat.loan,PID:21531 android.content.res.Resources $ NotFoundException:资源ID#0x7f08008a 在android.content.res.Resources.getValue(Resources.java:1429) 在android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:331) 在android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:198) 在android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:191) 在android.support.v7.content.res.AppCompatResources.getDrawable(AppCompatResources.java:102) 在android.support.v7.view.menu.MenuItemImpl.getIcon(MenuItemImpl.java:505) 在android.support.design.internal.NavigationMenuItemView.initialize(NavigationMenuItemView.java:114) 在android.support.design.internal.NavigationMenuPresenter $ NavigationMenuAdapter.onBindViewHolder(NavigationMenuPresenter.java:442) 在android.support.design.internal.NavigationMenuPresenter $ NavigationMenuAdapter.onBindViewHolder(NavigationMenuPresenter.java:361) 在android.support.v7.widget.RecyclerView $ Adapter.onBindViewHolder(RecyclerView.java:6781) 在android.support.v7.widget.RecyclerView $ Adapter.bindViewHolder(RecyclerView.java:6823) 在android.support.v7.widget.RecyclerView $ Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5752) 在android.support.v7.widget.RecyclerView $ Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6019) 在android.support.v7.widget.RecyclerView $ Recycler.getViewForPosition(RecyclerView.java:5858) 在android.support.v7.widget.RecyclerView $ Recycler.getViewForPosition(RecyclerView.java:5854) 在android.support.v7.widget.LinearLayoutManager $ LayoutState.next(LinearLayoutManager.java:2230) 在android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1557) 在android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517) 在android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612) 在android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924) 在android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641) 在android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4194) 在android.view.View.layout(View.java:16707) 在android.view.ViewGroup.layout(ViewGroup.java:5490) 在android.widget.FrameLayout.layoutChildren(FrameLayout.java:336) 在android.widget.FrameLayout.onLayout(FrameLayout.java:273) 在android.view.View.layout(View.java:16707) 在android.view.ViewGroup.layout(ViewGroup.java:5490) 在android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1255) 在android.view.View.layout(View.java:16707) 在android.view.ViewGroup.layout(ViewGroup.java:5490) 在android.widget.FrameLayout.layoutChildren(FrameLayout.java:336) 在android.widget.FrameLayout.onLayout(FrameLayout.java:273) 在android.view.View.layout(View.java:16707) 在android.view.ViewGroup.layout(ViewGroup.java:5490) 在android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743) 在android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586) 在android.widget.LinearLayout.onLayout(LinearLayout.java:1495) 在android.view.View.layout(View.java:16707) 在android.view.ViewGroup.layout(ViewGroup.java:5490) 在android.widget.FrameLayout.layoutChildren(FrameLayout.java:336) 在android.widget.FrameLayout.onLayout(FrameLayout.java:273) 在android.view.View.layout(View.java:16707) 在android.view.ViewGroup.layout(ViewGroup.java:5490) 在android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743) 在android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586) 在android.widget.LinearLayout.onLayout(LinearLayout.java:1495) 在android.view.View.layout(View.java:16707) 在android.view.ViewGroup.layout(ViewGroup.java:5490) 在android.widget.FrameLayout.layoutChildren(FrameLayout.java:336) 在android.widget.FrameLayout.onLayout(FrameLayout.java:273) 在com.android.internal.policy.PhoneWindow $ DecorView.onLayout(PhoneWindo 10-28 22:38:39.208 5157-7697 /? E / ErrorSaveTask:/data/system/dropbox/data_app_crash@1540746519201.txt.gz未记录 找到了! 10-28 22:38:39.208 5157-7697 /? E / ErrorSaveTask:verifyError():发生时间为空或应用名称为空,返回false 10-28 22:38:39.233 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:39.241 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:39.241 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:39.242 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:39.242 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:39.245 4618-5599 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:41.322 1225-1330 /? E / BatteryStatsService:Wifi处于禁用状态 10-28 22:38:41.383 5157-7697 /? E / ActivityThread:无法找到com.nearme.feedbackservice.provider.data的提供者信息 10-28 22:38:41.383 5157-7697 /? E / ErrorSaveTask:游标为空! 10-28 22:38:41.386 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:41.409 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:41.412 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:41.413 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:41.418 4618-4618 /? E /宗地:此处不支持读取NULL字符串。 10-28 22:38:48.079 1225-1359 /? E / QCOM PowerHAL:无法获取锁定。 10-28 22:38:48.130 1225-3735 /? E / native:确实暂停 10-28 22:38:48.137 12964-12964 /? E / wpa_supplicant:wpa_driver_nl80211_enable_filter:启用:1,过滤器cnt:12 10-28 22:38:48.159 614-614 /? E / bt_a2dp_hw:adev_set_parameters:错误:即使流输出为null也会调用set参数 10-28 22:38:48.299 4335-21578 /? E / AudioRecord-JNI:在AudioRecord本机读取期间发生错误-4 10-28 22:38:48.300 4335-21578 /? E / AudioProvider:audioRecord读取失败 com.google.android.apps.gsa.shared.exception.GsaIOException:错误代码:393221 |没开 在com.google.android.libraries.assistant.hotword.a.a(SourceFile:46) 位于com.google.android.libraries.assistant.hotword.b.run(未知来源) 位于com.google.android.libraries.gsa.runner.a.b.run(来源不明) 在com.google.android.apps.gsa.shared.util.concurrent.b.ci.bqX(SourceFile:2) 在com.google.android.apps.gsa.shared.util.concurrent.b.ch.run(SourceFile:2) 在com.google.android.apps.gsa.shared.util.concurrent.b.g.run(未知 资源) 在com.google.android.apps.gsa.shared.util.concurrent.b.bk.run(SourceFile:3) 在com.google.android.apps.gsa.shared.util.concurrent.b.bk.run(SourceFile:3) 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:588) 在java.lang.Thread.run(Thread.java:818) 在com.google.android.apps.gsa.shared.util.concurrent.b.m.run(SourceFile:6) 10-28 22:38:50.475 31037-21719 /? E / HttpServerThread:初始化连接线程时发生I / O错误:套接字已关闭 10-28 22:38:50.475 31037-21719 /? E / HttpServerThread:线程被中断!!!
答案 0 :(得分:1)
根据您的logcat和您的错误,活动找不到您的资源文件,并且此错误发生在setContentView方法的onCreate方法上。 因此有两种可能性:
您的xml图层文件中有问题,由于这个问题,android无法正确解析xml。
它在您的应用程序中生成文件,并且文件可能制作不正确,首先解决此问题,然后生成并生成它。