I get an error when building Android.

I get an error when building on Android. This is an error that does not occur in Local Preview.
I dont know the cause.

This is the error

[10:56]  
D/AndroidRuntime(32487): Shutting down VM
E/AndroidRuntime(32487): FATAL EXCEPTION: main
E/AndroidRuntime(32487): Process: com.apps.bombdeal, PID: 32487
E/AndroidRuntime(32487): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.apps.bombdeal/com.apps.bombdeal.bombdeal}: java.lang.RuntimeException: Object reference was null
E/AndroidRuntime(32487):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2808)
E/AndroidRuntime(32487):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2873)
E/AndroidRuntime(32487):        at android.app.ActivityThread.access$900(ActivityThread.java:181)
E/AndroidRuntime(32487):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1482)
E/AndroidRuntime(32487):        at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(32487):        at android.os.Looper.loop(Looper.java:145)
E/AndroidRuntime(32487):        at android.app.ActivityThread.main(ActivityThread.java:6145)
E/AndroidRuntime(32487):        at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(32487):        at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(32487):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
E/AndroidRuntime(32487):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
E/AndroidRuntime(32487): Caused by: java.lang.RuntimeException: Object reference was null
E/AndroidRuntime(32487):        at com.apps.bombdeal.ActivityNativeEntryPoints.cppOnCreate(Native Method)
E/AndroidRuntime(32487):        at com.apps.bombdeal.bombdeal.onCreate(bombdeal.java:150)
E/AndroidRuntime(32487):        at android.app.Activity.performCreate(Activity.java:6374)
E/AndroidRuntime(32487):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
E/AndroidRuntime(32487):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2752)
E/AndroidRuntime(32487):        ... 10 more

Hi Jahyun,

Sorry to hear that you are running into issues. Could you tell us what kind of android device you are testing on? Also are you building with Gradle and does running uno clean in the repo before building make any difference?

Hi Jahyun,

Try to remove NativeViewHost in your UX page.

Hi Mehdi,
We’re not aware of NativeViewHost causing any issues like this. If you have experienced any trouble with it then please create a new thread and provide enough information to identify and (ideally) reproduce the issue. :slight_smile: