You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
1. 코드 동작의 일관성
compileSdkVersion과targetSdkVersion이 다르면, 코드가 의도한 동작과 실제 앱 실행 시의 동작이 달라질 수 있음.예시:
POST_NOTIFICATIONS(API 33)설정:
compileSdkVersion = 33(최신 API 사용 가능).targetSdkVersion = 32(Android 12 이하 정책 적용).결과:
targetSdkVersion = 32기준으로 동작하여 런타임 권한 요청을 무시하고, 알림을 자동 허용함.2. 최신 API 사용 불가
compileSdkVersion은 최신 API 사용을 가능하게 하지만,targetSdkVersion이 낮으면 그 API의 일부 동작이 제한될 수 있음.예시: Scoped Storage (API 29)
설정:
compileSdkVersion = 29(Scoped Storage 지원).targetSdkVersion = 28(Android 9 동작).결과:
targetSdkVersion = 28기준으로 동작한다고 판단하여 기존 파일 접근 방식을 허용함.3. Google Play 스토어 정책 준수
Google Play는 최신 Android 정책을 따르지 않는 앱의 배포를 제한한다.
예시: Google Play의 정책 변화
2024년 8월 31 기준:
targetSdkVersion이 최소 API 34(Android 14) 이상이어야 함.targetSdkVersion보다 낮을 경우, 스토어에서 제거될 수 있음.결과:
targetSdkVersion이 낮으면, 앱이 최신 보안 정책을 준수하지 않아 스토어 배포가 불가능함.Beta Was this translation helpful? Give feedback.
All reactions