android-support-v7-appcompat.jar 的安装及相关问题解决

1、DownLoading the Support Libraries

   1)Start the Android SDK Manager.

   2)In the SDK Manager window, scroll to the end of the Packages list, find theExtras

     folder and, if necessary, expand to show its contents.

   3)Select the Android Support Library item.

  4)Click the Install Packages... button

After downloading, the tool installs the Support Library files to your existing Android SDK directory. The library files are located in the following subdirectory of your SDK: <sdk>/extras/android/support dirctory

2、安装支持库

  1)首先创建一个Library Project

       File->import.

       选择Existing Android Code Into Workspace ,单击 Next

      找到SDK 安装目录的支持库。比如,这里需要找到以下目录录 <sdk>/extras/android/support/v7/appcompat/.  

      单击Finish 就可以导入项目。现在你可以看到一个名为 android-support-v7-appcompat.的        新项目。

      在新项目下的libs目录下,将.jar文件加入到路径中。

      在新项目文件名称上面右键,选择Configure Build Path

      在Order and Export 标签下面,选中刚刚加入的.jar文件,将Android Dependencies不选中,单击OK

  2)将支持库加入到自己的项目中

       在项目中右键自己的项目名称,选择Properties

       在左侧边栏选中Android

       点击Add按钮

       选择库项目,比如这里的android-support-v7-appcompat.。如果此处找不到,则在安装支持库之          前需要<sdk>/extras/android/support中的文件拷贝到你的workplaces中,

        选择OK即可。

本文出自 “低调的前进” 博客,请务必保留此出处http://tdppro.blog.51cto.com/749956/1388853

android-support-v7-appcompat.jar 的安装及相关问题解决,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。