I made spotlights in my app, so when I’m using the app through kodular companion it works perfectly fine. But when I compile the app, it gives me this error whenever I open it.
java.lang.NullPointerException: Attempt to invoke virtual method ‘android.view.View com.google.appinventor.components.runtime.AndroidViewComponent.getView()’ on a null object reference
at com.google.appinventor.components.runtime.MakeroidSpotlight.ShowSpotlight(SourceFile:406)
at com.google.appinventor.components.runtime.MakeroidSpotlight.onOrientationChange(SourceFile:86)
at com.google.appinventor.components.runtime.Form.ScreenOrientationChanged(SourceFile:1068)
at com.google.appinventor.components.runtime.Form$1.run(SourceFile:608)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8319)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1038)
Any help?