Ionic 3 prod release build issue with intellij-core-26.0.1

  • A+
Category:Languages

I am creating release APK using the following versions : node - 8.12.0 gradle - 4.10.2 ionic CLI - 4.0.5 Cordova - 8.0.0

When I run the

ionic cordova build android --prod --release 

I am getting the following error.

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.jar 

When I place the "intellij-core-26.0.1" URL in browser, its showing status 404.

Anyone, Please suggest

 


Go to platforms/android/build.gradle

Change this:

jcenter()     maven {    url "https://maven.google.com" } 

to

maven {    url "https://maven.google.com" } jcenter()  //Just move this line   

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: