Gradle Sync failed could not find constraint-layout:1.0.0-alpha2

后端 未结 22 2280
忘了有多久
忘了有多久 2020-11-27 17:39

Problem :

Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha2.
Required by:
myapp:app:unspecified
         


        
22条回答
  •  难免孤独
    2020-11-27 17:45

    For me it was a completely different issue. When I installed constraint dependancy in SDK tools, the tools somehow wrote them into the wrong directory. That is

    /home/${USER}/Android/Sdk/extras/+m2repository+/com/.../constraint

    instead of

    /home/${USER}/Android/Sdk/extras/+android+/+m2repository+/com/.../constraint

    Remedy:

    Just copy the 1.0.0-alpha* directories into the latter path

提交回复
热议问题