问题 :
Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha2.
Required by:
myapp:app:unspecified
背景: Android Studio 2.2 P 1
原文由 NotCool 发布,翻译遵循 CC BY-SA 4.0 许可协议
问题 :
Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha2.
Required by:
myapp:app:unspecified
背景: Android Studio 2.2 P 1
原文由 NotCool 发布,翻译遵循 CC BY-SA 4.0 许可协议
我在 android 下的 build.gradle(app) 中添加了以下脚本,我能够编译。
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
原文由 Pavan Pyati 发布,翻译遵循 CC BY-SA 4.0 许可协议
2 回答1.3k 阅读✓ 已解决
2 回答2.6k 阅读
2 回答1.7k 阅读
1 回答2.1k 阅读
1 回答1.1k 阅读
1 回答1.3k 阅读
2 回答914 阅读
无法安装/更新
ConstraintLayout
的支持库。Just open
Preferences
>Appearance & Behavior
>System Settings
>Android
and move toSDK Tools
tab.检查以下字段并安装。