Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Arijan_V_
Beginner
64 Views

Intel XDK Build Failed (Dependency trouble and plugins)

For the past 3 days now, I've been trying to solve an error.
I am using Construct2, the HTML5 game creator. I've been using plugins from Cranberrygames (phonegapp facebook and revmob)
Using one of them individually is no problem and I get a good build. However, using them together is a problem and I am always welcomed with a Build Error. I am aware it has something to do with the dependencies of the other plugins with the android support v4 and that the versions don't match. I contacted cranberrygames, however, he is as usual, not available for commenting. Can I do something about this?

Calling plugman.fetch on plugin ".../cachedPlugins.RtDbzU.tmp/cache.XRoqOm.pl/cordova-plugin-extras-google-play-services"
Copying plugin ".../cachedPlugins.RtDbzU.tmp/cache.XRoqOm.pl/cordova-plugin-extras-google-play-services" => ".../cordova_project/plugins/cordova-plugin-extras-google-play-services"
Calling plugman.install on plugin ".../cordova_project/plugins/cordova-plugin-extras-google-play-services" for platform "android
Installing "cordova-plugin-extras-google-play-services" for android
Running command: .../cordova_project/platforms/android/cordova/version 
Command finished with error code 0: .../cordova_project/platforms/android/cordova/version 
Install start for "cordova-plugin-extras-google-play-services" on android.
Install complete for cordova-plugin-extras-google-play-services on android.
Searching PlatformJson files for differences between project vs. platform installed plugins
No differences found between project and android platform. Continuing...
Generating config.xml from defaults for platform "android"
Wrote out Android application name to "Gravitas"
Wrote out Android package name to "com.almostdigital.gravitas"
This app does not have launcher icons defined
updated project successfully
Calling plugman.fetch on plugin ".../cachedPlugins.RtDbzU.tmp/cache.W1MYyW.pl/cordova-plugin-ad-revmob"
Copying plugin ".../cachedPlugins.RtDbzU.tmp/cache.W1MYyW.pl/cordova-plugin-ad-revmob" => ".../cordova_project/plugins/cordova-plugin-ad-revmob"
Calling plugman.install on plugin ".../cordova_project/plugins/cordova-plugin-ad-revmob" for platform "android
Installing "cordova-plugin-ad-revmob" for android
Running command: .../cordova_project/platforms/android/cordova/version 
Command finished with error code 0: .../cordova_project/platforms/android/cordova/version 
Dependencies detected, iterating through them...
Dependent plugin "cordova-plugin-extras-google-play-services" already fetched, using that version.
Dependent plugin "cordova-plugin-extras-google-play-services" already installed on android.
Install start for "cordova-plugin-ad-revmob" on android.
Install complete for cordova-plugin-ad-revmob on android.
Searching PlatformJson files for differences between project vs. platform installed plugins
No differences found between project and android platform. Continuing...
Generating config.xml from defaults for platform "android"
Wrote out Android application name to "Gravitas"
Wrote out Android package name to "com.almostdigital.gravitas"
This app does not have launcher icons defined
updated project successfully
Calling plugman.fetch on plugin ".../cachedPlugins.RtDbzU.tmp/cache.4yo64x.pl/cordova-plugin-whitelist"
Copying plugin ".../cachedPlugins.RtDbzU.tmp/cache.4yo64x.pl/cordova-plugin-whitelist" => ".../cordova_project/plugins/cordova-plugin-whitelist"
Calling plugman.install on plugin ".../cordova_project/plugins/cordova-plugin-whitelist" for platform "android
Installing "cordova-plugin-whitelist" for android
Running command: .../cordova_project/platforms/android/cordova/version 
Command finished with error code 0: .../cordova_project/platforms/android/cordova/version 
Install start for "cordova-plugin-whitelist" on android.
Install complete for cordova-plugin-whitelist on android.

               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
          
