IT (74) 썸네일형 리스트형 Circular dependency between the following tasks: :app:dataBindingGenBaseClassesDebug https://github.com/firebase/firebase-android-sdk/issues/5925 Circular dependency between the following tasks: :app:dataBindingGenBaseClassesDebug · Issue #5925 · firebase/firebase-android[REQUIRED] Step 2: Describe your environment Android Studio version: _____ Firebase Component: Crashlytics Gradle Plugin Component version: 3.0.0 [REQUIRED] Step 3: Describe the problem After upgra...github.com .. Android / 키해시 구하기 keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64 안드로이드 스튜디오 터미널에 입력 Android / gradle 버전 업그레이드 후 unresolved reference buildconfig gradle 버전을 업그레이드 한 이후 빌드를 했더니 ( Android Gradle 플러그인(AGP) 8.0이상으로 업그레이드 )unresolved reference buildconfig 에러가 떴다. gradle.properties 파일에 아래 코드를 추가해주면 된다.android.defaults.buildfeatures.buildconfig=true https://medium.com/androiddevelopers/5-ways-to-prepare-your-app-build-for-android-studio-flamingo-release-da34616bb946 5 ways to prepare your app build for Android Studio Flamingo releaseWhen you up.. Android / Version Catalog 적용 - 안드로이드 버전관리 1. gradle/libs.versions.toml 파일 생성[versions]coreKtx = "1.9.0"androidApplication = "8.1.0"[libraries]core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }[plugins]android-application = { id = "com.android.application", version.ref = "androidApplication" } 2. app/build.gradle.kt 에 적용implementation(libs.core.ktx) 3. build.gradle.kt에 적용plugins { alias(libs.plugins.and.. Android version 맞추기 (targetSdk 34 업그레이드/kotlin 버전 업그레이드) 1. 라이브러리 모듈과 프로젝트의 코틀린 버전의 충돌이 남. Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. 1. targetSdk를 34로 업그레이드 하고(내친김에), 코틀린 버전을 1.8.0으로 올림 targetSdk 33 -> 34 compileSdk 33 -> 34 'com.android.tools.build:gradle:7.2.1' -> 'com.android.tools.build:gradle:7.2.2' 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21' -> 'org... Compose / 밀어서 삭제 구현 SwipeToDismiss 사용하기 Compose SwipeToDismiss를 사용하면 밀어서 삭제를 간단하게 구현할 수 있다. LazyColumn(modifier = Modifier.fillMaxHeight()) { items( items = tempList, key = { temp -> temp.no} ) { item -> val currentItem by rememberUpdatedState(newValue = item) SwipeToDismiss( state = rememberDismissState(confirmStateChange = { if(it == DismissValue.DismissedToStart){ // 밀었을때 액션 } true }), directions = setOf(DismissDirection.EndToStart.. Android / 안드로이드 notification Icon 적용 안드로이드 푸시메세지를 받았을때 뜨는 notification의 icon은 svg, 흰색, 24dp Android / 푸시알림 클릭시 PendingIntent Bundle값 전달 안되는 경우 푸시 알림 클릭하면 PendingIntent를 이용하여 MainActivity로 이동하는 로직에서 intent로 전달된 Bundle값이 초기값으로만 이동되는 현상이 발생하였다. 반복적으로 푸시알림이 들어와 노티가 쌓이게 되면 bundle값이 캐싱되어 실시간으로 값 변동이 전달되지 않는다. public static PendingIntent getActivity(Context context, int requestCode, @NonNull Intent intent, int flags, @Nullable Bundle options) { throw new RuntimeException("Stub!"); } PendingIntent.getActivity 함수를 보면 requestCode를 인자로 받고있다. 해당 인.. 이전 1 2 3 4 5 ··· 10 다음