반응형 Android62 [Android] android java kotlin 같이 쓰기 개요 : 기존 자바로 구현되어 있는 앱에 Kotlin 코드와 같이 사용하고 싶을 경우 Kotlin SDK 추가 방법 및 API 호출 방법 공유 Project build.gradle에 kotlin plugin 선언 코틀린 버전은 원하는 버전으로 사용. // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.5.0' repositories { google() mavenCentral() } dependencies { classpath "co 2021. 5. 16. [Android] java.lang.NullPointerException (no error message) 원인 : NDK 경로가 맞지 않거나 사용중인 NDK 설치되어 있지 않음. 해결 : NDK 경로 변경 및 사용중인 NDK 다운로드 오류 메시지. A problem occurred configuring project ':app'. > java.lang.NullPointerException (no error message) * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'. at org... 2021. 5. 15. [Android] Unknown host '알려진 호스트가 없습니다 원인 : build.gradle에 사용되는 gradle 버전이 설치되어 있지 않음. 해결 : gradle 버전 다운로드 후 재빌드 Unknown host '알려진 호스트가 없습니다 (jcenter.bintray.com)'. You may need to adjust the proxy settings in Gradle. Enable Gradle 'offline mode' and sync project Learn about configuring HTTP proxies in Gradle Enable Gradle 'offline mode' and sync project 클릭 할 경우 해결 되지 않음. FAILURE: Build failed with an exception. * What went wrong: A p.. 2021. 5. 15. [Android] License for package Android SDK Build-Tools 28.0.3 not accepted. build error 원인 : build.gradle 빌드 툴 버전 SDK 설치 되어 있지 않음. 해결 방법 : 빌드 툴에 설정되어 있는 SDK 버전 다운로드 buildToolsVersion '28.0.3' 에러 로그 License for package Android SDK Build-Tools 28.0.3 not accepted. License for package Android SDK Platform 28 not accepted. No variants found for ':app' SDK 다운로드 방법 설치 완료 될 경우 오른쪽 상단 Try Again 클릭 2021. 5. 14. 이전 1 ··· 3 4 5 6 7 8 9 ··· 16 다음 반응형