在Eclipse ADT中找不到v7偏好支持库 [英] Can't find v7 Preference Support Library in Eclipse ADT

查看:241
本文介绍了在Eclipse ADT中找不到v7偏好支持库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 Eclipse ADT 23.0.7 进行Android应用程式开发。我的SDK经理已更新为 Android 6.0 ,如下所示。



我想在我的项目中使用 v7偏好支持库。但是,不幸的是,我无法在我的(sdk)/ extras / android / support / v7 目录中找到它,如

我不知道该怎么办感谢您的任何帮助!

更新1

我也尝试重新下载库,但什么也没有发生。偏好图书馆仍然缺失。

I'm currently using Eclipse ADT 23.0.7 for android app development. My SDK manager is updated for Android 6.0 shown in below.

.

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

I can't figure out what to do. Thanks in advance for any kind of help!

UPDATE 1

I've also tried to re-download the library but, nothing happen. Preference library is still missing.

推荐答案

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

Google stopped to provide Eclipse projects. It pushes developers to migrate from Eclipse to Android Studio. So all libraries are available as *.aar files

但是Eclipse中的这些文件仍然是可以的。
\android-sdk\extras\android\m2repository\com\android\support\preference-v7\23.0.1找到您的库的aar \

But it is still possible to these files in Eclipse. Find the aar for your library at \android-sdk\extras\android\m2repository\com\android\support\preference-v7\23.0.1\

然后使用CommonsWare的指示从Eclipse中消耗AAR

Then use instructions from CommonsWare guy Consuming AARs from Eclipse:



创建一个空的目录,该目录将是Android
库项目的主页。对于剩下的这些步骤,我将把它称为
输出目录。

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".

复制AndroidManifest.xml,res /以及从
AAR到输出目录的资产/目录。

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

在输出目录中创建一个libs /目录。从unZIPped AAR的根中拷贝到libs /
classes.jar,加上AAR中的libs /
中的任何东西(例如,mediarouter-v7都有自己的JAR专有位)。

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).

决定要尝试使用的build SDK。您可能只需选择
,即您已安装的最高SDK版本。或者,您可以使用
android:minSdkVersion和-vNN资源集限定符来获取
关于什么是好的构建SDK可能的线索。如果需要,使用target = android-NNN行创建一个
project.properties文件,其中NNN是您选择的构建SDK的
。或者,您可以在Eclipse中解决这个问题。

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.

将生成的项目导入Eclipse,如果需要,调整
build SDK(Project>属性> Android)。此外,您需要
附加到此库项目中,任何图书馆项目都取决于
(例如,mediarouter-v7取决于appcompat-v7)。

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中找不到v7偏好支持库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