How can we help?
Solving “Error: Could not resolve all artifacts for configuration ‘:classpath’ “
After opening the Augumenta-AIP-SDK-examples-gradle-v2.5.0.zip
you are getting this error:
A problem occurred configuring root project 'EXAMPLE_PROJECT'.
> Could not resolve all artifacts for configuration ':classpath'.
> Cannot resolve external dependency com.android.tools.build:gradle:4.0.1 because no repositories are defined.
Required by:
project :
it is because you are missing the repositories for the buildscript in your project root build.gradle
. You can fix it by adding the repositories like this:
buildscript { repositories { google() jcenter() } // ... }
NOTE: This error might be caused if you tried to run the example modules as a root project. Please follow the steps from here: How to use the Android examples with Android Studio?.