반응형
금일 내부 프로젝트 App 테스트를 진행하는 동안
앱을 삭제하고 다시 설치하면 초기 데이터가 지난 주 금요일 SharedPreferences 데이터로 설정 되어 있었습니다.
디바이스에서 캐시 / 데이터 삭제를 해보아도 지난 주 자꾸 SharedPreferences 데이터가 적용되어 가지고
Device File Explorer에 백업이 되어 있는건지 한참 찾다가 원인을 찾았네요.
원인 : AndroidManifest.xml 파일에 application 태그 안에 백업 설정이 true로 들어가 있더라고요
조치 : android:allowBackup="true" -> android:allowBackup="false"
<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MyApplication"
android:usesCleartextTraffic="true">
반응형
'개발 > Android' 카테고리의 다른 글
[Android] 버튼 클릭 이벤트 추가 (0) | 2023.07.27 |
---|