我使用的Android Studio 2.2中开始,并试图与ConstraintLayout发挥,但是当我让Android Studio中自动添加它,它给我的错误使用1.0.0版本,alpha7
Using version 1.0.0-alpha7 of the constraint library, which is obsolete
,当我尝试使用快速修复升级它,我得到这个错误
Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha8.
我认为这是Android Studio中的错误。我该怎么做才能解决它?
我目前的解决方案是抑制错误。
从顶层'build.gradle'文件中,您正在使用什么版本的Android Gradle for Gradle?你是否下载了SDK管理器中的'ConstraintLayout'位? – CommonsWare
谢谢,这是我的问题, 我在想,gradle会像其他库一样下载, ,更令人困惑的是我需要使用新的SDK Manager。 – humazed
我的理解是,Gradle *可以根据需要自动下载'ConstraintLayout'工件。也许这是被搁置直到ConstraintLayout被完全释放,而不是处于alpha状态。 – CommonsWare