I am upgrading an old project to XDK 3088 (5.4.1/ CLI 16). I adjusted all the plugins. Now I am trying to build (Android Crosswalk). I am receiving an error in the log that I don´t know what is:
:CordovaLib:processDebugJavaRes UP-TO-DATE :CordovaLib:packageDebugJar :CordovaLib:compileDebugNdk :CordovaLib:packageDebugJniLibs UP-TO-DATE :CordovaLib:packageDebugLocalJar UP-TO-DATE :CordovaLib:packageDebugRenderscript UP-TO-DATE :CordovaLib:bundleDebug :prepareComAndroidSupportSupportV42400Alpha1Library :prepareComGoogleAndroidGmsPlayServicesAnalytics840Library :prepareComGoogleAndroidGmsPlayServicesBasement840Library :prepareOrgXwalkXwalk_core_library164542119Library :prepareArmv7ReleaseDependencies :compileArmv7ReleaseAidl :compileArmv7ReleaseRenderscript :generateArmv7ReleaseBuildConfig :generateArmv7ReleaseAssets UP-TO-DATE :mergeArmv7ReleaseAssets :createXwalkCommandLineFileArmv7Release :generateArmv7ReleaseResValues :generateArmv7ReleaseResources :mergeArmv7ReleaseResources :processArmv7ReleaseManifest.../FaleParaoWhatsApp/platforms/android/AndroidManifest.xml:15:9 Error: Element meta-data#com.google.android.gms.version at AndroidManifest.xml:15:9 duplicated with element declared at AndroidManifest.xml:13:9 .../FaleParaoWhatsApp/platforms/android/AndroidManifest.xml:0:0 Error: Validation failed, exiting FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processArmv7ReleaseManifest'.
What it means? What I need to do to solve?
All the plugins seems to be OK.
Hamilton, my suspicion is you have two plugins that are competing for some lines in the manifest file. Can you provide the list of plugins that are part of your project?
Paul, this is my list of plugins:
Note that the issue is only to 5.4.1. I returned to 5.1.1 and the build was OK.
Just for information, I build all my projects with 5.1.1 to publish on Google Play to solve the security issue. Only new projects (create recently) I could build with 5.4.1/CLI 16.
My suspicion is there's a problem or conflict between one or more of these:
Also, you might want to be careful with that BackgroundMode plugin, it can cause your app to run down the battery.
Some of these have newer versions available, in some cases under a new ID name, due to the Cordova plugin ID changes. That is another thing to look into, to determine which have updates.
Glad to hear it is working with CLI 5.1.1, that build system was updated so it will remove the warning from the Google Play store.