Toasty icon indicating copy to clipboard operation
Toasty copied to clipboard

NullPointerException at ToastyUtils (minify enabled) Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.content.Context.getDrawable(int)' on a null object reference

Open DineshNeupane opened this issue 6 years ago • 4 comments

I am getting a NPM at ToastyUtils because of null reference to getDrawable method. My initial thought is because I've enabled minify and remove unwanted resources, it is causing problem. Is there any workaround for this? I am not willing to disable minify.

DineshNeupane avatar Jun 05 '19 09:06 DineshNeupane

You can exclude Toasty from that.

GrenderG avatar Jun 05 '19 14:06 GrenderG

How do I do that? Excluding it from proguard?

DineshNeupane avatar Jun 07 '19 06:06 DineshNeupane

Yes.

GrenderG avatar Jun 07 '19 15:06 GrenderG

Did you ever solve this?

MarkUnlink avatar Oct 29 '20 10:10 MarkUnlink