Running ionic run android failed and throws this error
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 resolve co.paystack.android:paystack:1.2.0.
Required by:
:android:unspecified
> Could not GET 'https://repo1.maven.org/maven2/co/paystack/android/paystack/1.2.0/paystack-1.2.0.pom'.
> repo1.maven.org
> Could not GET 'https://dl.bintray.com/paystack/maven/co/paystack/android/paystack/1.2.0/paystack-1.2.0.pom'.
> dl.bintray.com
> Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/co/paystack/android/paystack/1.2.0/paystack-1.2.0.pom'.
> oss.sonatype.org
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Building the app first before trying to run it fixes it.
Running
ionic run android
failed and throws this errorBuilding the app first before trying to run it fixes it.