如何使用ZBLibrary-Android快速开发框架

如题所述

  1.下载:

点击右边这个地址 h hub.com/TommyLemon/Android-ZBLibrary

点击DownloadZip即可。

2.解压

3.用ADT-Bundle(集成了ADT插件的Eclipse)或 AndroidStudio打开

ADT打开

File > Import > Android > Existing Android Code Into Workspace > browse

> 打开 解压后的文件目录(Android-ZBLibrary-master)下的ZBLibrary(ADT)目录 > Finish

AndroidStudio打开

File > Open > 打开 解压后的文件目录(Android-ZBLibrary-master)下的ZBLibrary(AndroidStudio)目录 > OK

4.运行

ADT运行

右键ZBLibrary Demo > Run as > Android Application

AndroidStudio运行

Run > Run app

如果不能成功运行,点击以下链接查看解决方法

.cnblogs.com/tommylemon/p/5426583.html

5.将自己的项目依赖ZBLibrary

ADT依赖

1)在你的项目的workspace下打开ZBLibrary,方法和第3步一样

2)右键你的项目 > Properties > Android > Library栏目中点击 add > 选择ZBLibray > OK > OK

AndroidStudio依赖

1)打开你的项目 > 然后打开ZBLibrary,方法和第3步一样

2)右键app > Open Module Settings > Dependencies > add(点击"+")> Module Dependency > 选择 ZBLibrary > OK > OK

3)右键app > Open Module Settings > 选择app > Dependencies > 如果有android-support-v4包,选择并点击 "-" 移除 > OK,没有就 Cancel

4)右键app > Open Module Settings > 选择ZBLibrary > Dependencies >

①如果有android-support-v4包,选择并点击 "-" 移除

②点击"+" > File dependency > 选择libs目录下其中一个 > OK

③添加libs下其它jar包依赖,方法和②一样 > OK

6.重复第4步

7.查看Demo

ADT查看

打开ZBLibraryDemoApp,方法和第3步一样

AndroidStudio查看 (Android-ZBLibrary-master下的ZBLibrary(AndroidStudio)目录)

Windows下在资源管理器中查看,Mac下在Finder中查看

温馨提示:答案为网友推荐,仅供参考