In order to develop an Android app, you must install the following software on your system:1.Xcode.2.JDK.3.Android Stuido.4.NDKRecommended installation Gradle but not necessary, more information please see gradle paragraph.Your Samsung device may display a notification that recommends you install Android file conversion, a convenient application for converting fi
Try this to solve the difficulties of accessing Google servers in ChinaLaunch Android SDK Manager, open the main interface, select "tools", "options...", pop up the "Android SDK manager-settings" window;In the Android SDK manager-settings window, fill in port"and 80 in the"http proxy server"and"http proxy mirrors.neusoft.edu.cn input boxes, and select "force c2>h
If you're not a Mac, or you don't see this address, you can download it from this address.
Http://dl.google.com/android/studio/android-studio-bundle-130.677228-mac.dmg
Download it and drag it to the Aplications to complete the installation.
After the installation is c
The most common shortcut keys for Android Studio (Mac version)
How to Set important shortcut keys:
Android Studio-> References-> Keymap1. expand and contract the Code:
Setting Method: Main menu-> Code-> Folding-> Expand/Collapse
2. Global Search:
Setting Method: Main men
Class Javalaunchhelper is implemented in both/library/java/javavirtualmachines/jdk1.8.0_25.jdk/contents/home/bin/ Java and/library/java/javavirtualmachines/jdk1.8.0_25.jdk/contents/home/jre/lib/libinstrument.dylib. One of the both would be used. Which one is undefined Windows does not have this problem, some people say JDK problem, try Jdk7 and jdk8 have this problem, later found that the reason is and gradle the latest plug-in incompatible, changed to 1.5.0 after the resolution!Classpath ' com
Extract the selected code as a variable
Command + Option + V
Extract the selected code in the method as a property (local to global, opposite to inline)
Command + Option + F
Extracting constants
Command + Option + C
Parameters extracted as methods
Command + Option + P
Version Control/Local History
Commit Project to VCS
Command + K
Update Project from VCS
Command
1, first configure the hosts and Permissions reference: http://blog.csdn.net/freewebsys/article/details/421247852, enter the installation interface3, select the installation directory this directory must have no SDK. Need to re-download a new one. Need to have enough disk spacesudo mkdir/library/androidsudo chmod 777 Android4, set the memory allocation size! Note that this is the Intel HAXM. The default is to use HAXM, fast.5, agree to the license agreement6. Start installation Note that Intel's
Configure android studio on mac, androidstudio1, first configure hosts and permission reference: http://blog.csdn.net/freewebsys/article/details/421247852. Go to the installation page.3. if you select the installation directory, there must be no sdk. You need to download a new one. Sufficient disk space is requiredSudo mkdir/Library/AndroidSudo chmod 777 Android4
Mac shortcut for Android Studio
Annotate the code (//) Cmd +/
Annotate the code (/**/) Cmd + Option +/
Format the code Cmd + Option + L
Clear invalid package reference Option + Control + O
Search for Cmd + F
Global Search class Name Cmd + O
Global search Option + Cmd + O; click Shift twice
Search + replace Cmd + R
Move Up/Down code Option + Shift + Up/Do
of the project you just createdGit push-u origin master//submit something from the local repository to address is Origin's address, under Master BranchSo far the local project has been submitted to GitHub, so refresh the page and see.I have some problems in the configuration process
Permission denied (PublicKey) solution:First, clear all the Key-pairSsh-add-dRm-r ~/.sshDelete your public-key on GitHub
Start configuring SSH key again
He authenticity of host ' github.com (1
) as in Eclipse 1: option+?enter quick fixThat is alter+enter (you need to move the cursor to the semicolon before it can be in the contents of the code, when the code line is marked red)• As in eclipse? o (View current class members): CMD+F12, show internal members? I show/Fetch messages anonymous classThe F12 display inherits from the parent class, the member of the parent interface• Select the method that can override (override) or implement (implement): Ctrl+o) as in eclipse?? G, where the l
+e:recent Fileshift+command+e:recently Change FilesShift+shift:search method or Class (Search everywhere:command+n,shift+command+n,shift+alt+command+n)Command+n:search ClassShift+command+n:search FileShift+alt+command+n:search SymbolRun/debugShift+f10:runShift+f9:debugCommand+f9:make ProjectShift+command+f9:make ModuleCOMMAND+F2: Close the currently executing taskCommand+f8: Add/Cancel BreakpointsShift+command+f8: View All BreakpointsDebug:F7:step intoF8:step overShift+f8:step outF9:resumeAlt+f9
Plus/delete ---> Collapse, unwind code blocksCommand 1 ---> Hide, show Project Sidebaralt E (self-setting) ---> Positioning highlighting errorsalt command O ---> Find variables in a class by certain charactersalt F (self-setting) ---> Displays the current file structure, which is the method in the Display class (You can manually select an anonymous method).CTRL O ---> Ways to replicate a parent classalt command/[ ---> Jump to the beginning or end of curly braces when viewing code.alt command T
As follows:
Https://developer.android.com/sdk/installing/studio.html
(Please send an email to the freeget.one@gmail.com for strong software .)
Obviously, intellij idea looks like this. Below are some of them:
Select "New Project"
Name the project and Package
Create a custom icon
Select project type
Set a name for the project
Start creation.
The wizard is similar to eclipse. However, this creation process is much longer than that of Eclipse. It is mainly because it is downloaded from gradle
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.