Searching PlatformJson files for differences between project vs. platform installed plugins
No differences found between project and android platform. Continuing...
Generating config.xml from defaults for platform "android"
Wrote out Android application name to "Gravitas"
Wrote out Android package name to "com.almostdigital.gravitas"
This app does not have launcher icons defined
updated project successfully
Calling plugman.fetch on plugin ".../cachedPlugins.RtDbzU.tmp/cache.P_GH09.pl/com.phonegap.plugins.facebookconnect"
Copying plugin ".../cachedPlugins.RtDbzU.tmp/cache.P_GH09.pl/com.phonegap.plugins.facebookconnect" => ".../cordova_project/plugins/com.phonegap.plugins.facebookconnect"
Calling plugman.install on plugin ".../cordova_project/plugins/com.phonegap.plugins.facebookconnect" for platform "android
Installing "com.phonegap.plugins.facebookconnect" for android
Running command: .../cordova_project/platforms/android/cordova/version 
Command finished with error code 0: .../cordova_project/platforms/android/cordova/version 
Install start for "com.phonegap.plugins.facebookconnect" on android.
Install complete for com.phonegap.plugins.facebookconnect on android.
Searching PlatformJson files for differences between project vs. platform installed plugins
No differences found between project and android platform. Continuing...
Generating config.xml from defaults for platform "android"
Wrote out Android application name to "Gravitas"
Wrote out Android package name to "com.almostdigital.gravitas"
This app does not have launcher icons defined
updated project successfully
Calling plugman.fetch on plugin ".../cachedPlugins.RtDbzU.tmp/cache.RDg3vX.pl/cordova-plugin-crosswalk-webview"
Copying plugin ".../cachedPlugins.RtDbzU.tmp/cache.RDg3vX.pl/cordova-plugin-crosswalk-webview" => ".../cordova_project/plugins/cordova-plugin-crosswalk-webview"
Calling plugman.install on plugin ".../cordova_project/plugins/cordova-plugin-crosswalk-webview" for platform "android
Installing "cordova-plugin-crosswalk-webview" for android
Running command: .../cordova_project/platforms/android/cordova/version 
Command finished with error code 0: .../cordova_project/platforms/android/cordova/version 
Install start for "cordova-plugin-crosswalk-webview" on android.
Install complete for cordova-plugin-crosswalk-webview on android.
Searching PlatformJson files for differences between project vs. platform installed plugins
No differences found between project and android platform. Continuing...
Generating config.xml from defaults for platform "android"
Wrote out Android application name to "Gravitas"
Wrote out Android package name to "com.almostdigital.gravitas"
This app does not have launcher icons defined
updated project successfully
Searching PlatformJson files for differences between project vs. platform installed plugins
No differences found between project and android platform. Continuing...
Generating config.xml from defaults for platform "android"
Wrote out Android application name to "Gravitas"
Wrote out Android package name to "com.almostdigital.gravitas"
This app does not have launcher icons defined
updated project successfully
************* Processing the main config.xml file (after_prepare)  *****************
App Directory = [.../cordova_project]
Will process and update the following config files:
    Config.xml = [.../cordova_project/config.xml]
Namespaces:
    prefix/uri ''/'http://www.w3.org/ns/widgets'
    prefix/uri 'intelxdk'/'http://xdk.intel.com/ns/v1'
Android Manifest Namespaces:
    prefix/uri 'android'/'http://schemas.android.com/apk/res/android'
