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 android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)’ on a null object reference JS: android.support.v4.content.FileProvider.parsePathStrategy(FileProvider.java:583) JS: android.support.v4.content.FileProvider.getPathStrategy(FileProvider.java:557) JS: android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:399) JS: com.tns.Runtime.callJSMethodNative(Native Method) JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088) JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:970) JS: com.tns.Runtime.callJSMethod(Runtime.java:957) JS: com.tns.Runtime.callJSMethod(Runtime.java:941) JS: com.tns.Runtime.callJSMethod(Runtime.java:933) JS: com.tns.gen.java.lang.Object_frnal_ts_helpers_l58_c38__ClickListenerImpl.onClick(Object_frnal_ts_helpers_l58_c38__ClickListenerImpl.java:12) JS: android.view.View.performClick(View.java:4799) JS: android.view.View$PerformClick.run(View.java:19938) JS: android.os.Handler.handleCallback(Handler.java:739) JS: android.os.Handler.dispatchMessage(Handler.java:95) JS: android.os.Looper.loop(Looper.java:135) JS: android.app.ActivityThread.main(ActivityThread.java:5384) JS: java.lang.reflect.Method.invoke(Native Method) JS: java.lang.reflect.Method.invoke(Method.java:372) JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907) JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:702)
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!
コメントを残す