Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Sudeep_V_
Beginner
148 Views

Build Failed - regarding plugin tags

Hi,

I'm developing an android game using construct 2. I added Phonegap Admob plugin recently and tried to build the app. This is what I'm getting.

 

There are no plugin tags in the xml file but still I'm having problem with the build. All the other plugins were successfully installed.

You check the details in the file

<!-- Change the debuggable preference to true to build a remote CDT debuggable app for -->
<!-- Crosswalk apps on Android 4.0+ devices and Cordova apps on Android 4.4+ devices. -->
<preference name="debuggable" value="false" />
<!-- IMPORTANT: set the debuggable preference to false before you build for the store! -->

<platform name="ios">
    <!-- below requires the splash screen plugin, otherwise ignored -->
    <!-- docs: https://github.com/apache/cordova-plugin-splashscreen -->
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="FadeSplashScreen" value="false"/>
    <preference name="FadeSplashScreenDuration" value="2"/>
    <preference name="ShowSplashScreenSpinner" value="false"/>

    <!-- below requires the status bar plugin, otherwise ignored -->
    <!-- docs: https://github.com/apache/cordova-plugin-statusbar -->
    <!-- see http://devgirl.org/2014/07/31/phonegap-developers-guid -->
    <preference name="StatusBarOverlaysWebView" value="false" />
    <preference name="StatusBarBackgroundColor" value="#000000" />
    <preference name="StatusBarStyle" value="lightcontent" />
</platform>

<platform name="android">
    <!-- below requires the splash screen plugin, otherwise ignored -->
    <!-- docs: https://github.com/apache/cordova-plugin-splashscreen -->
    <!-- 'value' = number of milliseconds to display the splash screen in a Cordova build. -->
    <!-- <preference name="SplashScreenDelay" value="2000" /> -->
    <!-- <preference name="SplashMaintainAspectRatio" value="false" /> -->
</platform>

<platform name="android">
    <!-- below requires the splash screen plugin -->
    <!-- see https://github.com/apache/cordova-plugin-splashscreen for details -->
    <preference name="SplashScreen" value="screen" />
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="SplashScreenDelay" value="10000" />
    <preference name="FadeSplashScreen" value="false"/>
    <preference name="SplashMaintainAspectRatio" value="false" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
</platform>

<platform name="android">
<!-- set Crosswalk default background color -->
<!-- see http://developer.android.com/reference/android/graphics/Color.html -->
<!-- <preference name="BackgroundColor" value="0xFFFF0000" /> -->
<preference name="BackgroundColor" value="0x00000000" />
</platform>

<!-- use this feature to add command-lines to be used by Crosswalk builds on device -->
<!-- see http://peter.sh/experiments/chromium-command-line-switches/ for complete list -->
<intelxdk:crosswalk xwalk-command-line="--disable-pull-to-refresh-effect" />
<!-- ignore gpu blacklist for larger collection of gpu accelerated devices -->
<intelxdk:crosswalk xwalk-command-line="--ignore-gpu-blacklist" />

<!-- controls configuration of Crosswalk-Android "SurfaceView" or "TextureView" -->
<!-- see Sep 15 comments in https://crosswalk-project.org/jira/browse/XWALK-2233 -->
<!-- default is SurfaceView if >= CW15 and TextureView if <= CW14 -->
<!-- option can only be used with Intel XDK CLI5+ build systems -->
<!-- SurfaceView is preferred, TextureView should only be used in special cases -->
<!-- enable Crosswalk-Android TextureView by setting option to true -->
<preference name="CrosswalkAnimatable" value="false" />

I'm not sure where it went wrong. Please Help.

Thanks,

Sudeep

Tags (2)
0 Kudos
12 Replies
PaulF_IntelCorp
Employee
148 Views

This is an incorrect error message that we found can appear with some plugins. A fix has been identified, but that fix will not show up in the build system for another week or two. Despite the bad error message, the build system is having troubles with the plugin you are trying to use, so you may have to experiment with the specific version of the plugin or find another that does not cause this problem.
 

Sudeep_V_
Beginner
148 Views

Hi,

Thanks for the response. It is a long time to get the update. I planned to release the game this weekend. It's final stages of testing. I don't know what to do now. I will see whether I could get anyother plugin.

Thanks,

Sudeep

PaulF_IntelCorp
Employee
148 Views

You can try building with PhoneGap Build or Cordova CLI. See the basic steps here > https://software.intel.com/en-us/forums/intel-xdk/topic/685326#comment-1885441 < to convert your project into one that can be used with Cordova and use this script > https://github.com/xmnboy/xdk-to-cli < to help with that process.

Sudeep_V_
Beginner
148 Views

I'll look into it and let you know the result. Thanks.

Sudeep_V_
Beginner
148 Views

I somehow managed to resolve the issue but now I'm facing a new issue. I'm getting the below error.

