Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

后端 未结 6 801
忘了有多久
忘了有多久 2021-02-07 01:46

I have BitmapScalingHelper.java:

public class BitmapScalingHelper
{
    public static Bitmap decodeResource(Resources res, int resId, int dstWidth, int dstHeigh         


        
6条回答
  •  半阙折子戏
    2021-02-07 02:14

    This error can also be caused if you use a poorly created library jar, and have minifyEnabled set to true on your gradle.

提交回复
热议问题