본문 바로가기

에러3

안드로이드 Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent 에러 해결방법 구글 AdMob관련 에러 AdMob 라이브러리를 포함한 상태로 컴파일 후 앱 실행 시 런타임 에러가 발생하는 경우가 있습니다. 이와 관련한 증상 및 해결방법 입니다. AdMob 라이브러리를 추가 후 Target Version을 SDK 31 이상으로 설정 후 앱을 런타임 실행하면 아래와 같은 에러로그를 볼 수 있습니다. 이에 대한 내용은 PendingIntent FLAG로 `FLAG_IMMUTABLE` 또는 `FLAG_MUTABLE`을 지정해줘야 한다는 내용인데, AdMob 20.4.0 버전 릴리즈를 보면 이와 관련한 버그 픽스 방법이 기재되어있습니다. https://developers.google.com/admob/android/rel-notes 릴리즈 노트 | Android | Google Develo.. 2023. 1. 4.
[안드로이드 Compose] 애니메이션 생성 시 context by implicit receiver 에러 Subject AnimatedVisibility 을 통해 애니메이션 구현 시, 아래와 같은 에러가 출력되는 경우 can't be called in this context by implicit receiver. Use the explicit one if necessary The Challenge 왜 이런 문제가 발생했을까? 코드를 먼저 보자 Card( modifier = Modifier .width(300.dp) .wrapContentHeight(), elevation = CardDefaults.cardElevation(0.dp), shape = RoundedCornerShape(10.dp), ) { Box() { AnimatedVisibility( // Error! visible = true, enter.. 2022. 11. 22.
Gradle 의존성 관련 에러 해결방법 The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-30). Dependency: androidx.core:core:1.7.0. AAR metadata file: C:\Users\user\.gradle\caches\transforms-3\bb9903e3055ed55e69a31736b27b1a5b\transformed\core-1.7.0\META-INF\com\android\build\gradle\aar-metadata.properties.. 2022. 5. 16.