- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Build fails with following towards the end of the build log. I switched to project to the new version 5.1.1. Switching the project back to 4.1.2 produces a successful build. No idea what to do about it as the error message doesn't tell me WHAT is wrong, although this bit worries me:
You may not have the required environment or OS to build this project
Here is the rest:
:compileReleaseJavaNote: .../FBTEST4/platforms/android/src/com/plugin/gcm/PushPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:preDexRelease
:dexRelease
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
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 ':dexRelease'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/Developer/android-sdk-linux/build-tools/22.0.1/dx --dex --output .../FBTEST4/platforms/android/build/intermediates/dex/release --input-list=.../FBTEST4/platforms/android/build/intermediates/tmp/dex/release/inputList.txt
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
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: 34.638 secs
.../FBTEST4/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: .../FBTEST4/platforms/android/gradlew with args: cdvBuildRelease,-b,.../FBTEST4/platforms/android/build.gradle,-Dorg.gradle.daemon=true
Command finished with error code 8: .../FBTEST4/platforms/android/cordova/build --release
ERROR building one of the platforms: Error: .../FBTEST4/platforms/android/cordova/build: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: .../FBTEST4/platforms/android/cordova/build: Command failed with exit code 8
at ChildProcess.whenDone (/Developer/cordova/5.1.1/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using 3rd party plugins? Not all plugins are compatible with 5.1.1. It is up to the author of the plugin to update them to be compatible. I would say stick to 4.1.2, or find a 5.1.1 compatible plugin that does what you are looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks John,
Yes it would appear that the push plugin I was using https://github.com/phonegap-build/PushPlugin has now been dumped in favour of https://github.com/phonegap/phonegap-plugin-push for some reason.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page