Skip to content
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

Error inflating class com.journeyapps.barcodescanner.DecoratedBarcodeView #739

Open
enjoyaday opened this issue Jun 11, 2023 · 0 comments
Open

Comments

@enjoyaday
Copy link

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.dji.ux.angis, PID: 11701
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dji.ux.angis/com.dji.ux.angis.ContinuousCaptureActivity}: android.view.InflateException: Binary XML file line #11 in com.dji.ux.angis:layout/continuous_scan: Binary XML file line #11 in com.dji.ux.angis:layout/continuous_scan: Error inflating class com.journeyapps.barcodescanner.DecoratedBarcodeView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3308)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3457)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7560)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: android.view.InflateException: Binary XML file line #11 in com.dji.ux.angis:layout/continuous_scan: Binary XML file line #11 in com.dji.ux.angis:layout/continuous_scan: Error inflating class com.journeyapps.barcodescanner.DecoratedBarcodeView
Caused by: android.view.InflateException: Binary XML file line #11 in com.dji.ux.angis:layout/continuous_scan: Error inflating class com.journeyapps.barcodescanner.DecoratedBarcodeView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:858)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1010)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:965)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1127)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)
at android.view.LayoutInflater.inflate(LayoutInflater.java:686)
at android.view.LayoutInflater.inflate(LayoutInflater.java:538)
at android.view.LayoutInflater.inflate(LayoutInflater.java:481)
at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:442)
at android.app.Activity.setContentView(Activity.java:3392)
at com.dji.ux.angis.ContinuousCaptureActivity.onCreate(ContinuousCaptureActivity.java:58)
at android.app.Activity.performCreate(Activity.java:7894)
at android.app.Activity.performCreate(Activity.java:7881)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3283)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3457)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7560)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: java.lang.ClassCastException: com.dji.scan.qr.BarcodeView cannot be cast to com.journeyapps.barcodescanner.BarcodeView
E/AndroidRuntime: at com.journeyapps.barcodescanner.DecoratedBarcodeView.initialize(DecoratedBarcodeView.java:93)
at com.journeyapps.barcodescanner.DecoratedBarcodeView.(DecoratedBarcodeView.java:69)
... 28 more
E/DJIUSBWifiSwitchManager: ****resetSwitchFromWifiFlag
E/DJIUsbAccessoryReceiver: receiver destroySession

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant