question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cordova build android : Could not find intellij-core.jar

See original GitHub issue
cordova -v
8.1.2 (cordova-lib@8.1.1)

 cordova platform list
Installed platforms:
  android 7.1.1


cordova build android

BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app

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

* 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

thank you

see also another recent report of same issue : https://forum.ionicframework.com/t/ionic-pro-package-failed-after-successful-deploy/145355

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
arnoldsi-trcommented, Oct 23, 2018

Hi, The issue happened due the removal of jar file from the repository: https://bintray.com/bintray/jcenter/com.android.tools.external.com-intellij:intellij-core/26.0.1#files/com%2Fandroid%2Ftools%2Fexternal%2Fcom-intellij%2Fintellij-core%2F26.0.1

There is a fix for it that should be implemented in cordovalib: open: platforms\android\CordovaLib\build.gradle

Replace the order of repositories from: repositories { jcenter() maven { url "https://maven.google.com" } }

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

I think this fix should be also implemented in cordova

3reactions
arnoldsi-trcommented, Oct 23, 2018

@dpogue can’t it be a hotfix for current major version? I think it’s very important to fix this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Studio - Could not find intellij-core.jar
I solve my problem; change the platform/android/CordovaLib/build.gradle file. I put the maven repo ahead the jcenter:
Read more >
Android build miss intellij-core-26.0.1.jar
Hi all, since today I cannot build my android project because of this error : > Could not resolve all files for configuration...
Read more >
Could not find intellij-core.jar - ionic-v3
Hi Everyone! I am getting this error: Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1).
Read more >
Android Platform Guide - Apache Cordova
Android Platform Guide. This guide will help set up your development environment for building Cordova apps for Android devices and optionally use ...
Read more >
Upgrading your build from Gradle 6.x to the latest
Try running gradle help --scan and view the deprecations view of the generated build scan. Deprecations View of a Gradle Build Scan. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found