WordPress LMS for Web and mobile Forums WPLMS Student App Failed to install 'cordova-plugin-file-transfer'

Failed to install 'cordova-plugin-file-transfer'

Back to course
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #13845

    Wiji Hatmoko
    Participant

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia>cordova build android –release

    Android Studio project detected

    Discovered plugin “cordova-plugin-file-transfer” in config.xml. Adding it to the project

    Installing “cordova-plugin-file-transfer” for android

    Failed to install ‘cordova-plugin-file-transfer’: CordovaError: Version of installed plugin: “[email protected]” does not satisfy dependency plugin requirement “[email protected]>=5.0.0”. Try –force to use installed plugin as dependency.

    at C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:557:37

    at _fulfilled (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)

    at self.promiseDispatch.done (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)

    at Promise.promise.promiseDispatch (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)

    at C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:509:49

    at flush (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)

    at _combinedTickCallback (internal/process/next_tick.js:131:7)

    at process._tickCallback (internal/process/next_tick.js:180:9)

    Failed to restore plugin “cordova-plugin-file-transfer” from config.xml. You might need to try adding it again. Error: Version of installed plugin: “[email protected]” does not satisfy dependency plugin requirement “[email protected]>=5.0.0”. Try –force to use installed plugin as dependency.

    #13846

    Wiji Hatmoko
    Participant

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia>cordova build android –release

    Android Studio project detected

    Discovered plugin “cordova-plugin-file-transfer” in config.xml. Adding it to the project

    Installing “cordova-plugin-file-transfer” for android

    Failed to install ‘cordova-plugin-file-transfer’: CordovaError: Version of installed plugin: “[email protected]” does not satisfy dependency plugin requirement “[email protected]>=5.0.0”. Try –force to use installed plugin as dependency.

    at C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:557:37

    at _fulfilled (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)

    at self.promiseDispatch.done (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)

    at Promise.promise.promiseDispatch (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)

    at C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:509:49

    at flush (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)

    at _combinedTickCallback (internal/process/next_tick.js:131:7)

    at process._tickCallback (internal/process/next_tick.js:180:9)

    Failed to restore plugin “cordova-plugin-file-transfer” from config.xml. You might need to try adding it again. Error: Version of installed plugin: “[email protected]” does not satisfy dependency plugin requirement “[email protected]>=5.0.0”. Try –force to use installed plugin as dependency.

    ANDROID_HOME=C:\Users\Wiji Hatmoko\AppData\Local\Android\sdk

    JAVA_HOME=C:\Program Files\Java\jdk1.8.0_171

    studio

    Subproject Path: CordovaLib

    Subproject Path: app

    publishNonDefault is deprecated and has no effect anymore. All variants are now published.

    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_4p0ogk1wu5ywh9it4mokdt69g.run(C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build.gradle:143)

    Configuration ‘compile’ in project ‘:app’ is deprecated. Use ‘implementation’ instead.

    :CordovaLib:preBuild UP-TO-DATE

    :CordovaLib:preReleaseBuild UP-TO-DATE

    :CordovaLib:compileReleaseAidl UP-TO-DATE

    :CordovaLib:compileReleaseRenderscript UP-TO-DATE

    :CordovaLib:checkReleaseManifest UP-TO-DATE

    :CordovaLib:generateReleaseBuildConfig UP-TO-DATE

    :CordovaLib:prepareLintJar UP-TO-DATE

    :CordovaLib:generateReleaseResValues UP-TO-DATE

    :CordovaLib:generateReleaseResources UP-TO-DATE

    :CordovaLib:packageReleaseResources UP-TO-DATE

    :CordovaLib:platformAttrExtractor UP-TO-DATE

    :CordovaLib:processReleaseManifest UP-TO-DATE

    :CordovaLib:processReleaseResources UP-TO-DATE

    :CordovaLib:generateReleaseSources UP-TO-DATE

    :CordovaLib:javaPreCompileRelease UP-TO-DATE

    :CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE

    :CordovaLib:processReleaseJavaRes NO-SOURCE

    :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE

    :app:preBuild UP-TO-DATE

    :app:preReleaseBuild UP-TO-DATE

    :app:compileReleaseAidl UP-TO-DATE

    :CordovaLib:packageReleaseRenderscript NO-SOURCE

    :app:compileReleaseRenderscript UP-TO-DATE

    :app:checkReleaseManifest UP-TO-DATE

    :app:generateReleaseBuildConfig UP-TO-DATE

    :app:prepareLintJar UP-TO-DATE

    :app:generateReleaseResValues UP-TO-DATE

    :app:generateReleaseResources UP-TO-DATE

    :app:mergeReleaseResources UP-TO-DATE

    :app:createReleaseCompatibleScreenManifests UP-TO-DATE

    :app:processReleaseManifest UP-TO-DATE

    :app:splitsDiscoveryTaskRelease UP-TO-DATE

    :app:processReleaseResourcesC:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:52: AAPT: error: resource string/fb_app_id (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_id) not found.

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:55: AAPT: error: resource string/fb_app_name (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_name) not found.

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:59: AAPT: error: resource string/fb_app_name (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_name) not found.

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:52: error: resource string/fb_app_id (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_id) not found.

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:55: error: resource string/fb_app_name (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_name) not found.

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:59: error: resource string/fb_app_name (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_name) not found.

    error: failed processing manifest.

     

    Failed to execute aapt

    com.android.ide.common.process.ProcessException: Failed to execute aapt

    at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)

    at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)

    at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)

    at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)

    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)

    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)

    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)

    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)

    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)

    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)

    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)

    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)

    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)

    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)

    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)

    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)

    FAILED

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)

    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)

    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)

    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)

    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)

    at java.lang.Thread.run(Thread.java:748)

    Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)

    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)

    at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)

    at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)

    … 48 more

    Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)

    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)

    at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)

    at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    … 1 more

    Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

    at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:454)

    at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:411)

    at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332)

    at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)

     

    FAILURE: Build failed with an exception.

     

    * What went wrong:

    Execution failed for task ‘:app:processReleaseResources’.

    > Failed to execute aapt

     

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

     

    * Get more help at https://help.gradle.org

     

    BUILD FAILED in 4s

    25 actionable tasks: 1 executed, 24 up-to-date

    (node:14772) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:52: AAPT: error: resource string/fb_app_id (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_id) not found.

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:55: AAPT: error: resource string/fb_app_name (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_name) not found.

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:59: AAPT: error: resource string/fb_app_name (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_name) not found.

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:52: error: resource string/fb_app_id (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_id) not found.

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:55: error: resource string/fb_app_name (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_name) not found.

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:59: error: resource string/fb_app_name (aka com.ciptacendekia.ciptacendekiaapp:string/fb_app_name) not found.

    error: failed processing manifest.

     

    Failed to execute aapt

    com.android.ide.common.process.ProcessException: Failed to execute aapt

    at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)

    at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)

    at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)

    at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)

    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)

    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)

    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)

    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)

    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)

    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)

    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)

    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)

    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)

    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)

    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)

    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)

    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)

    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)

    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)

    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)

    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)

    at java.lang.Thread.run(Thread.java:748)

    Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)

    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)

    at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)

    at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)

    … 48 more

    Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)

    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)

    at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)

    at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    … 1 more

    Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

    at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:454)

    at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:411)

    at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332)

    at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)

     

    FAILURE: Build failed with an exception.

     

    * What went wrong:

    Execution failed for task ‘:app:processReleaseResources’.

    > Failed to execute aapt

     

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

     

    * Get more help at https://help.gradle.org

     

    BUILD FAILED in 4s

    at ChildProcess.whenDone (C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:925:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

    (node:14772) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

    (node:14772) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia>

    #13865

    Wiji Hatmoko
    Participant

    Please help me to solve this problem

    #13866

    Alex
    Keymaster

    Take backup of all ionic setup then

    rename the node_modules folder in your ionic project (where src folder is) to node_modules_BACKUP and also rename the package.json file to package_BACKUP.json .

    then download the package.json file from here : https://bit.ly/2I2F732

    Then place it in your ionic project .

    Then in terminal of cmd run :

    npm install

    Then run this command in your ionic project :

    ionic cordova platform rm android

    ionic cordova platform add [email protected]

    #13867

    Wiji Hatmoko
    Participant

    Oke… Thanks you Alex..

    I’ll try this!

    #13869

    Wiji Hatmoko
    Participant

    Now about this!

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia>npm install

    npm WARN deprecated [email protected]: This plugin has been deprecated since it is now included in the latest versions of cordova-ios

    npm WARN deprecated [email protected]: babili has been renamed to babel-minify. Please update to babel-minify

    npm WARN deprecated [email protected]: babili has been renamed to babel-minify. Please update to babel-preset-minify

    npm WARN deprecated [email protected]: Please update to the latest object-keys

    npm WARN deprecated [email protected].3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.

    npm WARN tarball tarball data for @ionic/[email protected] (sha512-BEMB+WhtpTZCnBA6t+TMtfZaukcqNS5zlTAV53s+U92p+6Hg6BLVzmOvxqm0tA/TSfwXNFtQ08lxS8uMFUxivA==) seems to be corrupted. Trying one more time.

    npm WARN tarball tarball data for [email protected]^1.7.4 (sha512-Qx+uu2+H6DzTxg7gHluFhXvIvTBDMxHqq601aE/wKYmxNEjyCVoJS+lSS7EfXgxElZGdrNHvsTDMUueSELfmtA==) seems to be corrupted. Trying one more time.

    npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.

    npm WARN [email protected] requires a peer of [email protected]^6.0.0 but none is installed. You must install peer dependencies yourself.

     

    npm ERR! path C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\node_modules\.staging\@ionic\app-scripts-077c9faf\bin\closure-compiler.jar

    npm ERR! code EPERM

    npm ERR! errno -4048

    npm ERR! syscall unlink

    npm ERR! Error: EPERM: operation not permitted, unlink ‘C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\node_modules\.staging\@ionic\app-scripts-077c9faf\bin\closure-compiler.jar’

    npm ERR!  { Error: EPERM: operation not permitted, unlink ‘C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\node_modules\.staging\@ionic\app-scripts-077c9faf\bin\closure-compiler.jar’

    npm ERR!   cause:

    npm ERR!    { Error: EPERM: operation not permitted, unlink ‘C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\node_modules\.staging\@ionic\app-scripts-077c9faf\bin\closure-compiler.jar’

    npm ERR!      errno: -4048,

    npm ERR!      code: ‘EPERM’,

    npm ERR!      syscall: ‘unlink’,

    npm ERR!      path: ‘C:\\Users\\Wiji Hatmoko\\Documents\\Ionic\\ciptacendekia\\node_modules\\.staging\\@ionic\\app-scripts-077c9faf\\bin\\closure-compiler.jar’ },

    npm ERR!   stack: ‘Error: EPERM: operation not permitted, unlink \’C:\\Users\\Wiji Hatmoko\\Documents\\Ionic\\ciptacendekia\\node_modules\\.staging\\@ionic\\app-scripts-077c9faf\\bin\\closure-compiler.jar\”,

    npm ERR!   errno: -4048,

    npm ERR!   code: ‘EPERM’,

    npm ERR!   syscall: ‘unlink’,

    npm ERR!   path: ‘C:\\Users\\Wiji Hatmoko\\Documents\\Ionic\\ciptacendekia\\node_modules\\.staging\\@ionic\\app-scripts-077c9faf\\bin\\closure-compiler.jar’,

    npm ERR!   parent: ‘wplms2’ }

    npm ERR!

    npm ERR! The operation was rejected by your operating system.

    npm ERR! It’s possible that the file was already in use (by a text editor or antivirus),

    npm ERR! or that you lack permissions to access it.

    npm ERR!

    npm ERR! If you believe this might be a permissions issue, please double-check the

    npm ERR! permissions of the file and its containing directories, or try running

    npm ERR! the command again as root/Administrator (though this is not recommended).

     

    npm ERR! A complete log of this run can be found in:

    npm ERR!     C:\Users\Wiji Hatmoko\AppData\Roaming\npm-cache\_logs\2018-07-20T11_05_57_036Z-debug.log

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia>`

    #13878

    Wiji Hatmoko
    Participant

    ionic cordova build –release android

     

    [04:08:30]  lint finished in 9.66 s

    Installing “cordova-plugin-file-transfer” for android

    Failed to install ‘cordova-plugin-file-transfer’: CordovaError: Version of installed plugin: “[email protected]” does not satisfy dependency plugin requirement “[email protected]>=5.0.0”. Try –force to use installed plugin as dependency.

    at C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:557:37

    at _fulfilled (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)

    at self.promiseDispatch.done (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)

    at Promise.promise.promiseDispatch (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)

    at C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:509:49

    at flush (C:\Users\Wiji Hatmoko\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)

    at _combinedTickCallback (internal/process/next_tick.js:131:7)

    at process._tickCallback (internal/process/next_tick.js:180:9)

    Failed to restore plugin “cordova-plugin-file-transfer” from config.xml. You might need to try adding it again. Error: Version of installed plugin: “[email protected]” does not satisfy dependency plugin requirement “[email protected]>=5.0.0”. Try –force to use installed plugin as dependency.

    ANDROID_HOME=C:\Users\Wiji Hatmoko\AppData\Local\Android\sdk

    JAVA_HOME=C:\Program Files\Java\jdk1.8.0_171

    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_b5b2dwjvrf2q2q4f9ygwpbk61.run(C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\build.gradle:137)

    BUILD FAILED

    Total time: 3.646 secs

    FAILURE: Build failed with an exception.

    * Where:

    Build file ‘C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\build.gradle’ line: 252

    * What went wrong:

    A problem occurred evaluating root project ‘android’.

    > Could not get unknown property ‘ANDROID_SDK_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

    (node:8484) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:

    FAILURE: Build failed with an exception.

    * Where:

    Build file ‘C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\build.gradle’ line: 252

    * What went wrong:

    A problem occurred evaluating root project ‘android’.

    > Could not get unknown property ‘ANDROID_SDK_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

    at ChildProcess.whenDone (C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:925:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

    (node:8484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

    (node:8484) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

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

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia>

    #13917

    Alex
    Keymaster

    Please try running the command with sudo as prefix if you are on MacOs . If on windows then please open the cmd as administrator :

    https://www.askvg.com/guide-different-ways-to-open-command-prompt-as-administrator-in-windows/ 

     

    Then please try running the npm install command after taking up backup of everything and replacing the package.json file with that given above .

    After it some errors might appear .

    for cordova-plugin-file plugin please try out running these commands :

    cordova clean

    cordova plugin add [email protected] --force

     

    then

    cordova plugin save

     

     

    #13944

    Wiji Hatmoko
    Participant

    I have did above.

    But this happens again when use command : <span style=”background-color: #fafafa; color: #444444; font-family: Menlo, Monaco, Consolas, ‘Courier New’, monospace; font-size: 14.4px; white-space: pre-line;”>ionic cordova build –release android</span>

     

    Failed to restore plugin “cordova-plugin-file-transfer” from config.xml. You might need to try adding it again. Error: Version of installed plugin: “[email protected]” does not satisfy dependency plugin requirement “[email protected]>=5.0.0”. Try –force to use installed plugin as dependency.

    ANDROID_HOME=C:\Users\Wiji Hatmoko\AppData\Local\Android\sdk

    JAVA_HOME=C:\Program Files\Java\jdk1.8.0_171

    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_b5b2dwjvrf2q2q4f9ygwpbk61.run(C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\build.gradle:137)

     

    FAILURE: Build failed with an exception.

     

    * Where:

    Build file ‘C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\build.gradle’ line: 252

     

    * What went wrong:

    A problem occurred evaluating root project ‘android’.

    > Could not get unknown property ‘ANDROID_SDK_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

     

    BUILD FAILED

     

    Total time: 2.426 secs

     

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

    (node:17584) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:

    FAILURE: Build failed with an exception.

     

    * Where:

    Build file ‘C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\build.gradle’ line: 252

     

    * What went wrong:

    A problem occurred evaluating root project ‘android’.

    > Could not get unknown property ‘ANDROID_SDK_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

     

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

    at ChildProcess.whenDone (C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:925:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

    (node:17584) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

    (node:17584) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

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

     

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekia>

    #13957

    Alex
    Keymaster
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.