找不到com.android.support:appcompat-v7:24.2.1

Ngu*_*ang 5 android android-appcompat android-studio android-gradle-plugin

我尝试使用android studio在真实设备上构建应用程序,但它给我一个错误:错误:配置项目':app'时出现问题。

无法解析配置':app:_debugApkCopy'的所有依赖项。找不到com.android.support:appcompat-v7:24.2.1。必需:MyApplication:app:unspecified

appcompat-v7:24.2.1已安装并位于... \ sdk \ extras \ android \ m2repository \ com \ android \ support \ appcompat-v7 \ 24.2.1。我也将此目录放在文件>项目结构的“库存储库”中,但问题没有解决。非常感谢。

Mah*_*rma 5

将您的 android studio 更新到最新版本。


小智 0

将您的 Android Studio 更新到最新版本即可解决