Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0
Go to File->Other Settings->Default Settings->Build, Execution, Deployment->Build Tools->Gradle->Uncheck Offline work option.
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:design:26.1.0
Unable to resolve dependency for
:app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:design:26.1.0
This issue usually happens when the Android Studio is not able to download that dependency.That can be due to many reasons like this Or like in my case where the Maven2
and jcenter
repositories are blocked in Company. So what can you do is like check this folder
Android-sdk\extras\android\m2repository\com\android\support\appcompat-v7
and check which all versions are available to you in the SDK, use either one of those versions ,So instead of downloading from repository studio will take that lib from SDK.
Related Topics
How to Measure Height, Width and Distance of Object Using Camera
Fragments in Android 2.2.1, 2.3, 2.0. Is This Possible
Cardview Layout_Width="Match_Parent" Does Not Match Parent Recyclerview Width
Locationlistener of Network_Provider Is Enabled But , Onlocationchanged Is Never Called
Get List of Installed Android Applications
How to Make Android Apps Which Support Both 32-Bit and 64-Bit Architecture
Android Studio Gradle Error: Multiple Dex Files Define
Which Architecture Patterns Are Used on Android
How to Insert a SQLite Record with a Datetime Set to 'Now' in Android Application
How to Get the Uuid of My Android Phone in an Application
Android Persistence Room: "Cannot Figure Out How to Read This Field from a Cursor"
Hiding the Actionbar on Recyclerview/Listview Onscroll
Is Secure.Android_Id Unique for Each Device
Android Type_Linear_Acceleration Sensor - What Does It Show
Appcompatactivity.Oncreate Can Only Be Called from Within the Same Library Group
Why Mediaplayer Throws Not Present Error When Creating Instance of It
How to Evenly Distribute Buttons Across the Width of a Linearlayout