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