-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.wonderkiln.camerakit.CameraView #492
Comments
0.13.5 have the same issue |
I found the reason, this issue is fixed, that because the conflict between camerakit and react-native-camera, hope this can have help for other people |
@jcsofts that's great news! Thanks for bringing this issue to our attention. |
my app is crashing as soon as it is launched due to inflating pronlem of wonderkiln camerakit how am i supposed to correct this error 2020-05-18 12:20:07.885 11795-11795/com.google.android.cameraview.demo E/AndroidRuntime: FATAL EXCEPTION: main |
implementation 'com.wonderkiln:camerakit:0.13.4'
2019-01-26 19:54:15.087 24153-24153/com.yuserapp E/unknown:ReactNative: Exception in native call
android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.wonderkiln.camerakit.CameraView
Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.wonderkiln.camerakit.CameraView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.view.LayoutInflater.createView(LayoutInflater.java:658)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:801)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:874)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:835)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at com.yuserapp.camera.ReactCameraView.init(ReactCameraView.java:107)
at com.yuserapp.camera.ReactCameraView.(ReactCameraView.java:91)
at com.yuserapp.camera.CameraViewManager.createViewInstance(CameraViewManager.java:76)
at com.yuserapp.camera.CameraViewManager.createViewInstance(CameraViewManager.java:46)
at com.facebook.react.uimanager.ViewManager.createView(ViewManager.java:42)
at com.facebook.react.uimanager.NativeViewHierarchyManager.createView(NativeViewHierarchyManager.java:223)
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:979)
at android.view.Choreographer.doCallbacks(Choreographer.java:790)
at android.view.Choreographer.doFrame(Choreographer.java:718)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:967)
at android.os.Handler.handleCallback(Handler.java:809)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7383)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
Caused by: java.lang.NoSuchFieldError: No static field surface_view_container of type I in class Lcom/wonderkiln/camerakit/core/R$id; or its superclasses (declaration of 'com.wonderkiln.camerakit.core.R$id' appears in /data/app/com.yuserapp-DwfHZN_IcCyMb5VCHbHXSw==/base.apk!classes3.dex)
at com.wonderkiln.camerakit.SurfaceViewPreview.(SurfaceViewPreview.java:27)
at com.wonderkiln.camerakit.CameraView.(CameraView.java:132)
at com.wonderkiln.camerakit.CameraView.(CameraView.java:99)
I use react native, the 0.13.2 is works fine for me, but get this issue when replace to 0.13.4
help
The text was updated successfully, but these errors were encountered: