android - 在 Eclipse ADT 中找不到 v7 首选项支持库

标签 android eclipse android-support-library android-appcompat

我目前正在使用 Eclipse ADT 23.0.7 进行 Android 应用程序开发。我的 SDK 管理器针对 Android 6.0 进行了更新,如下所示。

enter image description here .

我想在我的项目中使用v7 Preference Support Library。但是,不幸的是,我无法在我的 (sdk)/extras/android/support/v7 目录中找到它,如 Android Developer Website 中所述. enter image description here

我不知道该怎么办。在此先感谢您提供的任何帮助!

更新 1

我也尝试重新下载该库,但没有任何反应。偏好库仍然缺失。

最佳答案

Google 停止提供 Eclipse 项目。它促使开发人员从 Eclipse 迁移到 Android Studio。所以所有库都可以作为 *.aar 文件使用

但在 Eclipse 中仍然可以访问这些文件。 在 \android-sdk\extras\android\m2repository\com\android\support\preference-v7\23.0.1\

找到你的库的 aar

然后使用 CommonsWare 人的说明 Consuming AARs from Eclipse :

  1. UnZIP the AAR into some directory.

  2. Create an empty directory that will be the home for the Android library project. For the rest of these steps, I will refer to this as “the output directory”.

  3. Copy the AndroidManifest.xml, res/, and assets/ directories from the AAR into the output directory.

  4. Create a libs/ directory in the output directory. Copy into libs/ the classes.jar from the root of the unZIPped AAR, plus anything in libs/ in the AAR (e.g., mediarouter-v7 has its own JAR of proprietary bits).

  5. Decide what build SDK you want to try to use. You might just choose the highest SDK version you have installed. Or, you can use the android:minSdkVersion and the -vNN resource set qualifiers to get clues as to what a good build SDK might be. If desired, create a project.properties file with a target=android-NNN line, where NNN is your chosen build SDK. Or, you can address this in Eclipse later on.

  6. Import the resulting project into Eclipse, and if needed adjust the build SDK (Project > Properties > Android). Also, you will need to attach to this library project any library projects it depends upon (e.g., mediarouter-v7 depends upon appcompat-v7).

关于android - 在 Eclipse ADT 中找不到 v7 首选项支持库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32498736/

相关文章:

java - 将字节流转换为对象

android - ViewPager2 不破坏 fragment

eclipse - 安装额外的 eclipse indigo 文件

java - 如何创建其中包含 MySQL 数据库的可执行文件?

android - anchor FloatingActionButton

android - recyclerview 的所有版本在哪里?

java - 如何添加抽屉导航?

android - ITelephony .java 无法正确生成

gradle - 试图弄清楚如何将 GestureDetectorCompat 添加到我的项目中

android - 使用Android NDK实现EDSDK