Error:Failed to resolve: com.android.support.constraint:constraint-layout-solver:1.0.2
Install artifact and sync project
Open File
Show in Project Structure dialog
go to file>settings>Android sdk>sdk Tools>and update your support repository that fixed my problem
I encountered this problem as well. It was perplexing to me because the SDK manager showed both ConstraintLayout and its solver as installed. What I did to solve it was the following:
The next time you refresh your gradle projects, everything should work just fine!
first add google maven repository in module level gradle file(important part)
repositories {
maven {
url 'https://maven.google.com'
}
}
then add this line in dependencies:
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support.constraint:constraint-layout-solver:1.0.2'