toufiqpathan edited a comment on issue #744:
URL:
https://github.com/apache/cordova-plugin-camera/issues/744#issuecomment-907093847
@breautek Please let me know any alternate solution for this, in iOS its
working fine, for android its giving problem only for release apk, i am using
cordova android 9.0.0
getting this error
2021-08-27 15:40:07.985 8845-8845/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: driverconnect.latitude247, PID: 8845
java.lang.RuntimeException: Failure delivering result
ResultInfo{who=@android:requestPermissions:, request=2, result=-1, data=Intent
{ act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity
{driverconnect.latitude247/driverconnect.latitude247.MainActivity}:
java.lang.IllegalArgumentException: Couldn't find meta-data for provider with
authority null.cordova.plugin.camera.provider
at
android.app.ActivityThread.deliverResults(ActivityThread.java:5209)
at
android.app.ActivityThread.handleSendResult(ActivityThread.java:5250)
at
android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
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:2242)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:245)
at android.app.ActivityThread.main(ActivityThread.java:8004)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
Caused by: java.lang.IllegalArgumentException: Couldn't find meta-data
for provider with authority null.cordova.plugin.camera.provider
at androidx.core.a.b.parsePathStrategy(SourceFile:33)
at androidx.core.a.b.getPathStrategy(SourceFile:3)
at androidx.core.a.b.getUriForFile(SourceFile:1)
at org.apache.cordova.camera.CameraLauncher.takePicture(SourceFile:5)
at
org.apache.cordova.camera.CameraLauncher.onRequestPermissionResult(SourceFile:4)
at
org.apache.cordova.CordovaInterfaceImpl.onRequestPermissionResult(SourceFile:2)
at
org.apache.cordova.CordovaActivity.onRequestPermissionsResult(SourceFile:1)
at
android.app.Activity.dispatchRequestPermissionsResult(Activity.java:8472)
at android.app.Activity.dispatchActivityResult(Activity.java:8320)
at
android.app.ActivityThread.deliverResults(ActivityThread.java:5202)
at
android.app.ActivityThread.handleSendResult(ActivityThread.java:5250)
at
android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
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:2242)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:245)
at android.app.ActivityThread.main(ActivityThread.java:8004)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]