Could not find com.android.support.constraint:constraint-layout的问题解决


这几天使用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进行安装。 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM