nativescript-videorecorder got a error when using android

「nativescript-videorecorder got a error when using android」のアイキャッチ画像

I installed nativescript-videorecorder to record movie, but unfortunately I spent all day….

So I wanna share how to fix this problem.

Here is the error message below.I got this error after use the function from nativescript-videorecorder.

JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
JS: Error: java.lang.NullPointerException: Attempt to invoke virtual method ‘android.content.res.XmlResourceParser, java.lang.String)’ on a null object reference
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(
JS:     com.tns.Runtime.callJSMethodImpl(
JS:     com.tns.Runtime.callJSMethod(
JS:     com.tns.Runtime.callJSMethod(
JS:     com.tns.Runtime.callJSMethod(
JS:     android.view.View.performClick(
JS:     android.view.View$
JS:     android.os.Handler.handleCallback(
JS:     android.os.Handler.dispatchMessage(
JS:     android.os.Looper.loop(
JS:     java.lang.reflect.Method.invoke(Native Method)
JS:     java.lang.reflect.Method.invoke(

How to solve is quite simple.
It is to install nativescript-camera.

Here is code for your terminal.

$  tns plugin add nativescript-camera

Why I figured out to solve this problem? That’s why I installed nativescript-camera at first.
After that I erased it that I noticed I didn’t use that library.

I just started English blog to share error blog.
I’m sorry if I have wrong point!
Hope you solve this error! Thanks!