Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 629
user3541485 Avatar asked Oct 23 '18 11:10

user3541485


2 Answers

ionic cordova platform remove android

ionic cordova platform add [email protected]

like image 115
2sec Avatar answered Nov 10 '22 09:11

2sec


Seems that the problem started early today.

There's a few things that could work:

The step that worked for me was:

Edit "\platforms\android\CordovaLib\build.gradle" instead "\platforms\android\build.gradle" and put jcenter() after maven… as posted here

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

You can try:

Edit 'platforms/android/build.gradle', you can see more here, as pointed by 'netexpo', here, in the Ionic forum.

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

Another one:

Posted by MeterMoDev here

Was able to build as well but did the following:

Closed Android Studio also had VS closed. Removed the Android platform. Add the Android platform again. Before running any builds open up the \platforms\android\build.gradle and edit the repositories like @netexpo recommended, and save the file. Open up your project in Android Studio waited for studio do sync the gradle file, it downloaded a couple of items. After the sync process was completed the file had been build.

 repositories {     mavenCentral()     maven {         url "https://maven.google.com"     }     jcenter() } 
like image 43
lucasmds Avatar answered Nov 10 '22 08:11

lucasmds