macsplex.com 로그인

검색

조회 수 622 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄 첨부
Extra Form

android-studio-1.png

 

 

1. JDK 설치

PPA를 이용하여 JDK 1.8을  설치

http://goo.gl/gwgTX

 

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

 

sudo apt-get install oracle-java8-installer

 

설치 완료 후, java -version명령으로 1.8 버전이 제대로 설치되었는지 확인

$ java -version

java version "1.8.0_20"

Java(TM) SE Runtime Environment (build 1.8.0_20-b26)

Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

 

현재 두가지 버전이 설치되어 있음.

$ sudo update-java-alternatives  -l

java-7-oracle 2 /usr/lib/jvm/java-7-oracle

java-8-oracle 3 /usr/lib/jvm/java-8-oracle

 

java-8-oracle을 디폴트로 변경함.

sudo update-java-alternatives -s java-8-oracle

 

자바환경 변수를 자동으로 설정하기 위해 패키지  설치

sudo apt-get install oracle-java8-set-default

 

 

 

2. Android studio 설치

 

 

 sudo add-apt-repository ppa:paolorotolo/android-studio

 sudo apt-get update

 sudo apt-get install android-studio

 

 

 

.bashrc에 PATH 추가

 

export PATH=$PATH:/opt/android-studio/bin

 

 

path 추가한 것을 적용합니다.

source ~/.bashrc

 

 

이제 안드로이드 스튜디오를 실행합니다.....

studio.sh

 

출처 : http://webnautes.tistory.com/539

 

 

에뮬레이터 실행이 안될경우

 

출처 : http://cialu.net/blog/android-studio-ubuntu-issue.html

$ sudo apt-get install lib64stdc++6:i386

$ sudo apt-get install mesa-utils

Second, tweak some links:

$ cd YOURPATH/Android/Sdk/tools/lib64
$ mv libstdc++/ libstdc++.bak
$ ln -s /usr/lib64/libstdc++.so.6  libstdc++

Third, relaunch your AVD device and test it.

Alternative solution, available only by terminal is to launch emulator with:

$ emulator -use-system-libs -avd YOUR_VIRTUAL_DEVICE_NAME




--------------------------------------------------광고(Advertising)-------------------------------------------------------------------------------------


TAG •

리눅스 Tip

Linux Tip

  1. 우분투 apt, dpkg에서 Could not get lock /var/lib/dpkg/lock가 나오면

    CategoryUbuntu
    Read More
  2. php5연동 curl 설치

    Read More
  3. 우분투에서 안드로이드 스튜디오 설치방법

    CategoryUbuntu
    Read More
  4. Transmageddon

    CategoryUbuntu
    Read More
  5. glances

    CategoryUbuntu
    Read More
  6. 프로세스 강제종료

    Read More
  7. 우분투에서 윈도우7 설치 USB 만들기(WinUSB)

    CategoryUbuntu
    Read More
  8. 우분투 alsa 재설정

    CategoryUbuntu
    Read More
  9. 리눅스 배포판확인 명령어

    Read More
  10. 하드속도체크 명령어

    Read More
  11. 명령어를 치면 Input/output error가 나오면

    Read More
  12. 무료 웹메일 프로그램 roundcube

    Read More
  13. 우분투 스크롤 휠 속도설정

    CategoryUbuntu
    Read More
  14. 우분투서버 12.04

    CategoryUbuntu
    Read More
  15. centos 6 KVM tip

    CategoryCentOS
    Read More
  16. A- CLI System Monitoring Tools & Commands

    Read More
  17. centos 6 monitorx install

    CategoryCentOS
    Read More
  18. centos 6.7 kvm install after iso permission denied

    CategoryCentOS
    Read More
  19. centos 6 kvm bridge setting

    CategoryCentOS
    Read More
  20. centos xrdp install

    CategoryCentOS
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8