摘要: 首先,打开Android studio的软件工具,进入到界面中点击菜单的“file”选项。 首先,打开Android studio的软件工具,进入到界面中点击菜单的“file”选项。 2 在弹出的下拉的菜单中,可以看到的是为"New Module“的选项点击进入。 在弹出的下拉的菜单中,可以看到的是 阅读全文
posted @ 2016-04-24 23:58 wust小吴 阅读(569) 评论(0) 推荐(0)
摘要: Library Project(库项目) compile project(':library')引用名称为 library 的 module 。需要注意的是,被引用的 module 需要在 {@projectName}/settings.gradle 文件中进行注册。我们可以观察到,library/ 阅读全文
posted @ 2016-04-24 23:57 wust小吴 阅读(434) 评论(0) 推荐(0)
摘要: 百度经验有一种方法: 1 点击启动AndroidStudio,启动后的界面如图所示。 点击启动AndroidStudio,启动后的界面如图所示。 2 复制你需要添加的jar,并将其黏贴到app— —src— —main— —libs文件夹下,可运行的AndroidStudio项目都有像这样的目录结构 阅读全文
posted @ 2016-04-24 23:38 wust小吴 阅读(947) 评论(0) 推荐(0)
摘要: 转载地址:http://www.th7.cn/Program/Android/201507/495477.shtml File->Project Structure 可以打开下面的图: 1、通过gradle配置第三方jar包 我们看到,每个module都有一个build.gradle文件,它其实是对 阅读全文
posted @ 2016-04-24 19:35 wust小吴 阅读(11295) 评论(0) 推荐(0)
摘要: 转载地址:http://blog.csdn.net/loongggdroid/article/details/47037413 1、gradle的简单介绍 Gradle是可以用于Android开发的新一代的Build System,也是Android Studio默认的build工具。其实Gradl 阅读全文
posted @ 2016-04-24 19:18 wust小吴 阅读(447) 评论(0) 推荐(0)
摘要: 今天在看Dan Lew大神的博客发现最新的文章就是 “Don't use dynamic versions for your dependencies”Everyone, please, to stop using dynamic versions for your dependencies.In 阅读全文
posted @ 2016-04-24 18:56 wust小吴 阅读(637) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/94 This chapter introduces the basics of the Gradle command-line. You run a build using the gradle comman 阅读全文
posted @ 2016-04-24 18:53 wust小吴 阅读(1405) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/8 This chapter is a work in progress.这一章是一项正在进行中的工作。This chapter introduces the Gradle support for web ap 阅读全文
posted @ 2016-04-24 18:51 wust小吴 阅读(159) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/17 To build a Groovy project, you use the Groovy plugin. This plugin extends the Java plugin to add Groov 阅读全文
posted @ 2016-04-24 18:45 wust小吴 阅读(188) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/10 This chapter introduces some of the basics of dependency management in Gradle.<翻译>本章将会介绍一些有关Gradle依赖管理 阅读全文
posted @ 2016-04-24 18:42 wust小吴 阅读(271) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/22 7.1. The Java plugin(Java插件) As we have seen, Gradle is a general-purpose build tool. It can build pre 阅读全文
posted @ 2016-04-24 18:27 wust小吴 阅读(330) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/11 6.1. Projects and tasks 项目和任务Everything in Gradle sits on top of two basic concepts: projects and task 阅读全文
posted @ 2016-04-24 16:50 wust小吴 阅读(426) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/16 4.1. Prerequisites 前提条件Gradle requires a Java JDK or JRE to be installed, version 6 or higher (to chec 阅读全文
posted @ 2016-04-24 16:33 wust小吴 阅读(235) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/15 3.1. Getting Started 入门The following tutorials introduce some of the basics of Gradle, to help you get 阅读全文
posted @ 2016-04-24 16:26 wust小吴 阅读(231) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/6 Here is a list of some of Gradle's features.<翻译>以下是关于Gradle特点的描述Declarative builds and build-by-convent 阅读全文
posted @ 2016-04-24 16:23 wust小吴 阅读(228) 评论(0) 推荐(0)
摘要: 转载地址:http://ask.android-studio.org/?/article/7 We would like to introduce Gradle to you, a build system that we think is a quantum leap for build tech 阅读全文
posted @ 2016-04-24 16:19 wust小吴 阅读(212) 评论(0) 推荐(0)
摘要: 主要找到设置的界面:Files->Settings , android studio里面没有preferences 1.字体大小设置 进入后你也许发现字体大小或者样式不符合你的习惯,比如我是觉得代码太小看起来伤眼,Darcular主题默认的字体是12,我个人更习惯14的字体大小。 没关系,到 Pre 阅读全文
posted @ 2016-04-24 16:05 wust小吴 阅读(662) 评论(0) 推荐(0)
摘要: 建议在创建模拟器前把 SDK Manager 中的 Tools、Extras 都更新到最新。 如何弹出下面的各个图,首先直接点击 运行 然后会选择 launcher ,点击那个 ...就出来了 点击 AVD Manager 按钮 点击图中的创建按钮 选择一个设备,这里我选择 Nexus 5,然后Ne 阅读全文
posted @ 2016-04-24 15:34 wust小吴 阅读(568) 评论(0) 推荐(0)
摘要: Android Studio调试其实也非常方便,一般问题直接通过AS的DDMS的Logcat就可以搞定。AS支持类似Eclipse的DDMS的所有功能。这里要说的是疑难问题的调试方式,即断点调试。 首先先编译好要调试的程序。 如上图2所示在行号处点击设置断点。然后如1所示点击开启调试会话。 如上图所 阅读全文
posted @ 2016-04-24 15:07 wust小吴 阅读(42470) 评论(0) 推荐(1)
摘要: Gradle打包APP签名 默认情况下,debug被配置成使用一个debug keystory。debug keystory使用了默认的密码和默认key及默认的key密码。debug构建类型会自动使用debug签名配置。在你的Module的build.gradle文件中添加: 虽然经常使用项目根目录 阅读全文
posted @ 2016-04-24 14:36 wust小吴 阅读(629) 评论(0) 推荐(0)