I have a issue when building my ionic project for android this error occurs :
Execution failed for task ‘:processDebugManifest’.
Manifest merger failed : uses-sdk:targetSdkVersion 19 cannot be different than version L declared in library C:~the path to my project~\platforms\android\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.0-rc1\AndroidManifest.xml
I did a little searching and found out that the support library in the \platforms\android\build.gradle file :
instead of
compile “com.android.support:support-v4:+”
should be
compile “com.android.support:support-v4:20.+”
but after doing that and starting the build , it automatically changes to the previous form. So building always fails with this error.
Well your platforms folder is supposed to be rebuilt based on what is in your config.xml so I would rather try to find a solution in this file as you know that in cordova you may have to rm and re-add your platforms for some plugin issues.
Have you tried to change target SDK in config.xml?
Yes, i’ve tried changing target SDK for example to 22 and the error says :
Manifest merger failed : uses-sdk:targetSdkVersion 22 cannot be
different than version L declared in library C:\~the path to my
project~\platforms\android\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.0-rc1\AndroidManifest.xml
Support library comes from the Extras package in the SDK manager, so I would try to download/update it and then remove and re-add android platform in project.