Issue
I have an Ionic project that after upgrading to OSx Mojave, for some reason is not building anymore.
The project is built over Ionic 3.
I have Cordova CLI 7.0.0
When I run
ionic cordova run android
I get this error when trying to build:
* What went wrong:
Could not resolve all files for configuration ':debugCompileClasspath'.
> Could not find support-v4.aar (com.android.support:support-v4:26.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.aar
I tried changing build.gradle, downgrading cordova, upgrading cordova, tried with different android versions, but still the same issue.
Any ideas what might be wrong here?
Solution
I'm currently not really sure what causes the issue but here's what helped me:
Look inside you build.gradle files under platforms/android and platforms/android/app and move jcenter() dependency to the bottom of the repositories.
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
Answered By - Gary Großgarten
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.