본문 바로가기

Android64

[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.
[Build] 안드로이드 빌드 프로세스 정리 안드로이드 빌드 포로세스 요약 자세한 내용은 안드로이드 공식 가이드 문서 참고 컴파일러는 소스 코드를 DEX(Dalvik Executable) 파일로 변환하고 그 외 모든 것은 컴파일된 리소스로 변환합니다. 이 DEX 파일에는 Android 기기에서 실행되는 바이트 코드가 포함됩니다. APK Packager는 DEX 파일과 컴파일된 리소스를 단일 APK로 결합합니다. 그러나, 앱을 Android 기기에 설치하고 배포할 수 있으려면 먼저 APK에 서명해야 합니다. APK Packager는 디버그 또는 출시 키 저장소를 사용하여 APK에 서명합니다. 디버그 버전의 앱(즉, 테스트 및 프로파일링 전용 앱)을 빌드 중인 경우에는 패키저가 디버그 키 저장소로 앱에 서명합니다. Android 스튜디오는 디버그 키 .. 2021. 5. 14.
[Gralde] DefaultConfig 객체 설명 Android Studio build.gradle DefaultConfig 에 사용 할 수 있는 Property 값 정리 ex) def name = android.defaultConfig.versionName defaultConfig { applicationId "com.json.client.sample" minSdkVersion 22 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } Properties Property Description applicationId The application ID. applicationIdSuffix A.. 2021. 5. 14.