No history is available.
All input files are considered out-of-date for incremental task ':processArmv7ReleaseResources'.
Starting process 'command '.../android-sdk/build-tools/25.0.0/aapt''. Working directory: .../cordova_project/platforms/android Command: .../android-sdk/build-tools/25.0.0/aapt package -f --no-crunch -I .../android-sdk/platforms/android-23/android.jar -M .../cordova_project/platforms/android/build/intermediates/manifests/full/armv7/release/AndroidManifest.xml -S .../cordova_project/platforms/android/build/intermediates/res/merged/armv7/release -A .../cordova_project/platforms/android/build/intermediates/assets/armv7/release -m -J .../cordova_project/platforms/android/build/generated/source/r/armv7/release -F .../cordova_project/platforms/android/build/intermediates/res/resources-armv7-release.ap_ --custom-package com.shepherdgames.timthetraveler -0 apk --output-text-symbols .../cordova_project/platforms/android/build/intermediates/symbols/armv7/release
Successfully started process 'command '.../android-sdk/build-tools/25.0.0/aapt''
:processArmv7ReleaseResources FAILED
:processArmv7ReleaseResources (Thread[main,5,main]) completed. Took 2.25 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processArmv7ReleaseResources'.
> Error: more than one library with package name 'com.google.android.gms'

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

BUILD FAILED

Total time: 35.292 secs
Stopped 0 compiler daemon(s).
Error: Error code 1 for command: .../cordova_project/platforms/android/gradlew with args: cdvBuildRelease,-b,.../cordova_project/platforms/android/build.gradle,--no-daemon,-Pandroid.useDeprecatedNdk=true,--info
PaulF_IntelCorp
Employee
148 Views

You've got two plugins that are competing with each other. Both are trying to pull in the 'com.google.android.gms' library. You'll have to remove the one you do not need, or modify one of the offending plugins to make it work. You'll have to experiment with removing plugins, one at a time, and rebuilding, to figure out which ones are causing the problem (or you can inspect the plugin.xml file of the plugins you are using to find which ones reference that library).

Sudeep_V_
Beginner
148 Views

Hi,

Now I'm facing new issue. Also I update to new Intel XDK version.

Loading library manifest .../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.google.playservices/google-play-services_lib/unspecified/release/AndroidManifest.xml
Loading library manifest .../cordova_project/platforms/android/build/intermediates/exploded-aar/android/CordovaLib/unspecified/release/AndroidManifest.xml
Merging main manifest .../cordova_project/platforms/android/AndroidManifest.xml

Merging result:ERROR
.../cordova_project/platforms/android/AndroidManifest.xml:34:9-159 Error:
	Element activity#com.facebook.LoginActivity at AndroidManifest.xml:34:9-159 duplicated with element declared at AndroidManifest.xml:19:9-96
.../cordova_project/platforms/android/AndroidManifest.xml Error:
	Validation failed, exiting

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

:processArmv7ReleaseManifest FAILED
:processArmv7ReleaseManifest (Thread[main,5,main]) completed. Took 0.253 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processArmv7ReleaseManifest'.
> Manifest merger failed with multiple errors, see logs

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

BUILD FAILED

Total time: 37.934 secs
Stopped 0 compiler daemon(s).
Error: Error code 1 for command: .../cordova_project/platforms/android/gradlew with args: cdvBuildRelease,-b,.../cordova_project/platforms/android/build.gradle,--no-daemon,-Pandroid.useDeprecatedNdk=true,--info

I cannot remove facebook plugin. I need it.

Is there a way to settle this?

Thanks.

PaulF_IntelCorp
Employee
148 Views

I have never seen this error before and am not clear on how or why this is happening. This is the page that is being referenced by the error message that is provided > https://developer.android.com/studio/build/manifest-merge.html < in the log snippet you provided. I recommend you try building with PhoneGap Build. See the export tool on the Build tab in 3900. If you cannot build it with PGB, you'll have to give Cordova CLI a try.

Note that the deprecation of our build system means it will be retired and there will be no more significant upgrades to the build system and support will be limited to keeping it running through the end of June. Now is a good time to migrate to using PhoneGap Build or Cordova CLI as your build system.

Sudeep_V_
Beginner
148 Views

I tried phonegap too. I'm facing the same issue there even.

PaulF_IntelCorp
Employee
148 Views

My suspicion is this is being caused by plugin conflicts. You'll have to do some investigation to figure out which plugins are conflicting and decide which of the two you are going to keep and which of the two you will replace or get rid of.

Sudeep_V_
Beginner
148 Views

Hi, I exported my project to Cordova CLI just as you suggested. I could successfully build the .apk. I received an unsigned .apk. I tired to manually sign the .apk but I'm receiving "jarsigner error java.security.signatureexception: private key algorithm is not compatible with signature algorithm". I used the same .keystore generated by XDK. I cannot change my .keystore now as I already uploaded my app to Play Store.

What should I do. Please help.

PaulF_IntelCorp
Employee
148 Views

These are the most precise instructions > http://cordova.apache.org/docs/en/6.x/guide/platforms/android/index.html#signing-an-app < in the Cordova CLI docs page. Likewise, this SO post is very helpful > http://stackoverflow.com/a/34781068/2914328 < as an example.

Please also read the export docs, which point to the same information > https://software.intel.com/en-us/xdk/docs/build-xdk-app-with-phonegap-cordova-cli <

Reply