Ionic cordova build android fails after update

I get following error while running ionic cordova build android.

I have tried everything and cannot get it to build. This started happening after I updated my Android Studio, Android SDK and updated all my dependencies to the latest.

I get following error while running ionic cordova build android.

I have tried everything and cannot get it to build. This started happening after I updated my Android Studio, Android SDK and updated all my dependencies to the latest.


Task :app:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:app:mergeDebugResources’.

Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’. Could not find com.android.support:support-v4:28. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/android/support/support-v4/28/support-v4-28.pom - https://jcenter.bintray.com/com/android/support/support-v4/28/support-v4-28.pom - https://repo.maven.apache.org/maven2/com/android/support/support-v4/28/support-v4-28.pom - https://maven.google.com/com/android/support/support-v4/28/support-v4-28.pom Required by: project :app