Error while build

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all dependencies for configuration ‘:_debugCompile’.
Could not find com.android.support:support-v4:23.0.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/23.0.0/support-v4-23.0.0.pom
https://repo1.maven.org/maven2/com/android/support/support-v4/23.0.0/support-v4-23.0.0.aar

BUILD FAILED
file:/C:/Users/Ritesh/AppData/Local/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.pom
file:/C:/Users/Ritesh/AppData/Local/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.aar
Required by:
:android:unspecified > com.google.android.gms:play-services-ads:8.4.0 > com.google.android.gms:play-services-basement:8.4.0

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Total time: 12.445 secs
Error: Error code 1 for command: cmd with args: /s,/c,“C:\Users\Ritesh\srmConnect6thJune\srm-connect\platforms\android\gradlew cdvBuildDebug -b C:\Users\Ritesh\srmConnect6thJune\srm-connect\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true”

You’re missing support libraries.

file:/C:/Users/Ritesh/AppData/Local/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.pom
file:/C:/Users/Ritesh/AppData/Local/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.aar
Required by:
:android:unspecified > com.google.android.gms:play-services-ads:8.4.0 > com.google.android.gms:play-services-basement:8.4.0

Run android from the terminal and install the necessary support libs

1 Like