简体   繁体   English

我的\\ sdk \\ extras \\ android \\ m2repository \\文件夹在Eclipse的Android SDK文件夹结构中在哪里?

[英]Where's my \sdk\extras\android\m2repository\ folder in Eclipse's Android SDK folder structure?

I have Android Support Library 21.0.1 and can update to 21.0.2 (though for fear of breaking things I'm not going to just yet - as the past has shown it's an enormous pain to "down"date, once you've updated something in Eclipse). 我拥有Android支持库21.0.1,并且可以更新到21.0.2(尽管由于担心会破坏我现在还不打算讨论的事情-过去的经验表明,一旦您完成了“下定日期”,这将是一个巨大的痛苦。更新了Eclipse中的内容)。

I don't have this m2repository folder that everyone keeps referring to , which I need to manually add the support-v7 compatability library in order to use a RecyclerView in my project. 我没有每个人都一直引用的m2repository文件夹,我需要手动添加support-v7兼容性库才能在项目中使用RecyclerView。

I'm using a target of Android 5.0 (API 21) Rev 1, SDK Tools 23.0.5, Platform-tools 21, Build-tools 20 . 我正在使用Android 5.0(API 21)Rev 1,SDK Tools 23.0.5,Platform-tools 21,Build-tools 20的目标 All the latest according to Eclipse and no folder is present.. How do I use a RecyclerView without having this specific v7 library available? 根据Eclipse的所有最新信息,并且没有文件夹。.如何在没有此特定v7库的情况下使用RecyclerView? I'm already using app-compat libraries v4 and v7 but not from this folder location.. 我已经在使用与应用程序兼容的库v4和v7,但未从此文件夹位置使用。

Side question: Do libraries inherit other libraries? 附带问题:库是否继承其他库? ie if I add "MyLibrary" which uses Facebook-SDK which uses app-compat-v4 is that the same as me simply using app-compat-v4 directly from my own Package? 即,如果我添加使用Facebook-SDK(使用app-compat-v4)的“ MyLibrary”,是否与我直接从自己的软件包中直接使用app-compat-v4一样?

Thank you in advance! 先感谢您!

I don't have this m2repository folder that everyone keeps referring to 我没有每个人都一直引用的m2repository文件夹

That would be installed via the "Android Repository" in the SDK Manager. 可以通过SDK Manager中的“ Android存储库”进行安装。

All the latest according to Eclipse and no folder is present 根据Eclipse的所有最新信息,并且没有文件夹

Unless you're using Maven with Eclipse, m2repository is not something you will use with Eclipse. 除非您将Maven与Eclipse m2repository使用, m2repository不会与Eclipse一起使用。

How do I use a RecyclerView without having this specific v7 library available? 在没有可用的特定v7库的情况下,如何使用RecyclerView?

By using the library project, just as you did appcompat-v7 . 通过使用库项目,就像处理appcompat-v7 You will find a recyclerview/ directory as a peer of appcompat , in the extras/android/support/v7/ directory within your Android SDK installation. 您将在Android SDK安装中的extras/android/support/v7/目录中找到一个recyclerview/目录作为appcompat的对等目录。

ie if I add "MyLibrary" which uses Facebook-SDK which uses app-compat-v4 is that the same as me simply using app-compat-v4 directly from my own Package? 即,如果我添加使用Facebook-SDK(使用app-compat-v4)的“ MyLibrary”,是否与我直接从自己的软件包中直接使用app-compat-v4一样?

For Eclipse users, android-support-v4.jar is a JAR. 对于Eclipse用户, android-support-v4.jar是一个JAR。 If Facebook's SDK is a library project, and it has android-support-v4.jar in libs/ , and your app depends upon Facebook's library project, you will get android-support-v4.jar added to your project as well. 如果Facebook的SDK是一个库项目,并且在libs/包含android-support-v4.jar ,而您的应用程序依赖于Facebook的库项目,那么您也会将android-support-v4.jar添加到您的项目中。 Basically, everything in the library project is added to your app's project. 基本上,库项目中的所有内容都会添加到您应用的项目中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM