as 模块 使用 android stdio modules
1.在gradle 中添加 变量
# Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. org.gradle.jvmargs=-Xmx1536m # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true # org.gradle.parallel=true COMPILE_SDK_VERSION=24 BUILD_TOOLS_VERSION=24.0.3 JUNIT_VERSION=4.12 SUPPORT_VERSION=24.2.1 #verticalrefreshlayout LIB_MINI_SDK_VERSION=16 LIB_TARGET_SDK_VERSION=24 #sample SAMPLE_MIN_SDK_VERSION=16 SAMPLE_TARGET_SDK_VERSION=23
2.修改app 中 引用
apply plugin: 'com.android.application' android { compileSdkVersion Integer.parseInt(COMPILE_SDK_VERSION) buildToolsVersion BUILD_TOOLS_VERSION defaultConfig { applicationId "cn.baoyou.curiousby.com.newrproject" minSdkVersion SAMPLE_MIN_SDK_VERSION targetSdkVersion SAMPLE_TARGET_SDK_VERSION versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile "com.android.support:appcompat-v7:$SUPPORT_VERSION" compile "com.android.support:recyclerview-v7:$SUPPORT_VERSION" compile "com.android.support:design:$SUPPORT_VERSION" compile 'com.tomergoldst.android:tooltips:1.0.6' compile 'q.rorbin:badgeview:1.0.5' compile 'com.muddzdev:styleabletoast:1.0.5' compile 'com.wang.avi:library:2.1.3' testCompile "junit:junit:$JUNIT_VERSION" compile project(":verticalrefreshlayout") compile project(":xrecyclerview") }
3. 选择 file -> new -> import module
3. 下载 github 上一些开源 module 引入
本文 是引用 github xrecyclerview 链接https://github.com/curoiusby/XRecyclerView
4. 修改开源 module 中 配置
5. snyc now
6.test
补充内容:
as 快捷键
注释代码(//) | Cmd + / | Ctrl + / |
注释代码(/**/) | Cmd + Option + / | Ctrl + Shift + / |
格式化代码 | Cmd + Option + L | Ctrl + Alt + L |
清除无效包引用 | Option + Control + O | Alt + Ctrl + O |
查找 | Cmd + F | Ctrl + F |
查找+替换 | Cmd + R | Ctrl + R |
上下移动代码 | Option + Shift + Up/Down | Alt + Shift + Up/Down |
删除行 | Cmd + Delete | Ctrl + Y |
扩大缩小选中范围 | Option + Up/Down | Ctrl + W/Ctrl + Shift + W |
快捷生成结构体 | Cmd + Option + T | Ctrl + Alt + T |
快捷覆写方法 | Cmd + O | Ctrl + O |
快捷定位到行首/尾 | Cmd + Left/Right | Ctrl + Left/Right |
折叠展开代码块 | Cmd + Plus,Minus | Ctrl + Plus/Minus |
折叠展开全部代码块 | Cmd + Shift + Plus,Minus | Ctrl + Shift + Plus,Minus |
文件方法结构 | Cmd + F12 | Ctrl + F12 |
查找调用的位置 | Ctrl + Option + H | Ctrl + Alt + H |
大小写转换 | Cmd + Shift + U | Ctrl + Shift + U |
捐助开发者
在兴趣的驱动下,写一个免费
的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信捐助,加入it技术扣扣群),没钱捧个人场,谢谢各位。
谢谢您的赞助,我会做的更好!
相关推荐
android官网下载的android stdio,我放在网盘了,可以通过网盘链接下载哦
Android Stdio控制开发板
使用androidstdio开发的学生选课系统,用于安卓开发课程设计
从Eclipse转成android stdio不容易
解压压缩包,讲里面的jar文件放入android stdio安装文件夹下的lib文件夹里 重启android stdio即可
自己用android stdio 写的日历APP,把源代码上传到这里供大家交流学习!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
android stdio ini文件存储
android stdio 文件的使用的简单示例
android stdio 202401 正式版
android stdio 的练习记录
android stdio工程 仿通讯录实现字母排序列表
http://knight-black-bob.iteye.com/blog/2370462 QQ 实战 客户端 android stdio
这是android app生成二维码最简单的方法,里面代码几行实现。 我有些教程,教程里面有如何把zxing库导入到工程,方法很简单。 要是学不会,不会用的话来骂我……
AndroidStudio冰点炒股助手源码(AndroidStdio入门级好教材) 开发IDE:Android Studio V3.1.0
本文档教你如何实现Android Stdio新建一个项目,把项目关联到Bmob云后端。
Android Stdio开发的客户端,eclipse开发的服务器,采用多线程模式,利用Socket通信实现数据传输。
androidstdio2022.1.1.20-windows
用Android stdio实现人体BMI指数计算,并在下一页面显示。实现了页面的跳转显示,在代码的关键部分我有添加注释,特别适合初学者学习。
基于Android的BlueTooth开发手机蓝牙和蓝牙模块通讯,
java开发抖音视频源码! 安装说明: 安卓语言是:android stdio 苹果语言是:OC 环境是:php5.6 数据库是:sql5.5 伪静态设置:thinkphp 上手有难度,自测一下吧!!