I have updated Android Studio to 3.0 and now received a lot of issues.. now stoped on point with such issue:
Could not resolve all files for configuration \'
Try this,
File -> Settings -> Build,Execution,Deployment -> Gradle -> Android Studio -> Select -Enable embedded maven repository - Apply.
My answer is for everyone that Already have google()
in repositories but still have same error
just comment google and sync project
repositories {
google()
jcenter()
}
Disable offline mode and uncomment google() and sync again...
add below code to your build.gradle (Module) to skip error
lintOptions {
abortOnError false
}
It looks to me like you're missing the google()
repository in order to fetch the dependency.
Here's the link to the pom file that you're looking for: https://dl.google.com/dl/android/maven2/com/android/tools/testutils/26.1.0-alpha01/testutils-26.1.0-alpha01.pom
Another option is
./gradlew -x:app:lintVitalRelease assemble
To quote Gradle Docs:
Excluding tasks from execution
You can exclude a task from being executed using the -x or --exclude-task command-line option and providing the name of the task to exclude.
Reference: https://docs.gradle.org/current/userguide/command_line_interface.html#sec:excluding_tasks_from_the_command_line
Archived link: http://archive.is/TsPPJ#sec:excluding_tasks_from_the_command_line