SildingMenu在androidstudio上面的安装
2016-05-11 19:56
555 查看
G:\开源包 & 源码包\SlidingMenu-master
下载的 SlidingMenu 开源框架包解压缩之后的到的文件夹
复制library文件夹
直接粘贴到项目中 和APP文件夹平级
然后选择settings.gradle中添加如下
include ':app', ':library'
然后在APP 的bulid.gradle中添加依赖如下
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile project(':library')
}
选择sync now 同步之后出现很多问题
然后根据APP bulid.gradle 修改library中的build.gradle如下
dependencies {
compile 'com.android.support:support-v4:13.0.0'
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 20
targetSdkVersion 23
}
修改后try again 然后会提示一个错误改成Math就可以了
修改完成之后 build project 就可以正常使用了
下载的 SlidingMenu 开源框架包解压缩之后的到的文件夹
复制library文件夹
直接粘贴到项目中 和APP文件夹平级
然后选择settings.gradle中添加如下
include ':app', ':library'
然后在APP 的bulid.gradle中添加依赖如下
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile project(':library')
}
选择sync now 同步之后出现很多问题
然后根据APP bulid.gradle 修改library中的build.gradle如下
dependencies {
compile 'com.android.support:support-v4:13.0.0'
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 20
targetSdkVersion 23
}
修改后try again 然后会提示一个错误改成Math就可以了
修改完成之后 build project 就可以正常使用了
相关文章推荐
- Android之圆角矩形
- ListView的使用和优化
- Android开发学习路线图
- android自定义键盘实现
- Android开发环境的搭建步骤总结:
- TextColor的selector资源文件
- Android.mk使用
- Android中如何获取sd卡大小
- Android下摄像头预览数据
- Android自定义倒计时控件
- Android 欢迎页面
- 王学岗触摸事件解析
- android自动连接指定wifi
- Android开发笔记之《Window下安装Ubuntu双系统,Grub无法显示Window选项》
- Android自动化测试技巧
- 一种快速毛玻璃虚化效果实现--Android
- Android 综合揭秘 —— 全面剖释 Service 服务
- Android布局调试工具HierarchyViewer中只显示设备的原因
- android handler 弱引用
- Android 常见bug汇总