Error:(52, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.1

An error is reported when importing a project into as, Failed to resolve: com.android.support.constraint:constraint-layout:1.0.1,
It is obviously a problem with the dependency of constraint-layout.
How to solve this problem is actually not difficult, mainly because there is no constraint-layout: 1.0.1 in your Android studio. How to determine which version is in your Android studio?

The first step is to click on the SDK Manager at 1, and then a larger dialog box will pop up.

The second step, click SDK tools.

The third step, check the show Package Details in the lower right corner

In the fourth step, you can see which version of constraint-layout you have installed. If none of them are installed, then quickly check one, and then click ok, and Android studio will start downloading.


We just mentioned that there is no constraint-layout: 1.0.1 in your Android studio, so an error is reported, so the way to solve this bug is to install the version of constraint-layout: 1.0.1.


Of course, for example, if you install constraint-layout: 1.0.2 instead of constraint-layout: 1.0.1 in your Android studio, you can also change constraint-layout: 1.0.1 in the app's build.gradle to constraint- layout: 1.0.2. This problem can also be solved after the Sync button.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326347605&siteId=291194637