在 Eclipse ADT 中找不到 v7 首选项支持库
Can't find v7 Preference Support Library in Eclipse ADT
我目前正在使用 Eclipse ADT 23.0.7 进行 android 应用程序开发。我的 SDK 管理器更新为 Android 6.0,如下所示。
.
I want to use v7 Preference Support Library in my project. but, unfortunately I can't found it in my (sdk)/extras/android/support/v7 directory as stated in Android Developer Website.
我不知道该怎么办。在此先感谢您提供任何帮助!
更新 1
我也尝试重新下载图书馆,但什么也没有发生。偏好库仍然缺失。
Google停止提供Eclipse项目。它促使开发人员从 Eclipse 迁移到 Android Studio。所以所有库都可以作为 *.aar 文件使用
但在Eclipse 中仍然可以访问这些文件。
在 \android-sdk\extras\android\m2repository\com\android\support\preference-v7.0.1\
找到您的图书馆的 aar
然后使用 CommonsWare 人的说明 Consuming AARs from Eclipse:
UnZIP the AAR into some directory.
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”.
Copy the AndroidManifest.xml, res/, and assets/ directories from the
AAR into the output directory.
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).
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.
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).
我目前正在使用 Eclipse ADT 23.0.7 进行 android 应用程序开发。我的 SDK 管理器更新为 Android 6.0,如下所示。
I want to use v7 Preference Support Library in my project. but, unfortunately I can't found it in my (sdk)/extras/android/support/v7 directory as stated in Android Developer Website.
我不知道该怎么办。在此先感谢您提供任何帮助!
更新 1
我也尝试重新下载图书馆,但什么也没有发生。偏好库仍然缺失。
Google停止提供Eclipse项目。它促使开发人员从 Eclipse 迁移到 Android Studio。所以所有库都可以作为 *.aar 文件使用
但在Eclipse 中仍然可以访问这些文件。
在 \android-sdk\extras\android\m2repository\com\android\support\preference-v7.0.1\
然后使用 CommonsWare 人的说明 Consuming AARs from Eclipse:
UnZIP the AAR into some directory.
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”.
Copy the AndroidManifest.xml, res/, and assets/ directories from the AAR into the output directory.
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).
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.
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).