Android Studio:Failed to resolve

事件

更换电脑后,重新打开已有项目,提示:

  • Failed to resolve : com.nineoldandroids:library:2.4.0
  • Failed to resolve : com.jakewharton:butterknife:7.0.1

解决方法

  • 打开 【File -> Setting】

  • 搜索 Gradle(在Build Tools下面)

  • 取消勾选【Offline work】

  • Sync Project

Android Studio:Failed to resolve_第1张图片


参考:http://stackoverflow.com/questions/29384100/failed-to-resolve-com-nineoldandroidslibrary2-4-0-in-android-studio-project

你可能感兴趣的:(Android_Studio)