【问题标题】:Is there any solution for Resource not Found Exception resource ID #0x7f070141?Resource not Found Exception resource ID #0x7f070141 有什么解决方案吗?
【发布时间】:2020-09-14 10:11:12
【问题描述】:

App 已经崩溃,正在执行 CustomActivityOnCrash 的 UncaughtExceptionHandler android.content.res.Resources$NotFoundException:资源 ID #0x7f070141

这是发生错误的代码

Bitmap myLogo = ((BitmapDrawable)context.getResources().getDrawable(R.drawable.ic_watermark_image)).getBitmap();

【问题讨论】:

    标签: android exception bitmap


    【解决方案1】:

    你的 ic_watermark_image 不知何故在 drawable 文件夹中丢失了,如果丢失尝试添加它或将其重新导入到 drawable 文件夹中,而不是在 drawable-24 或其他东西中。

    【讨论】:

    猜你喜欢
    • 2017-02-20
    • 1970-01-01
    • 2019-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-02
    • 1970-01-01
    • 2011-11-30
    相关资源
    最近更新 更多