I've been developing an Android app for a few months. When I left work last night, everything was fine, but when I returned this morning I had to restart my computer and therefore Android Studio. Now when I attempt to build the project I get the error "Failed to resolve: com.android.support", along with "Grade project sync failed. Basic functionality (e.g. editing, debugging) will not work properly."
I've tried updating to the latest Android Studio version, updating Gradle to the latest version (I used the table in this thread to properly sync the plugin/gradle versions), rolling back to a working version via Git, and switching the google()
repository to
maven {
url 'https://maven.google.com'
}
Here's a screenshot of the Build view showing the error.
And here's a screenshot of the app build.gradle file
"Failed to resolve: com.android.support" has proven to be too generic to find a solution via Google.