일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Android OS 10
- 고유식별자
- 앱강종현상
- retrieveExplicitStyle
- Bluetooth 스캔
- 바텀네비
- 로그캣 색상지정
- apk변환
- 안드로이드apk변환
- Android Bluetooth
- BottomNavigation
- 안드로이드aab변환
- 디바이스ID
- Android
- 안드로이드
- 로띠애니메이션
- 안드로이드 로그캣
- lottieAnimation
- 로그캣 색상변경
- 투명도 hex값
- 앱강종
- svn체크아웃
- bottomNavigation animation
- target29
- Opacity Hex
- Android10
- aab파일apk변환
- 안드로이드 디버깅툴
- targetSDK29
- 바텀네비게이션
Archives
- Today
- Total
공부하는 다락방
retrieveExplicitStyle NullPointerException Android 10 본문
앱 강종되는 현상이 인입이 되었는데, 아래와 같은 로그가 확인이 되었다..
Caused by: java.lang.NullPointerException:
at android.content.res.XmlBlock.nativeGetStyleAttribute (XmlBlock.java)
at android.content.res.XmlBlock.access$1500 (XmlBlock.java:41)
at android.content.res.XmlBlock$Parser.getStyleAttribute (XmlBlock.java:459)
at android.content.res.Resources$Theme.getExplicitStyle (Resources.java:1765)
at android.view.View.retrieveExplicitStyle (View.java:6731)
at android.view.View.<init> (View.java:5639)
at android.view.ViewGroup.<init> (ViewGroup.java:677)
at android.widget.AbsoluteLayout.<init> (AbsoluteLayout.java:56)
at android.webkit.WebView.<init> (WebView.java:410)
at android.webkit.WebView.<init> (WebView.java:353)
at android.webkit.WebView.<init> (WebView.java:336)
at android.webkit.WebView.<init> (WebView.java:323)
처음엔 웹뷰에서 문제가 생기는건가 엄청나게 삽질을하고 .. 미친듯이 구글링을 했다.... 그러다 원인 발견!!
안드로이드 OS 10부터 View 생성중에 테마에서 스타일을 명시적으로 가져오는 식으로 변경이 된 듯 하다.
일단 이 현상은 안드로이드 단말 설정 > 개발자 옵션 > 보기 속성 검사 사용 을 활성화 할 때만 발생되고
그렇지 않을 경우 발생되지 않는다.
혹시나 앱이 강제종료가 되고 개발자 옵션에서 보기 속성 검사 사용이 활성화가 되어있을 경우 소스상에 AttributeSet을 사용하는 곳이 있는지 확인이 필요하다.
public View(Context context, AttributeSet attrs) {
super(context, attrs);
this.mContext = context;
this.mAttrs = attrs; <- 소스상에 있다면 이 부분을 주석처리
}
[출처]
https://medium.com/@debuggingisfun/retrieveexplicitstyle-android-10-crash-cef9bced1d01
'Android' 카테고리의 다른 글
[Kotlin] BottomNavigation With Lottie (0) | 2022.03.17 |
---|---|
Android 10(target SDK 29) does not meet the requirements to access device identifiers. (1) | 2020.03.13 |
.aab to .apk 변환 (0) | 2020.03.09 |
알림채널(Notification Channel) (0) | 2018.09.07 |
외장 SD카드 Path 가져오기 (0) | 2017.04.12 |
Comments