How to use #Android studio
# # #在androidstudio中 new module corresponds to new project in Eclipse
# # # NewProject is creating a working range.
# # # #在new module is divided into two categories:
>new applaction
>new Android Library
# # #在一个android工作区间中最好只放置一个项目
# # # #在studio中可以直接导入eclipse中的项目.
# # #import module is actually importing a project.
# # #Reopen Project switch work interval
# # #在setting The encoding format of the file in-->editor-->file encoding. The best three settings are unified.
# # # #在setting Auto-import of the classes used in-->editor-->general-->auto import. When you have a class with duplicate names, you need to import the package yourself manually
# # #在setting set up automatic construction of projects in-->build,execution,deployment-->compiler
# # #在setting-->appearance&behavior--Set the color of files in file colors
# # #在setting-->build,execution,deployment-->build Tools-->gradle to set the version of Gradle and work offline and work interval
# # #在setting-->tools-->tasks Set the time-out for the emulator network
# # #在terminal中可以通过cmd控制adb的各种命令
# # #version Setting the Versioning tool in control
The default is integrated SVN in Android studio. Other version control tools need to be manually configured
# # #在setting-->appearance&behavior-->appearance Set override default Fonts by option is selected to prevent garbled problems in code files
# # #在setting-->editor-->general-->other Check show Quickdoc on mouse move, you can turn on code hints when mouse moves
# # # #在setting-->editor-->general-->appearance Select Show line number to display row numbers set show right margin can be removed by the left line select Show Method separators can display a line of distinction between methods
# # #在android You must create your own template in studio to modify styles and fonts in a style
# # #在setting-->editor-->general-->code Completion set code completion to none means case insensitive at Code hints
# # #在setting-->editor-->code style-->file and code templates select the file header and set your own comment template, You can automatically generate a comment template when you create a file
>/**
* ================================================
* <p/>
* Copyright
* <p/>
* Author: ning
* <p/>
* Version: 1.0
* <p/>
* Date Created: ${date} ${time}.
* <p/>
* Description
* <p/>
* <p/>
* Revision history:
* <p/>
* =================================================
*/
# # #在android Studio Delete Project File-->project Structure Select the item you want to delete in the module and click on the-(minus)-Click OK
Sometimes you need to go back to work space to delete.
#可以通过友盟统计来打包发布app
# # How to introduce third-party jar packages in #在android studio
> Delete Project File-->project Structure-->dependencies option in Android studio to import
>
Jcenter is a common Apache Maven package for finding and sharing, and can be used with tools such as Maven, Gradle, Lvy, and SBT.
# # #对module的目录进行配置
Configuring the module's Directory
sourcesets{
Main {
manifest.srcfile ' androidmanifest.xml '//Specify the path of the Androidmanifest.xml
java.srcdirs = [' src ']//specifies the src directory path, which is the path to the Java code
resources.srcdirs = [' src ']//specifies the resource directory path, which holds Java resources
aidl.srcdirs = [' src ']//Specify the path to the Aidl file
renderscript.srcdirs = [' src ']//specifies renderscript path Renderscript is a set of C-language drawing APIs
res.srcdirs = [' res ']//specifies the path of the Android resource
assets.srcdirs = [' Assets ']//specify assets resource path
}
androidtest.setroot ('.. /')//Specify root directory path
}
# # #配置签名文件
Configure the path and password of the signature file, just configure, and do not use .<br/>
signingconfigs{
debug{
storefile file ("Debug.keystore");
}
Release {
storefile file ("Other.keystore");
Storepassword "Android"
Keyalias "Androiddebugkey"
Keypassword "Android"
}
}
<p/>
<p/>
<p/>
<p/>
# #快捷键使用
ALT + ENTER auto fix
Ctrl + P hint
Ctrl + ALT + Space Auto prompt
Ctrl + D assigns worth to go forward
Ctrl + y Delete when moving forward
Ctrl + ALT + O optimize import Package
ALT + Insert Get Get Set constructor Method ToString () method
Sout Print Statement System.out.println ()
F8 commissioning
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Androidstudio using Notes