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

Getting crash while opening camera #118

Open
narenbishtve opened this issue Apr 30, 2020 · 7 comments
Open

Getting crash while opening camera #118

narenbishtve opened this issue Apr 30, 2020 · 7 comments

Comments

@narenbishtve
Copy link

Getting below crash

Process: com.doctordesh1, PID: 17805
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.doctordesh1/com.scanlibrary.ScanActivity}: java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.scanlibrary.provider
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
    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:2016)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7356)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
 Caused by: java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.scanlibrary.provider
    at androidx.core.content.FileProvider.parsePathStrategy(FileProvider.java:606)
    at androidx.core.content.FileProvider.getPathStrategy(FileProvider.java:579)
    at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:417)
    at com.scanlibrary.PickImageFragment.openCamera(PickImageFragment.java:123)
    at com.scanlibrary.PickImageFragment.handleIntentPreference(PickImageFragment.java:79)
    at com.scanlibrary.PickImageFragment.init(PickImageFragment.java:60)
    at com.scanlibrary.PickImageFragment.onCreateView(PickImageFragment.java:50)
    at android.app.Fragment.performCreateView(Fragment.java:2534)
    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:7809)
    at android.app.Activity.performCreate(Activity.java:7791)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) 
    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:2016) 
    at android.os.Handler.dispatchMessage(Handler.java:107) 
    at android.os.Looper.loop(Looper.java:214) 
    at android.app.ActivityThread.main(ActivityThread.java:7356) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) 

@KavinNallasamy
Copy link

hi..., did you solved this issue?

@narenbishtve
Copy link
Author

hi..., did you solved this issue?

No Kavin, not yet

@KavinNallasamy
Copy link

Is there any way to change lib codes?

@narenbishtve
Copy link
Author

narenbishtve commented May 21, 2020

Yes you can, I tried as well, but didn't got any success

@KavinNallasamy
Copy link

Ok. Is there any lib available similar to this lib?

@vamsee9
Copy link

vamsee9 commented Jul 9, 2020

Update JiniLibs or revert a commit to 2015

@Harshita-Kanal
Copy link

You will have to set runtime permissions for camera and external storage.

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

4 participants