Name of the app is [Gravitas]
Updating full app name to [Gravitas]
Processing preference android-minSdkVersion [14]
Processing preference android-targetSdkVersion [23]
Processing preference android-installLocation [auto]
Processing preference permissions
Updating the versionCode
Updating the versionName
Added [{http://schemas.android.com/apk/res/android}debuggable] with [false]
Processing config file values
Saving config.xml to [.../cordova_project/config.xml]
************* Completed processing the main config.xml file (after_prepare)  *****************
ANDROID_HOME=.../android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle-amd64
embedded
WARNING [Project: :] Current NDK support is deprecated.  Alternative will be provided in the future.
WARNING [Project: :] Current NDK support is deprecated.  Alternative will be provided in the future.
WARNING [Project: :] Current NDK support is deprecated.  Alternative will be provided in the future.
WARNING [Project: :] Current NDK support is deprecated.  Alternative will be provided in the future.
org.xwalk:xwalk_core_library:14+
:preBuild
:compileArmv7ReleaseNdk
:preArmv7ReleaseBuild
:checkArmv7ReleaseManifest
:preX86ReleaseBuild
:CordovaLib:compileLint
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:preBuild
:CordovaLib:preReleaseBuild
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:compileReleaseJavaNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:packageReleaseJar
:CordovaLib:compileReleaseNdk
:CordovaLib:packageReleaseJniLibs UP-TO-DATE
:CordovaLib:packageReleaseLocalJar UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:bundleRelease
:com.phonegap.plugins.facebookconnect:FacebookLib:compileLint
:com.phonegap.plugins.facebookconnect:FacebookLib:copyReleaseLint UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:mergeReleaseProguardFiles
:com.phonegap.plugins.facebookconnect:FacebookLib:preBuild
:com.phonegap.plugins.facebookconnect:FacebookLib:preReleaseBuild
:com.phonegap.plugins.facebookconnect:FacebookLib:checkReleaseManifest
:com.phonegap.plugins.facebookconnect:FacebookLib:prepareAndroidCordovaLibUnspecifiedReleaseLibrary
:com.phonegap.plugins.facebookconnect:FacebookLib:prepareReleaseDependencies
:com.phonegap.plugins.facebookconnect:FacebookLib:compileReleaseAidl
:com.phonegap.plugins.facebookconnect:FacebookLib:compileReleaseRenderscript
:com.phonegap.plugins.facebookconnect:FacebookLib:generateReleaseBuildConfig
:com.phonegap.plugins.facebookconnect:FacebookLib:generateReleaseAssets UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:mergeReleaseAssets
:com.phonegap.plugins.facebookconnect:FacebookLib:generateReleaseResValues
:com.phonegap.plugins.facebookconnect:FacebookLib:generateReleaseResources
:com.phonegap.plugins.facebookconnect:FacebookLib:mergeReleaseResources
:com.phonegap.plugins.facebookconnect:FacebookLib:processReleaseManifest
:com.phonegap.plugins.facebookconnect:FacebookLib:processReleaseResources
:com.phonegap.plugins.facebookconnect:FacebookLib:generateReleaseSources
:com.phonegap.plugins.facebookconnect:FacebookLib:compileReleaseJavaNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:com.phonegap.plugins.facebookconnect:FacebookLib:processReleaseJavaRes UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:packageReleaseJar
:com.phonegap.plugins.facebookconnect:FacebookLib:compileReleaseNdk
:com.phonegap.plugins.facebookconnect:FacebookLib:packageReleaseJniLibs UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:packageReleaseLocalJar
:com.phonegap.plugins.facebookconnect:FacebookLib:packageReleaseRenderscript UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:packageReleaseResources
:com.phonegap.plugins.facebookconnect:FacebookLib:bundleRelease
:prepareAndroidComPhonegapPluginsFacebookconnectFacebookLibUnspecifiedReleaseLibrary
:prepareAndroidCordovaLibUnspecifiedReleaseLibrary
:preArmv7DebugBuild
:preX86DebugBuild
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

: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
:com.phonegap.plugins.facebookconnect:FacebookLib:copyDebugLint UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:mergeDebugProguardFiles
:com.phonegap.plugins.facebookconnect:FacebookLib:preDebugBuild
:com.phonegap.plugins.facebookconnect:FacebookLib:checkDebugManifest
:com.phonegap.plugins.facebookconnect:FacebookLib:preDebugTestBuild
:com.phonegap.plugins.facebookconnect:FacebookLib:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:com.phonegap.plugins.facebookconnect:FacebookLib:prepareDebugDependencies
:com.phonegap.plugins.facebookconnect:FacebookLib:compileDebugAidl
:com.phonegap.plugins.facebookconnect:FacebookLib:compileDebugRenderscript
:com.phonegap.plugins.facebookconnect:FacebookLib:generateDebugBuildConfig
:com.phonegap.plugins.facebookconnect:FacebookLib:generateDebugAssets UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:mergeDebugAssets
:com.phonegap.plugins.facebookconnect:FacebookLib:generateDebugResValues
:com.phonegap.plugins.facebookconnect:FacebookLib:generateDebugResources
:com.phonegap.plugins.facebookconnect:FacebookLib:mergeDebugResources
:com.phonegap.plugins.facebookconnect:FacebookLib:processDebugManifest
:com.phonegap.plugins.facebookconnect:FacebookLib:processDebugResources
:com.phonegap.plugins.facebookconnect:FacebookLib:generateDebugSources
:com.phonegap.plugins.facebookconnect:FacebookLib:compileDebugJavaNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:com.phonegap.plugins.facebookconnect:FacebookLib:processDebugJavaRes UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:packageDebugJar
:com.phonegap.plugins.facebookconnect:FacebookLib:compileDebugNdk
:com.phonegap.plugins.facebookconnect:FacebookLib:packageDebugJniLibs UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:packageDebugLocalJar
:com.phonegap.plugins.facebookconnect:FacebookLib:packageDebugRenderscript UP-TO-DATE
:com.phonegap.plugins.facebookconnect:FacebookLib:packageDebugResources
:com.phonegap.plugins.facebookconnect:FacebookLib:bundleDebug
:prepareComAndroidSupportSupportV42300Library
:prepareComGoogleAndroidGmsPlayServicesAds940Library
:prepareComGoogleAndroidGmsPlayServicesAdsLite940Library
:prepareComGoogleAndroidGmsPlayServicesBase940Library
:prepareComGoogleAndroidGmsPlayServicesBasement940Library
:prepareComGoogleAndroidGmsPlayServicesClearcut940Library
:prepareComGoogleAndroidGmsPlayServicesDrive940Library
:prepareComGoogleAndroidGmsPlayServicesGames940Library
:prepareComGoogleAndroidGmsPlayServicesGass940Library
:prepareComGoogleAndroidGmsPlayServicesPlus940Library
:prepareComGoogleAndroidGmsPlayServicesTasks940Library
:prepareOrgXwalkXwalk_core_library144334325Library
:prepareArmv7ReleaseDependencies
:compileArmv7ReleaseAidl
:compileArmv7ReleaseRenderscript
:generateArmv7ReleaseBuildConfig
:generateArmv7ReleaseAssets UP-TO-DATE
:mergeArmv7ReleaseAssets
:createXwalkCommandLineFileArmv7Release
:generateArmv7ReleaseResValues
:generateArmv7ReleaseResources
:mergeArmv7ReleaseResources.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-xhdpi-v4/com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable/com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-xxhdpi-v4/com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-xxhdpi-v4/com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-ldpi-v4/com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable/com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-xhdpi-v4/com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-hdpi-v4/com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-xhdpi-v4/com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-hdpi-v4/com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-xxhdpi-v4/com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-xhdpi-v4/com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable/com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-xxhdpi-v4/com_facebook_button_like_background_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-hdpi-v4/com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable/com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-hdpi-v4/com_facebook_button_like_background.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable/com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-hdpi-v4/com_facebook_button_like_icon_selected.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
.../cordova_project/platforms/android/build/intermediates/exploded-aar/android.com.phonegap.plugins.facebookconnect/FacebookLib/unspecified/release/res/drawable-xhdpi-v4/com_facebook_button_like_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

:processArmv7ReleaseManifest
:processArmv7ReleaseResources
:generateArmv7ReleaseSources
:compileArmv7ReleaseJavaNote: .../cordova_project/platforms/android/src/com/cranberrygame/cordova/plugin/ad/revmob/RevMobPluginOverlap.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:preDexArmv7Release
:dexArmv7Release
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
	at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
	at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
	at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
	at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
	at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
	at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
	at com.android.dx.command.dexer.Main.run(Main.java:246)
	at com.android.dx.command.dexer.Main.main(Main.java:215)
	at com.android.dx.command.Main.main(Main.java:106)

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dexArmv7Release'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
  	.../android-sdk/build-tools/21.1.2/dx --dex --output .../cordova_project/platforms/android/build/intermediates/dex/armv7/release --input-list=.../cordova_project/platforms/android/build/intermediates/tmp/dex/armv7/release/inputList.txt
  Error Code:
  	2
  Output:
  	
  	UNEXPECTED TOP-LEVEL EXCEPTION:
  	com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
  		at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
  		at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
  		at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
  		at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
  		at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
  		at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
  		at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
  		at com.android.dx.command.dexer.Main.run(Main.java:246)
  		at com.android.dx.command.dexer.Main.main(Main.java:215)
  		at com.android.dx.command.Main.main(Main.java:106)
  	


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

BUILD FAILED

Total time: 1 mins 54.348 secs
ERROR building one of the platforms: Error: .../cordova_project/platforms/android/gradlew: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: .../cordova_project/platforms/android/gradlew: Command failed with exit code 1
    at ChildProcess.whenDone (.../cordova_project/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:139:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:821:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

 

Tags (2)
0 Kudos
5 Replies
PaulF_IntelCorp
Employee
64 Views

Try using the "facebook4" plugin instead of that facebook plugin you are using. You'll find it in the featured plugins list. Make sure to remove the other facebook plugin before you add the facebook4 plugin. I don't understand what you mean by the "cranberry phonegap" plugin, the other two make sense. Here's what I'm seeing in your detailed build log:

  • cordova-plugin-extras-google-play-services (should be automatically added by revmob)
  • cordova-plugin-ad-revmob
  • cordova-plugin-whitelist (automatically added by XDK)
  • com.phonegap.plugins.facebookconnect (old facebook plugin)
  • cordova-plugin-crosswalk-webview (automatically added by XDK for Crosswalk support)

The facebook4 plugin is API compatible with the old facebook plugin. If Cranberry has modified that facebook plugin and published it with the same plugin ID, I cannot say for sure if the two are still compatible. Unfortunately, I have no way of knowing the specific source of that facebook plugin, since there are many forks of it that use the same ID.

Use the XDK to remove and add those facebook plugins to your current project.

Arijan_V_
Beginner
64 Views

Hey Paul, thank you for the fast response!
I am terribly sorry if I am bothering you with something that actually might be a Construct 2 problem.
I removed the plugin from XDK fully and added the featured one. However, now I get this build error without a build log.

2016-08-23 01_52_52-Intel® XDK.jpg

In order for the plugin to work, I have to modify the intelxdk.config.additions.xml file. 
My cordova CLI version is 5.4.1
I tried and changed the Crosswalk Runtime from 14 to 19, each failed. Minimum and targeted API is 15. (Windows 8.1 64x). 

PaulF_IntelCorp
Employee
64 Views

You should be adding the plugin using the Plugin Management tool on the Project tab, not the additions file. Adding plugins via the additions file no longer works well.

Also, set the target to 21 and the minimum to 14 or 15.

Arijan_V_
Beginner
64 Views

Hey Paul, thank you for the suggestion, that somewhat worked. However, I have found a very odd problem. Exporting and building the game with the plugins work, but I am facing a problem where whilst logging, I get an error saying that "user cancelled dialog" and I understand it has to do something with the plugin and I am currently trying to figure out what might the problem be. 

However, what i find odd is that after running the app in the debug module in XDK, and adding the Key Hashes to facebook, the app works flawlessly, with Facebook and it handles everything as it is supposed to. However, once I build the app, it doesn't work. What might be the cause of this?

PaulF_IntelCorp
Employee
64 Views

There are multiple differences between the Debug tab and a built app. Nothing in particular comes to mind, but you can, in fact, debug your built app, which is probably the best way to narrow down what is going on, using remote CDT. See this doc page for details on how to do that > https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview#RemoteChromeDevTools <

Reply