首页 > 移动平台 > 详细

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

时间:2014-04-02 14:02:30      阅读:649      评论:0      收藏:0      [点我收藏+]

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 的安装及相关问题解决,布布扣,bubuko.com

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

原文:http://tdppro.blog.51cto.com/749956/1388853

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!