我正在尝试将Gson库添加到我的gradle中,但是找不到库。我已经尝试了几乎所有版本,但没有任何效果。
我的依赖项如下:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
// Volley
compile 'com.mcxiaoke.volley:library:1.0.6@aar'
// Gson
compile 'com.google.code.gson:gson:2.3'
}
有什么办法吗?
最佳答案
尝试此操作并同步项目,并确保已连接Internet。
compile 'com.google.code.gson:gson:2.3.1'
关于android - 错误:找不到:com.google.code.gson:gson:2.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28346019/