I have an issue which I am seriously struggling to debug. (First app and first post here btw)
The app I'm trying to develop is a simple soundboard to get me used to the App Inventor. The app had 8 images, 1 sound file, 3 buttons, 3 tables and 3 blocks of code initially and it worked perfectly fine via the Wifi companion app. When I exported the app to an .apk file, the app installed ok on my phone (Samsung Galaxy S7 Edge running Android 7.0) but when I clicked the app icon to run it, a white screen is displayed as if the app is going to launch but then an error appears saying says "Soundboard keeps stopping" and the only option is to "Close App" (screenshot and .apk attached). I am not sure why this is happening?
I removed all of the media files, buttons and tables (except 1) as Gooling indicated that they can cause issues due to sizing etc, but the issue is still present. I have attached the .aia file of my current form of the app which only has a single text label on the screen in designer and no blocks of code but the issue is still present.
I have taken a logcat file of me running the app and capturing the failure (attached). I can see the line:
01-17 14:22:44.648 2990 2990 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
which seems like it is the point of failure, but I cannot understand what this means (I am self taught in Python but don't know any Java) nor do I know what I can try to fix it...
Please can someone help me with this? I am really struggling to understand the error and am keen to continue learning. If you need any more information please let me know
apk file was removed. Posting apk files in this Forum is prohibited as a security issue. You are welcome to post block images and aia files.