I am trying to ask the user permission before accessing their camera. I use the ionic diagnostic plugin for this. The app builds fine on Phonegap build before adding the diagnostic plugin. After adding plugin I get the following error through Phonegap build:
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':processDebugManifest'.
Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 is also present at [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31 value=(25.3.1). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:41 to override
I installed the plugin using the following:
$ ionic cordova plugin add cordova.plugins.diagnostic
$ npm install --save @ionic-native/diagnostic
And in my config.xml I have the following:
<preference name="android-minSdkVersion" value="16" />
<preference name="android-targetSdkVersion" value="23" />
<plugin name="cordova.plugins.diagnostic" spec="^3.6.5"/>
Does anyone have an idea as to what I'm doing wrong here?