How to fix the issue when it comes to build apk?

Friends,
I am using ionic 3 and when try to build apk I got error as

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
> Could not determine artifacts for com.android.support:support-v4:26.1.0
   > Could not get resource 'https://maven.google.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.aar'.
      > Could not HEAD 'https://maven.google.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.aar'.
         > maven.google.com

How it can fix ? Please advise asap

Thanks

Anes

Hi @anespa
I think the issue is related with android dependency.Install the needed dependencies.
The solution is to install Android Support Repository Solution