寒光博客

Android Studio Unable to resolve dependency for ':app@debug/compileClasspath 踩坑
Android studio3.4新建工程就会出现这样的错误 问题 Unable to resolve depe...
扫描右侧二维码阅读全文
01
2019/09

Android Studio Unable to resolve dependency for ':app@debug/compileClasspath 踩坑

Android studio3.4新建工程就会出现这样的错误

问题

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0.
app:layout_constraintTop_toTopOf="parent" />
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:28.0.0.
Show Details

解决方案

一、在AndroidStudio打开setting,可以从下图的地址中找到自己本地的.gradle文件

This view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime unless you add the constraints

当我尝试将控件拖入屏幕时,出现了问题

点击一下这个像魔法棒一样的按钮就结局了

本文作者:Author:     文章标题:Android Studio Unable to resolve dependency for ':app@debug/compileClasspath 踩坑
本文地址:https://dxoca.cn/skill/272.html       百度未收录
版权说明:若无注明,本文皆为“Dxoca's blog (寒光博客)”原创,转载请保留文章出处。
Last modification:September 1st, 2019 at 11:54 pm
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment