It happened to me too, I got the same error message.
Now, after trying uninstalling everything and installing them again in the same order I have been doing it in the last couple of weeks, I get these messages:
* What went wrong:
Could not resolve all files for configuration ':debugCompileClasspath'.
> Could not find livedata-core.aar (android.arch.lifecycle:livedata-core:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/livedata-core/1.1.0/livedata-core-1.1.0.aar
> Could not find viewmodel.aar (android.arch.lifecycle:viewmodel:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/viewmodel/1.1.0/viewmodel-1.1.0.aar
> Could not find runtime.aar (android.arch.core:runtime:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/runtime/1.1.0/runtime-1.1.0.aar
I just tried lucasmds solution but it didn’t work; it might have worked If I hadn’t tried uninstalling and installing things.
Thanks a lot lucasmds that totally did the trick. the meven and Jcenter were inverted in my project. funny how that can break a project. any advice on how or where to look when I have similar problems would be much appreciated.
I have the same issue, the @lucasmds solution didn’t work.
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find support-vector-drawable.aar (com.android.support:support-vector-drawable:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-vector-drawable/27.1.1/support-vector-drawable-27.1.1.aar
> Could not find livedata-core.aar (android.arch.lifecycle:livedata-core:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/livedata-core/1.1.0/livedata-core-1.1.0.aar
> Could not find viewmodel.aar (android.arch.lifecycle:viewmodel:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/viewmodel/1.1.0/viewmodel-1.1.0.aar
> Could not find runtime.aar (android.arch.core:runtime:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/runtime/1.1.0/runtime-1.1.0.aar
First I tried modifying only the platforms/android/CordovaLib/build.gradle file, without success.
Then I tried your last solution and still didn’t work, but I read the logs and there was an error with goggle(). I just removed that and the building process now won’t throw any errors!
Thank you @lucasmds. In my case, I tried first the google() trick but it didn’t work, then I removed/added android platform from Cordova and it’s running normally
*My info:Ionic: Ionic CLI: 4.10.3, @ionic/angular 4.0.1, cordova-lib@8.1.1, Cordova Platforms : android 7.1.4)System: