How to fix it I use Android Studio I tried to uninstall and reinstall sdk and did not work
shows errorCould not find com.android.support.constraint:constraint-layout:1.1.3
. Searched in the following locations:
file:/C:/Users/rza/AppData/Local/Android/Sdk/extras/m2repository/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.pom
file:/C:/Users/rza/AppData/Local/Android/Sdk/extras/m2repository/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.jar
file:/C:/Users/rza/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.pom
file:/C:/Users/rza/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.jar
file:/C:/Users/rza/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.pom
file:/C:/Users/rza/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.jar
https://jcenter.bintray.com/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.pom
https://jcenter.bintray.com/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.jar
Required by: project :app
how to change the Path for Gradle?
Constraint layout 1.1.3 is not hosted on jcenter. Check that you have the maven central in your build.gradle
:
repositories {
...
mavenCentral()
...
}
In the build.gradle (Module:app) go to dependencies, you will find this line
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
try changing it to
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
you might not have the latest 1.1.3 version installed yet
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.