'안드로이드 스튜디오'에 해당되는 글 2건

안녕하세요. 제임스 입니다. 


이번에는 안드로이드 개발을 위한 개발환경 설정에 대해 정리 하겠습니다. 


■ Java JDK 설치

기본적으로 Java JDK 가 설치 되어 있어야 합니다. 

JDK 설치는 아래 오라클 홈페이지의 Java 설치 페이지로 이동 하시면 됩니다. 

http://www.oracle.com/technetwork/java/javase/downloads/index.html



Java Platform (JDK) 8uXXX 를 선택합니다. 


동의 후 PC 버전을 선택하여 다운로드를 시작 하시면 됩니다. 

필자의 PC 는 64비트 이므로 x64 를 선택했습니다. 

참고로 32비트의 경우 x86 을 선택 하시면 됩니다. 


설치 파일을 받으신후 프로그램 설치는 Setup Wizard 따라서 그냥 설치 하시면 되는 전혀 어렵지 않은 과정이므로 생략 합니다. 



■ 개발 툴 설치

개발 툴인 Android Studio 를 아래 링크에서 다운로드 받으시면 됩니다. 

https://developer.android.com/studio/index.html


툴 설치는 Setup Wizard 가 안내하는 대로 그대로 따라 가시기만 하면 간단히 설치 가 되므로 특별히 언급하지 않겠습니다. 


다만 일부 Windows 시스템에서는 JDK 가 설치된 위치를 런처 스크립트가 찾지 못하는 경우가 있다고 합니다. 이 문제가 발생하면 올바른 위치를 나타내는 환경변수를 설정해주면 됩니다. 


Start 메뉴 > 컴퓨터 > 시스템 설정 > 고급 시스템 설정 > 고급 탭  > 환경 변수 를 클릭 하여 JDK 폴더 (예: c:\Program Files\Java\jdk1.8.1_21)를 가리키는 새 시스템 변수 JAVA_HOME 을 추가 하시면 됩니다. 


아래 동영상은 설치 방법입니다. 안드로이드 개발자 사이트에 있는 동영상입니다.


출처 : https://developer.android.com/studio/install.html



기존에는 Java 개발자들에게 아주 친숙한 eclipse 를 사용하여 안드로이드 개발이 가능 하였지만 얼마전부터 eclipse 에 대한 ADT (Android Developer Tool) 지원을 끊어 버렸습니다. 

https://android-developers.googleblog.com/2016/11/support-ended-for-eclipse-android.html


위 링크를 확인 해보시면 2015년 연말에 이미 더이상의 지원을 하지 않을 것이라고 공지 했었음을 명시하고 현재는 지원을 하고 있지 않음을 이야기 하고 있습니다. 



그래서 이제는 더이상 eclipse 를 IDE 로 추천하지 않습니다. 

대신 구글에서 official IDE 로 Android Studio 를 내세우고 있습니다. 그만큼 강력한 개발 툴임은 확실합니다. 물론 eclipse 를 사용하시던 분들에게는 Android Studio 의 단축키가 정말 어렵게만 느껴 질수 있지만 eclipse 단축키를 그대로 사용 하는 방법도 있습니다. 


Android Studio 단축키 및 eclipse 단축키 사용하기 포스트 내용 확인하러 가기



이제 개발 준비가 끝나셨습니다. 

시작이 반이라고 이미 안드로이드 개발자라고 하실수... 있었으면 좋겠지만, 아직 갈 길이 멀게 느껴집니다. 


혼자서 멋드러진 앱을 만들수 있는 그날까지 열심히 강좌를 올리도록 하겠습니다. 

감사합니다. 



블로그 이미지

쉬운코딩이최고

Android, Java, jsp, Linux 등의 프로그래밍 언어를 소개 합니다.

,


▶ Android Studio 의 디폴트 셋팅 되어 있는 단축키 목록

