更新时间:2021-12-17 00:19:39
好的 - 这似乎是 Android Studio 中的一个错误.我所做的修复它:从项目和模块中删除所有依赖项(使用 F4 键)从 projectroot/.idea/libraries 中删除文件
Ok - it seems like a bug in Android studio. What I've done do fix it: remove all dependencies (use F4 key) from project and the module delete files from projectroot/.idea/libraries
打开模块gradle.buld
open the module gradle.buld
重新添加项目运行所需的所有依赖项.就我而言:
add back all dependencies that are needed by your project to work. In my case:
dependencies {
compile 'com.android.support:support-v4:19.0.0'
compile 'com.android.support:appcompat-v7:19.0.0'
compile 'com.google.android.gms:play-services:4.0.30'
}
再次同步gradle.build
Synchronize gradle.build once again
继续你的爱与恨的冒险或重返日食.
Continue your adventure of love and hate or return to eclipse.