Runtime Error "android.graphics.Bitmap.getWidth()"

image
How to fix this error?
i cant open my app please help me

A pic of blocks, name of extensions used in your project can

Help Us to Help You

Please give necessary information .So that we can resolve your issue

  • Image of blocks
  • Or Aia

~Regards
Enderman

Multiple chances are there. Cannot predict the exact reason…

Error in apk or aia?

In apk mean, your android version?

Apk mean, Are you using any image?

Did you add width of the component?
If so, Did you set write external storage permission??

Better as said by @UnknownBeast & @Enderman
Share your blocks and ame of the extension you are using

Not sure, may be due to Storage permission
So try to ask the abi e said permission in screen init and try again.

1 Like

Yes, I also think that the problem is with read & write permission.

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

1 Like


Bulls_Hosting_2.aia (292.8 KB)

this is .aia file and screenshoot the blocks

Try this, no error shown

Bulls_Hosting_2.apk (6.9 MB)

Bulls_Hosting_2_1.aia (292.6 KB)