How to get the cordova camera plugin to work?

0

I've been expermimenting quite intensively with Cordova the past few months but for some reason that escapes me, I can't get the camera plugin to work (Nor any other plugin for that matter but I've only seriously tried the camera plugin up to this point).

I've installed the dependencies for building android apps (SDK, android studio, configured the environments, downloaded the Java SDK, installed Gradle etc...) used the cordova command line to add the platfrom and the plugin. I added the code to access the camera (I tried multiple versions of it by multiple users I found on sites such as stack exchange but none of them work), managed to build the application successfully a number of times but it still isn't working...

I went through the documentation quite extensively and followed a number of different tutorials on youtube but to no avail.

I read something about needing to add permissions or something to the AndroidManfiest.xml (which I tried once by adding them directely to that file but with no results) but I'm not sure how much that affects the whole ordeal.

EDIT:

With one of the test applications I made I get the following errors:

ERROR: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 19 declared in library [__tested_artifact__::CordovaLib] C:\Users\roel_\OneDrive\phonegap apps\camera5\platforms\android\CordovaLib\build\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 1
    Suggestion: use a compatible library with a minSdk of at most 1,
        or increase this project's minSdk version to at least 19,
        or use tools:overrideLibrary="org.apache.cordova" to force usage (may lead to runtime failures)

But with another try (which was made exactly like the one in this tutorial on youtube: https://www.youtube.com/watch?v=KlBfmHDZjmg ) I get no errors. Yet when I test it, it still doesn't work.

user1025478

Posted 2019-04-23T13:07:12.663

Reputation: 1

I was about to suggest it sounds like a permission issue, but then you said you looked into that. I would suggest revisiting that. BTW: You'll get better feedback with a better question and if you can include a specific issue (like an error). – Robert Paulsen – 2019-04-23T13:15:30.650

Please can you provide more details on what is happening? which errors are you getting? what sites you've used for your research and what specifically you've tried to get this to work. – Stese – 2019-04-23T13:27:01.733

I provided some more details in an Edit. – user1025478 – 2019-04-23T13:50:15.183

No answers