Describe the bug
Android App crashes when attempting a scan (when camera opens)
Log Output:
2021-08-29 08:01:58.092 8776-8776/com.vetcalculators.vetcalculators E/AndroidRuntime: FATAL EXCEPTION: main Process: com.vetcalculators.vetcalculators, PID: 8776 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vetcalculators.vetcalculators/com.scanlibrary.ScanActivity}: java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.vetcalculators.vetcalculators.com.scanlibrary.provider at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) 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:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) Caused by: java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.vetcalculators.vetcalculators.com.scanlibrary.provider at androidx.core.content.FileProvider.parsePathStrategy(FileProvider.java:662) at androidx.core.content.FileProvider.getPathStrategy(FileProvider.java:635) at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:441) at com.scanlibrary.PickImageFragment.openCamera(PickImageFragment.java:135) at com.scanlibrary.PickImageFragment.handleIntentPreference(PickImageFragment.java:87) at com.scanlibrary.PickImageFragment.init(PickImageFragment.java:68) at com.scanlibrary.PickImageFragment.onCreateView(PickImageFragment.java:57) at android.app.Fragment.performCreateView(Fragment.java:2505) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1303) at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2431) at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2210) at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166) at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067) at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3057) at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3004) at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:184) at android.app.Activity.performCreate(Activity.java:8008) at android.app.Activity.performCreate(Activity.java:7984) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) 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:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
To Reproduce
Steps to reproduce the behavior:
Click to start scan
See error
Expected behavior
Camera should open and initiate scanner
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Device: Siimulator Pixel 4xl API 30
OS: [Android 10]
Capacitor Platform Android
Capacitor Platform Version [3.2.0] (using cordova-plugin-camera 6.0.0 and cordova-plugin-document-scanner 5.0.1beta
Additional context
Add any other context about the problem here.
Describe the bug Android App crashes when attempting a scan (when camera opens) Log Output:
2021-08-29 08:01:58.092 8776-8776/com.vetcalculators.vetcalculators E/AndroidRuntime: FATAL EXCEPTION: main Process: com.vetcalculators.vetcalculators, PID: 8776 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vetcalculators.vetcalculators/com.scanlibrary.ScanActivity}: java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.vetcalculators.vetcalculators.com.scanlibrary.provider at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) 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:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) Caused by: java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.vetcalculators.vetcalculators.com.scanlibrary.provider at androidx.core.content.FileProvider.parsePathStrategy(FileProvider.java:662) at androidx.core.content.FileProvider.getPathStrategy(FileProvider.java:635) at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:441) at com.scanlibrary.PickImageFragment.openCamera(PickImageFragment.java:135) at com.scanlibrary.PickImageFragment.handleIntentPreference(PickImageFragment.java:87) at com.scanlibrary.PickImageFragment.init(PickImageFragment.java:68) at com.scanlibrary.PickImageFragment.onCreateView(PickImageFragment.java:57) at android.app.Fragment.performCreateView(Fragment.java:2505) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1303) at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2431) at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2210) at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166) at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067) at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3057) at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3004) at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:184) at android.app.Activity.performCreate(Activity.java:8008) at android.app.Activity.performCreate(Activity.java:7984) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) 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:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
To Reproduce Steps to reproduce the behavior: Click to start scan See error
Expected behavior Camera should open and initiate scanner
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Device: Siimulator Pixel 4xl API 30
OS: [Android 10]
Capacitor Platform Android
Capacitor Platform Version [3.2.0] (using cordova-plugin-camera 6.0.0 and cordova-plugin-document-scanner 5.0.1beta
Additional context Add any other context about the problem here.