When i install ionic native Document Viewer plugin then its show me build error for android

Your environment has been set up for using Node.js 6.11.1 (x64) and npm.

C:\Users\rajan>cd E:\my work\hybrid\vik\frountend\vik

C:\Users\rajan>e:

E:\my work\hybrid\vik\frountend\vik>ionic cordova run android
[INFO] Running app-scripts build: --platform android --target cordova

[15:49:23] build dev started …
[15:49:23] clean started …
[15:49:23] clean finished in 16 ms
[15:49:23] copy started …
[15:49:23] transpile started …
[15:49:26] transpile finished in 3.29 s
[15:49:26] preprocess started …
[15:49:26] deeplinks started …
[15:49:26] deeplinks finished in 52 ms
[15:49:26] preprocess finished in 52 ms
[15:49:26] webpack started …
[15:49:26] copy finished in 3.60 s
[15:49:37] webpack finished in 11.29 s
[15:49:37] sass started …
[15:49:38] sass finished in 900 ms
[15:49:38] postprocess started …
[15:49:38] removed unused font files
[15:49:38] postprocess finished in 1 ms
[15:49:38] lint started …
[15:49:38] build dev finished in 15.58 s

ionic cordova prepare
cordova prepare
/ Running command [15:49:42] tslint: E:/my work/hybrid/vik/frountend/vik/src/app/data.service.ts, line: 3
All imports are unused.

   L2:  import {Injectable} from '@angular/core';
   L3:  import {Observable} from 'rxjs/Rx';
   L4:  import 'rxjs/Rx';
  • Running command
    [15:49:42] tslint: E:/my work/hybrid/vik/frountend/vik/src/pages/home/home.ts, line: 40
    Duplicate variable: ‘i’

    L40:     for(var i = 0 ; i<  this.tempdata.length;i++){
    L41:     this.datas.push({
    

[15:49:42] tslint: E:/my work/hybrid/vik/frountend/vik/src/pages/industry/industry.ts, line: 9
Property ‘documentviewer’ is declared but never used.

   L8:  export class IndustryCoverage {
   L9:  ructor(public navCtrl: NavController,  public navParams: NavParams, private documentviewer:DocumentViewer){
  L10:        const options: DocumentViewerOptions = {

[15:49:42] tslint: E:/my work/hybrid/vik/frountend/vik/src/app/app.component.ts, line: 7
All imports are unused.

   L6:  import { HomePage } from '../pages/home/home';
   L7:  import { ListPage } from '../pages/list/list';
   L8:  import { AboutUS } from "../pages/about/about";

[15:49:42] tslint: E:/my work/hybrid/vik/frountend/vik/src/app/app.component.ts, line: 13
All imports are unused.

  L12:  import { UploadCv } from "../pages/uploadcv/uploadcv";
  L13:  import { SubmitData } from "../submitdata/submitdata";

[15:49:42] tslint: E:/my work/hybrid/vik/frountend/vik/src/app/app.module.ts, line: 7
’FileUploadOptions’ is declared but never used.

   L6:  import { FileChooser } from '@ionic-native/file-chooser';
   L7:  import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer';
   L8:  import { File } from '@ionic-native/file';

[15:49:42] lint finished in 4.02 s
√ Running command - done!

cordova run android
ANDROID_HOME=C:\Users\rajan\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_144
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_2t272pi7bviwnchqzynpwlcl4.run(E:\my work\hybrid\vik\frountend\vik\platforms\android\build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.

Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

:preBuild
UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
UP-TO-DATE
:CordovaLib:copyDebugLint
UP-TO-DATE
:CordovaLib:mergeDebugShaders

UP-TO-DATE
:CordovaLib:compileDebugShaders
UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets

UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript

UP-TO-DATE
:CordovaLib:generateDebugResValues
UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources

UP-TO-DATE
:CordovaLib:processDebugManifest
UP-TO-DATE
:CordovaLib:generateDebugBuildConfig
UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources
UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac

UP-TO-DATE
:CordovaLib:processDebugJavaRes
UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders
UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
UP-TO-DATE
:CordovaLib:bundleDebug

UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest

:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl

UP-TO-DATE
:CordovaLib:compileReleaseNdk

UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders
UP-TO-DATE
:CordovaLib:compileReleaseShaders
UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets

UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
:CordovaLib:packageReleaseRenderscript
UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
UP-TO-DATE

:CordovaLib:generateReleaseResValues
UP-TO-DATE
:CordovaLib:generateReleaseResources UP-TO-DATE
:CordovaLib:packageReleaseResources
UP-TO-DATE

:CordovaLib:processReleaseManifest

UP-TO-DATE
:CordovaLib:generateReleaseBuildConfig

UP-TO-DATE
:CordovaLib:processReleaseResources
UP-TO-DATE

:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
UP-TO-DATE

:CordovaLib:compileReleaseJavaWithJavac
UP-TO-DATE

:CordovaLib:processReleaseJavaRes
UP-TO-DATE

:CordovaLib:transformResourcesWithMergeJavaResForRelease
UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
UP-TO-DATE

:CordovaLib:mergeReleaseJniLibFolders
UP-TO-DATE

:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
UP-TO-DATE

:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
UP-TO-DATE
:CordovaLib:bundleRelease
UP-TO-DATE
:prepareComAndroidSupportAnimatedVectorDrawable2531Library
UP-TO-DATE

:prepareComAndroidSupportAppcompatV72531Library
UP-TO-DATE

:prepareComAndroidSupportSupportCompat2600Alpha1Library
UP-TO-DATE

:prepareComAndroidSupportSupportCoreUi2600Alpha1Library
UP-TO-DATE

:prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
UP-TO-DATE

:prepareComAndroidSupportSupportFragment2600Alpha1Library
UP-TO-DATE

:prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
UP-TO-DATE

:prepareComAndroidSupportSupportV42600Alpha1Library
UP-TO-DATE

:prepareComAndroidSupportSupportVectorDrawable2531Library
UP-TO-DATE

:prepareOrgApacheCordovaCordovaLib623DebugLibrary
UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl
UP-TO-DATE

:compileDebugRenderscript

UP-TO-DATE
:generateDebugBuildConfig
UP-TO-DATE

:generateDebugResValues
UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources
UP-TO-DATE

:processDebugManifest
E:\my work\hybrid\vik\frountend\vik\platforms\android\AndroidManifest.xml:27:9-31 Error:
Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

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

:processDebugManifest FAILED

BUILD FAILED

Total time: 2.411 secs
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugManifest’.

Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: cmd: Command failed with exit code 1 Error output:
    E:\my work\hybrid\vik\frountend\vik\platforms\android\AndroidManifest.xml:27:9-31 Error:
    Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
    is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
    Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugManifest’.

Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

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

[ERROR] An error occurred while running cordova run android (exit code 1).

E:\my work\hybrid\vik\frountend\vik>

/////////////////////////////please help me////////////////////////////////////////////////////////////////////////////////
…thanks…

Search the forum for the error. This has been discussed multiple times, including solutions.

Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

the plugin error when i remove document viewer plugin then my project run when i add document native plugin then its show error