DescriptionWindows/LinuxMac
General
Save allControl + SCommand + S
SynchronizeControl + Alt + YCommand + Option + Y
Maximize/minimize editorControl + Shift + F12Control + Command + F12
Add to favoritesAlt + Shift + FOption + Shift + F
Inspect current file with current profileAlt + Shift + IOption + Shift + I
Quick switch schemeControl + ` (backquote)Control + ` (backquote)
Open settings dialogueControl + Alt + SCommand + , (comma)
Open project structure dialogControl + Alt + Shift + SCommand + ; (semicolon)
Switch between tabs and tool windowControl + TabControl + Tab
Navigating and Searching Within Studio
Search everything (including code and menus)Press Shift twicePress Shift twice
FindControl + FCommand + F
Find nextF3Command + G
Find previousShift + F3Command + Shift + G
ReplaceControl + RCommand + R
Find actionControl + Shift + ACommand + Shift + A
Search by symbol nameControl + Alt + Shift + NCommand + Option + O
Find classControl + NCommand + O
Find file (instead of class)Control + Shift + NCommand + Shift + O
Find in pathControl + Shift + FCommand + Shift + F
Open file structure pop-upControl + F12Command + F12
Navigate between open editor tabsAlt + Right/Left ArrowControl + Right/Left Arrow
Jump to sourceF4 / Control + EnterF4 / Command + Down Arrow
Open current editor tab in new windowShift + F4Shift + F4
Recently opened files pop-upControl + ECommand + E
Recently edited files pop-upControl + Shift + ECommand + Shift + E
Go to last edit locationControl + Shift + BackspaceCommand + Shift + Backspace
Close active editor tabControl + F4Command + W
Return to editor window from a tool windowEscEsc
Hide active or last active tool windowShift + EscShift + Esc
Go to lineControl + GCommand + L
Open type hierarchyControl + HControl + H
Open method hierarchyControl + Shift + HCommand + Shift + H
Open call hierarchyControl + Alt + HControl + Option + H
Writing Code
Generate code (getters, setters, constructors, hashCode/equals, toString, new file, new class)Alt + InsertCommand + N
Override methodsControl + OControl + O
Implement methodsControl + IControl + I
Surround with (if...else / try...catch / etc.)Control + Alt + TCommand + Option + T
Delete line at caretControl + YCommand + Backspace
Collapse/expand current code blockControl + minus/plusCommand + minus/plus
Collapse/expand all code blocksControl + Shift + minus/plusCommand + Shift + minus/plus
Duplicate current line or selectionControl + DCommand + D
Basic code completionControl + SpaceControl + Space
Smart code completion (filters the list of methods and variables by expected type)Control + Shift + SpaceControl + Shift + Space
Complete statementControl + Shift + EnterCommand + Shift + Enter
Quick documentation lookupControl + QControl + J
Show parameters for selected methodControl + PCommand + P
Go to declaration (directly)Control + B or Control + ClickCommand + B or Command + Click
Go to implementationsControl + Alt + BCommand + Alt + B
Go to super-method/super-classControl + UCommand + U
Open quick definition lookupControl + Shift + ICommand + Y
Toggle project tool window visibilityAlt + 1Command + 1
Toggle bookmarkF11F3
Toggle bookmark with mnemonicControl + F11Option + F3
Comment/uncomment with line commentControl + /Command + /
Comment/uncomment with block commentControl + Shift + /Command + Shift + /
Select successively increasing code blocksControl + WOption + Up
Decrease current selection to previous stateControl + Shift + WOption + Down
Move to code block startControl + [Option + Command + [
Move to code block endControl + ]Option + Command + ]
Select to the code block startControl + Shift + [Option + Command + Shift + [
Select to the code block endControl + Shift + ]Option + Command + Shift + ]
Delete to end of wordControl + DeleteOption + Delete
Delete to start of wordControl + BackspaceOption + Backspace
Optimize importsControl + Alt + OControl + Option + O
Project quick fix (show intention actions and quick fixes)Alt + EnterOption + Enter
Reformat codeControl + Alt + LCommand + Option + L
Auto-indent linesControl + Alt + IControl + Option + I
Indent/unindent linesTab/Shift + TabTab/Shift + Tab
Smart line joinControl + Shift + JControl + Shift + J
Smart line splitControl + EnterCommand + Enter
Start new lineShift + EnterShift + Enter
Next/previous highlighted errorF2 / Shift + F2F2 / Shift + F2
Build and Run
BuildControl + F9Command + F9
Build and runShift + F10Control + R
Debugging
DebugShift + F9Control + D
Step overF8F8
Step intoF7F7
Smart step intoShift + F7Shift + F7
Step outShift + F8Shift + F8
Run to cursorAlt + F9Option + F9
Evaluate expressionAlt + F8Option + F8
Resume programF9Command + Option + R
Toggle breakpointControl + F8Command + F8
View breakpointsControl + Shift + F8Command + Shift + F8
Refactoring
CopyF5F5
MoveF6F6
Safe deleteAlt + DeleteCommand + Delete
RenameShift + F6Shift + F6
Change signatureControl + F6Command + F6
InlineControl + Alt + NCommand + Option + N
Extract methodControl + Alt + MCommand + Option + M
Extract variableControl + Alt + VCommand + Option + V
Extract fieldControl + Alt + FCommand + Option + F
Extract constantControl + Alt + CCommand + Option + C
Extract parameterControl + Alt + PCommand + Option + P
Version Control / Local History
Commit project to VCSControl + KCommand + K
Update project from VCSControl + TCommand + T
View recent changesAlt + Shift + COption + Shift + C
Open VCS popupAlt + ` (backquote)Control + V



▶ 단축키 변경은 아래와 같은 방법으로 진행 하면 된다.

File > Settings > Keymap (on Windows)

File > Properties > Keymap (on Mac)


 



▶ eclipse 에 익숙한 경우 Keymap 을 eclipse 로 선택 적용 하면 된다 

 



원하는 Keymap 을 선택 한 후 추가적으로 원하는 단축키 설정을 하면 끝


※ 단축키 표 출처 : 

https://developer.android.com/studio/intro/keyboard-shortcuts.html#custom

블로그 이미지

쉬운코딩이최고

Android, Java, jsp, Linux 등의 프로그래밍 언어를 소개 합니다.

,