My app was building fine until last week. Resumed work on it this week and whenever i push the app to ionic pro and build, it builds fine, but when i package, the build fails. Here is the last part of the log, where the problem shows:
Download https://jcenter.bintray.com/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.jar
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ‘:CordovaLib’.
Could not resolve all files for configuration ‘:CordovaLib:classpath’.
Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/external/com-intellij/intellij-core/26.0.1/intellij-core-26.0.1.jarTry:
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 2m 6s
(node:1) UnhandledPromiseRejectionWarning: Error: /usr/src/app/platforms/android/gradlew: Command >failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ‘:CordovaLib’.
Could not resolve all files for configuration ‘:CordovaLib:classpath’.
Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/external/com-intellij/intellij-core/26.0.1/intellij-core->26.0.1.jarTry:
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 2m 6s
at ChildProcess.whenDone (/usr/src/app/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:1) 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:1) [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.
$ cordova build android success
Running after script…
$ run “clean-up”
Running Stage clean-up for Job: 6258383
I do not know how do i change the intellij version.