Apk Build error


#1

build error


D:\Users\pasupathi\Desktop\cal - Copy>ionic cordova build --release android
Running app-scripts build: --platform android --target cordova
[13:05:36]  build dev started ...
[13:05:36]  clean started ...
[13:05:36]  clean finished in 5 ms
[13:05:36]  copy started ...
[13:05:36]  deeplinks started ...
[13:05:36]  deeplinks finished in 17 ms
[13:05:36]  transpile started ...
[13:05:45]  transpile finished in 8.67 s
[13:05:45]  preprocess started ...
[13:05:45]  preprocess finished in 1 ms
[13:05:45]  webpack started ...
[13:05:46]  copy finished in 9.43 s
[13:05:54]  webpack finished in 9.08 s
[13:05:54]  sass started ...
Without `from` option PostCSS could generate wrong source map and will not find
Browserslist config. Set it to CSS file path or to `undefined` to prevent this w
arning.
[13:06:02]  sass finished in 7.32 s
[13:06:02]  postprocess started ...
[13:06:02]  postprocess finished in 23 ms
[13:06:02]  lint started ...
[13:06:02]  build dev finished in 25.24 s
> cordova build android --release
Android Studio project detected

[13:06:07]  lint finished in 5.47 s
ANDROID_HOME=C:\Users\pasupathi\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_162
studio
:wrapper


BUILD SUCCESSFUL in 18s
1 actionable task: 1 executed

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 re
moved in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_janvx8k2noddu2hzr61mcck9.run(D:\Users\pasupathi\Desktop\cal - C
opy\platforms\android\app\build.gradle:143)

:CordovaLib:preBuild
 UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseAidl

:CordovaLib:compileReleaseRenderscript

:CordovaLib:checkReleaseManifest

:CordovaLib:generateReleaseBuildConfig

:CordovaLib:prepareLintJar

:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources

:CordovaLib:packageReleaseResources

:CordovaLib:platformAttrExtractor

:CordovaLib:processReleaseManifest

:CordovaLib:javaPreCompileRelease

:CordovaLib:processReleaseJavaRes
 NO-SOURCE
:app:preBuild
 UP-TO-DATE
:app:preReleaseBuild

:app:compileReleaseAidl

:CordovaLib:packageReleaseRenderscript

NO-SOURCE
:app:compileReleaseRenderscript

:app:checkReleaseManifest

:app:generateReleaseBuildConfig

:app:prepareLintJar
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources

:app:createReleaseCompatibleScreenManifests

:app:processReleaseManifest

:app:splitsDiscoveryTaskRelease

:app:compileReleaseNdk NO-SOURCE
:CordovaLib:mergeReleaseShaders

:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets

:app:mergeReleaseShaders

:app:compileReleaseShaders

:app:generateReleaseAssets
:app:mergeReleaseAssets

:CordovaLib:compileReleaseNdk NO-SOURCE
:CordovaLib:mergeReleaseJniLibFolders

:CordovaLib:transformNativeLibsWithMergeJniLibsForRelease

:CordovaLib:transformNativeLibsWithStripDebugSymbolForRelease

:CordovaLib:transformNativeLibsWithIntermediateJniLibsForRelease

:app:mergeReleaseJniLibFolders

:app:processReleaseJavaRes
 NO-SOURCE
:CordovaLib:processReleaseResources

:CordovaLib:generateReleaseSources

:CordovaLib:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
:app:processReleaseResources
:app:generateReleaseSources
:app:javaPreCompileRelease
:app:compileReleaseJavaWithJavac
:app:compileReleaseSources
:app:transformClassesWithStackFramesFixerForRelease
:app:transformClassesWithDesugarForRelease
:app:transformClassesWithPreDexForRelease
:app:transformDexWithDexForRelease FAILED
42 actionable tasks: 42 executed
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.pro
cess.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.
common.process.ProcessException: No files to pass to dex.

* 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 1m 11s
(node:7068) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with ex
it 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.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.pro
cess.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.
common.process.ProcessException: No files to pass to dex.

* 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 1m 11s
    at ChildProcess.whenDone (D:\Users\pasupathi\Desktop\cal - Copy\platforms\an
droid\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:7068) 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:7068) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
 Node.js process with a non-zero exit code.


D:\Users\pasupathi\Desktop\cal - Copy>