Can't find Android Compatibility Package on SDK Manager

吃可爱长大的小学妹 提交于 2019-12-07 11:26:03

问题


I want to start learning to work with Fragments and I want to install the Compatibility package for pre 3.0 versions of Android.

However, I can't seem to find this package on the SDK manager. Here's everything I see:

Also, I want to install Action Bar Sherlock to work with Action Bars. On the ACS website it says "If you’re using the Eclipse Development Environment with the ADT plugin version 0.9.7 or greater you can include this as a library project" -

how do I include library projects?

Thanks


回答1:


It's called the Android Support Package.

Referencing Library Projects

Assuming you're using Eclipse, this is how you reference a library project (highlights):

  1. In the Package Explorer, right-click the dependent project and select Properties.
  2. In the Properties window, select the "Android" properties group at left and locate the Library properties at right.
  3. Click Add to open the Project Selection dialog.
  4. From the list of available library projects, select a project and click OK.
  5. When the dialog closes, click Apply in the Properties window.
  6. Click OK to close the Properties window.



回答2:


To include library projects, right-click on your project and select Properties, then Android. You will see a form to include library projects. Click Add. (The library project must be loaded in Eclipse.)




回答3:


If you have this problem when the support package is already installed then uninstalling the support package through the sdk manager then creating a new app and choosing install option from the new app wizard worked for me. It's a location issue I think and re-installing from the new app wizard takes care of the problem.



来源:https://stackoverflow.com/questions/8975870/cant-find-android-compatibility-package-on-sdk-manager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!