Kalyzee / react-native-gstreamer

React native Gstreamer Ios / Android.
49 stars 20 forks source link

No static or non-static method ... RCTGstPlayerController; #19

Closed mjansrud closed 2 years ago

mjansrud commented 5 years ago

I have built the project successfully in development, but as i try to run the release APK, I get the following error:

 java.lang.NoSuchMethodError: no static or non-static method "Lcom/kalyzee/rctgstplayer/RCTGstPlayerController;.nativeRCTGstInitAndRun(Lcom/kalyzee/rctgstplayer/utils/RCTGstConfiguration;)V"
        at java.lang.Runtime.nativeLoad(Native Method)
        at java.lang.Runtime.doLoad(Runtime.java:1072)
        at java.lang.Runtime.loadLibrary0(Runtime.java:987)
        at java.lang.System.loadLibrary(System.java:1530)
        at com.kalyzee.rctgstplayer.RCTGstPlayerController.<clinit>(RCTGstPlayerController.java:179)
        at com.kalyzee.rctgstplayer.RCTGstPlayer.createViewInstance(RCTGstPlayer.java:31)
        at com.facebook.react.uimanager.ViewManager.createView(ViewManager.java:42)
        at com.facebook.react.uimanager.NativeViewHierarchyManager.createView(NativeViewHierarchyManager.java:205)
        at com.facebook.react.uimanager.UIViewOperationQueue$CreateViewOperation.execute(UIViewOperationQueue.java:152)
        at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.dispatchPendingNonBatchedOperations(UIViewOperationQueue.java:1012)
        at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:983)
        at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29)
        at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:134)
        at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:105)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:872)
        at android.view.Choreographer.doCallbacks(Choreographer.java:686)
        at android.view.Choreographer.doFrame(Choreographer.java:618)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
        at android.os.Handler.handleCallback(Handler.java:751)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6119)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

With line RCTGstPlayerController.java:179 being

System.loadLibrary("rctgstplayer");

Appeciate any help,