GrenderG / Toasty

The usual Toast, but with steroids 💪
GNU Lesser General Public License v3.0
6.57k stars 809 forks source link

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

Open DineshNeupane opened 5 years ago

DineshNeupane commented 5 years ago

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.

GrenderG commented 5 years ago

You can exclude Toasty from that.

DineshNeupane commented 5 years ago

How do I do that? Excluding it from proguard?

GrenderG commented 5 years ago

Yes.

MarkUnlink commented 3 years ago

Did you ever solve this?