cordova-plugin-document-viewer
cordova-plugin-document-viewer copied to clipboard
Build Error in build.phonegap.com
Dear Friends,
I have used this plugin in my project and built with build.phonegap.com, I got the following error in the log after the build is failed;
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v13/view/DragStartHelper$OnDragStartListener.class
* 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: 2.563 secs
Error: /gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v13/view/DragStartHelper$OnDragStartListener.class
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
at ChildProcess.whenDone (/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
My config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.test.app" version="5" versionCode="5" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name>Test App</name>
<description>
Learn Arabic
</description>
<author email="[email protected]" href="http://cloud-d.com">
Design and Developed by [email protected].
</author>
<feature name="http://api.phonegap.com/1.0/device" />
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="*" />
<content src="index.html" />
<preference name="phonegap-version" value="cli-7.1.0" />
<gap:platform name="android" />
<platform name="android">
<resource-file src="google-services.json" target="google-services.json" />
</platform>
<!-- Android Preference Starts -->
<preference name="permissions" value="none" />
<preference name="orientation" value="portrait" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="false" />
<preference name="webviewbounce" value="false" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-minSdkVersion" value="16" />
<preference name="android-targetSdkVersion" value="26" />
<preference name="android-installLocation" value="auto" />
<preference name="android-build-tool" value="gradle" />
<preference name="SplashScreen" value="splash" />
<preference name="SplashScreenDelay" value="4000" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="ShowSplashScreenSpinner" value="true"/>
<!-- Android Preference End -->
<!-- Android Icons Starts -->
<icon src="icon-ldpi.png" gap:platform="android" width="36" height="36" gap:qualifier="ldpi" />
<icon src="icon-mdpi.png" gap:platform="android" width="48" height="48" gap:qualifier="mdpi" />
<icon src="icon-hdpi.png" gap:platform="android" width="72" height="72" gap:qualifier="hdpi" />
<icon src="icon-xhdpi.png" gap:platform="android" width="96" height="96" gap:qualifier="xhdpi" />
<icon src="icon-xxhdpi.png" gap:platform="android" width="144" height="144" gap:qualifier="xxhdpi" />
<icon src="icon-fr-xxhdpi.png" gap:platform="android" width="192" height="192" gap:qualifier="fr-xxhdpi" />
<!-- Android Icons End -->
<!-- Android Splash Screen Starts -->
<gap:splash src="splash-port-ldpi.9.png" gap:platform="android" width="200" height="320" gap:qualifier="port-ldpi" />
<gap:splash src="splash-port-mdpi.9.png" gap:platform="android" width="320" height="480" gap:qualifier="port-mdpi" />
<gap:splash src="splash-port-hdpi.9.png" gap:platform="android" width="480" height="800" gap:qualifier="port-hdpi" />
<gap:splash src="splash-port-xhdpi.9.png" gap:platform="android" width="720" height="1280" gap:qualifier="port-xhdpi" />
<gap:splash src="splash-port-xxhdpi.9.png" gap:platform="android" width="900" height="1600" gap:qualifier="port-xxhdpi" />
<gap:splash src="splash-port-xxxhdpi.9.png" gap:platform="android" width="1280" height="1920" gap:qualifier="port-xxxhdpi" />
<!-- Android Splash Screen End-->
<!-- Plugins Start -->
<plugin name="cordova-plugin-camera" spec="4.0.2" />
<plugin name="cordova-plugin-device" spec="2.0.1" />
<plugin name="cordova-plugin-device-motion" spec="2.0.0" />
<plugin name="cordova-plugin-device-orientation" spec="2.0.0" />
<plugin name="cordova-plugin-dialogs" spec="2.0.1" />
<plugin name="cordova-plugin-geolocation" spec="4.0.1" />
<plugin name="cordova-plugin-globalization" spec="1.0.9" />
<plugin name="cordova-plugin-inappbrowser" spec="2.0.2" />
<plugin name="cordova-plugin-media" spec="5.0.2" />
<plugin name="cordova-plugin-media-capture" spec="3.0.1" />
<plugin name="cordova-plugin-network-information" spec="2.0.1" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-vibration" spec="3.0.1" />
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="phonegap-plugin-push" spec="2.1.2" />
<plugin name="cordova-plugin-document-viewer" spec="0.9.10" />
<!--<plugin name="cordova-plugin-file" source="npm" />-->
<!--<plugin name="cordova-plugin-file-transfer" source="npm" />-->
<!-- Plugins End -->
</widget>