cordova build android : Could not find intellij-core.jar
See original GitHub issuecordova -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:
- Created 5 years ago
- Comments:12 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@dpogue can’t it be a hotfix for current major version? I think it’s very important to fix this issue