You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/27 10:23:29 UTC

[GitHub] [cordova-plugin-camera] toufiqpathan edited a comment on issue #744: App crash after allowing the camera permission

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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org