這幾天使用android studio的各種坑之一:
Error:Could not find com.android.support.constraint:constraint-layout:1.0.2.
Required by:
project :mvp
<a href="searchInBuildFiles">Search in build.gradle files</a>
在於沒有按照上的sdk中的constraint-layout,打開file->settings,找打android sdk項里的sdk tools,點擊右下角的“Show Package Details”,然后找到Support Repository項,在下面的ContraintLayout for android和Solver for ConstraintLayout中選中版本1.0.2進行安裝。
