4월, 2018의 게시물 표시

Outdated Kotlin Runtime 오류 문제

이미지
Event Log에서 다음과 같은 메시지가 발생해서 빌드를 못하는 경우가 발생 Outdated Kotlin Runtime Your version of Kotlin runtime in 'Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.2.30@jar' library is 1.2.30-release-78 (1.2.30), while plugin version is 1.2.40-release-Studio3.1-1. Runtime library should be updated to avoid compatibility problems. 해결 방법은 다음 출처를 참조 스택오버플로우 build.gradle 을 수정해야 하는데 각 프로젝트의 root 폴더에 build.gradle 파일을 수정해야 한다 아래 이미지와 같이 편집기를 열어서 수정을 해야 한다 buildscript {     ext.kotlin_version = '1.2.40'     repositories {         google()         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:3.1.2'         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"         // NOTE: Do not place your application dependencies here; they belong         // in the individual modu...

디스크에 직접 설치한 우분투에서 NVIDIA 그래픽 카드 드라이버 설치

출처 :  http://jinyongjeong.github.io/2016/11/22/ubuntu_graphic_driver_install/ 그래픽 카드를 설치를 해줘야 우분투를 정상적으로 활용할 수가 있는데 출처에서 사용하는 방식을 사용한다 그래픽 카드 설치 파일은 다음 NVIDIA 홈페이지에서 다운로드를 받는다 http://www.nvidia.co.kr/drivers 드라이버 검색할 때 System에서 우분투가 따로 없으므로 Linux로 선택한다

Emulator: libGL error: unable to load driver: vmwgfx_dri.so

출처 :  스택오버플로우 안드로이드 스튜디오에서 빌드할 때 비슷한 에러가 발생하면 아래와 같이 라이브러리 파일 하나를 설정하면 정상적으로 빌드가 된다 $ cd ~/Android/Sdk/emulator/lib64/libstdc++ $ mv libstdc++.so.6 libstdc++.so.6.bak $ ln -s /usr/lib64/libstdc++.so.6

VMware 환경에서 우분투로 안드로이드 환경 구축하기(1)

이미지
환경 구성 VMware : 14 Ubuntu : 16.04.4 LTS https://www.ubuntu.com/download/desktop 안드로이드 스튜디오 : 3.1.0.16 https://developer.android.com/studio/index.html#downloads 1. vmware 구축 Processors 설정에서 Intel VT-x/EPT or AMD-V/RVI 를 체크(안드로이드 스튜디오에서 가상 에뮬레이터를 동작하기 위해 필요한 것) 2. 우분투 설치 vmware에 우분투를 설치할 때 언어와 지역 설정을 영어와 미국으로 한다 이유는 여기를 참조 :  http://hanmaruj.tistory.com/5 결론은 설치 후 언어 팩을 한국어로 설치해서 적용한다 2.1. 키보드 설정 여기에 한글/영어 키보드 설정에 대해서 참조 :  http://blankspace-dev.tistory.com/229 3. 안드로이드 스튜디오 설치 우분투 설치가 완료되면 안드로이드 스튜디오 설치할 때 공식 문서를 참조 :  https://developer.android.com/studio/install.html