Android
-
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListenerAndroid 2020. 6. 20. 16:45
Error message Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener; Only implementaion in gradle file implementation 'androidx.core:core-ktx:1.3.0' Change in gradle file like below implementation 'androidx.core:core:1.3.0' implementation 'androidx.core:core-ktx:1.3.0'
-
Android Library(Android Archive) aar의 리소스 변경하기Android 2020. 6. 18. 13:57
Modifying contents of Android .aar file / Converting to and from .zip format 안드로이드 라이브러리 파일의 리소스를 내가 원하는 것으로 변경하고 싶을 때 리눅스 환경에서 unzip으로 압축을 풀고 tempFolder로 들어가서 변경할 resource를 수정한다. unzip library.aar -d tempFolder 다시 패키징하기 위해 압축을 풀었던 디렉토리로 이동한다. cd tempFolder 상위 디렉토리에 NewLibrary.aar이란 이름으로 zip 압축을 다시 한다. zip -r ../NewLibrary.aar * 다시 import 후 사용한다.
-
Invoke-customs are only supported starting with Android OAndroid 2020. 6. 17. 14:21
app/build.gradle에 아래 옵션을 추가 Java 8을 쓴다면 android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } Java 10을 쓴다면 android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_10 targetCompatibility JavaVersion.VERSION_1_10 } } Java 7을 쓴다면 android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility Ja..
-
[Play Store] 안드로이드 애플리케이션 등록 시 개인정보처리방침 만들기Tip 2020. 6. 17. 00:47
1. https://app-privacy-policy-generator.firebaseapp.com/ App Privacy Policy Generator Terms & Conditions By downloading or using the app, these terms will automatically apply to you – you should make sure therefore that you read them carefully before using the app. You’re not allowed to copy, or modify the app, any part of the app, or o app-privacy-policy-generator.firebaseapp.com 파이어베이스에서 영문으로 ..
-
[Android] CountDownTime 주기적 실행 타이머Android 2020. 6. 16. 17:01
CountDownTimer countDownTimer = new CountDownTimer(10 * 1000, 1000) { public void onTick(long millisUntilFinished) { //반복 실행 구문 } public void onFinish() { //마지막 실행 구문 } }; countDownTimer.start(); //타이머 실행 countDownTimer.cancel(); //타이머 종료 CountDownTimer 의 객체를 생성할때 매개변수 2개 = 총 실행될 시간, 반복주기시간 단위는 모두 ms 단위이므로 위 구문에서는 '10초(10*1000 ms) 동안 1초(1000 ms)마다 실행하겠다' 라는 뜻 CountDownTimer 의 객체를 생성하면 자동으로 onTic..