简体   繁体   English

如何解决Android Studio 2.0上的gradle同步问题?

[英]How I can resolve gradle sync issue on Android Studio 2.0?

enter image description here 在此输入图像描述

I've installed it as it is directed in the pic, but it never seems to be resolved. 我已按照图片中的指示安装了它,但似乎从未解决过。 I'd be on cloud nine, if somebody could help me with this. 我会在第九层,如果有人可以帮我这个。

点击蓝色链接并更新你的sdk ...当你更新它时,它再次给你错误(更新gradle版本)所以再次点击错误链接然后最终Android Studio将完美地工作。

These are the correct version that you can add in your build.gradle according to the API needs. 这些是您可以根据API需求在build.gradle中添加的正确版本。

API 22: API 22:

compile 'com.android.support:appcompat-v7:22.0.0'

API 23: API 23:

compile 'com.android.support:appcompat-v7:23.2.0'

According to your problem in your gradle file you must put below line, 根据你的gradle文件中的问题,你必须放在线下,

 compile 'com.android.support:appcompat-v7:23.2.0'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM