我正在尝试将一个项目导入到 Eclipse 中,但出现错误:
The import android.support.v7.widget.Toolbar cannot be resolved The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.ActionBarDrawerToggle$DelegateProvider
我从其他问题中找到了这个答案 - Why the import android.support.v7.widget.Toolbar cannot be resolved in my project 所以这似乎是Android支持库的问题。但是当我尝试更新我的版本时,它只有 20 版可用。另一个答案说他们可以升级他们的版本,但我似乎没有那个选项。如何获取最新版本的支持库?
最佳答案
How to do get the latest version of the Support Library?
如您所见official documentation :
重要提示 支持库现在可通过 Google 的 Maven 存储库获得。您无需从 SDK 管理器下载支持存储库。
这意味着 SDK Manager 和 sdk\extras\android
文件夹将不包含最新的支持库。
只需迁移到 Android Studio。
关于java - 如何在 Eclipse 中更新到最新版本的 Android 支持库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48398764/