Android BUILD FAILED after add cordova.plugins.diagnostic


#1

Hi all ! Could anyone suggest please … after add cordova.plugins.diagnostic to my progect I see error …

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processArmv7DebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value val
ue=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:2
7:9-31
        is also present at [com.android.support:support-v4:26.0.0-alpha1] Androi
dManifest.xml:27:9-38 value=(26.0.0-alpha1).
        Suggestion: add 'tools:replace="android:value"' to <meta-data> element a
t AndroidManifest.xml:25:5-27:34 to override.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.



See http://g.co/androidstudio/manifest-merger for more information about the man
ifest merger.

:processArmv7DebugManifest FAILED

BUILD FAILED

Total time: 25.809 secs

Error: cmd: Command failed with exit code 1 Error output:
D:\tmp\ionic2\ezpart-mobile-svn\platforms\android\AndroidManifest.xml:27:9-31 Er
ror:
        Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [c
om.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
        is also present at [com.android.support:support-v4:26.0.0-alpha1] Androi
dManifest.xml:27:9-38 value=(26.0.0-alpha1).
        Suggestion: add 'tools:replace="android:value"' to <meta-data> element a
t AndroidManifest.xml:25:5-27:34 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processArmv7DebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value val
ue=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:2
7:9-31
        is also present at [com.android.support:support-v4:26.0.0-alpha1] Androi
dManifest.xml:27:9-38 value=(26.0.0-alpha1).
        Suggestion: add 'tools:replace="android:value"' to <meta-data> element a
t AndroidManifest.xml:25:5-27:34 to override.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

How could I try to fix this ?


#2

It could help …


#3

same error …


#4

Check your AndroidManifeast.xml file min and max SDK version. refer the diagnostic plugin docs. If u r using diagnostic plugin > 4.0 u have to use some min and max SDK taget