-1

App has crashed, executing CustomActivityOnCrash's UncaughtExceptionHandler android.content.res.Resources$NotFoundException: Resource ID #0x7f070141

this is the code where error occers

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

1 Answers1

0

Somehow your ic_watermark_image is missing in the drawable folder, if missing try to add it or re-import it into drawable folder, not in drawable-24 or something.

  • Try to follow this solution link:https://stackoverflow.com/questions/3035692/how-to-convert-a-drawable-to-a-bitmap Like: Bitmap icon = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon_resource); – Md. Rabiul Ali Sarker Sep 19 '20 at 05:18