반응형

deprecated 5

[Android] Handler() deprecated

Handler() deprecated 해결 방법 Deprecated 기존에는 Handler()를 선언할 때 생성자에 아무런 값도 넣지 않았지만 현재는 deprecated 되었다. 그 이유는 핸들러 생성 중에 Lopper를 명시하지 않으면 작업이 자동으로 손실, 충돌 등의 버그가 발생할 수 있다고 한다. 공식 문서 내용 https://developer.android.com/reference/android/os/Handler#Handler() Handler | Android Developers developer.android.com 해결 방법 생성자에 Looper.getMainLopper()를 넣어주면 된다. // Handler handler = new Handler(); // deprecated Handl..

[Android] getDrawable() deprecated

getResources().getDrawable deprecated 해결 방법 Deprecated API 22에서 getDrawable() 이 deprecated 되었다. 공식 문서 내용 https://developer.android.com/reference/android/content/res/Resources#getDrawable(int) Resources | Android Developers developer.android.com 해결 방법 아래와 같이 ContextCompat.getDrawable()을 사용한다. // Drawable drawable = getResources().getDrawable(img);// deprecated Drawable drawable = ContextCompat.ge..

[iOS] ERROR ITMS-90339: UIApplicationExitsOnSuspend Error 해결 방법

App Store 배포 시, 아래와 같은 오류가 발생했다. 오류 App Store Connect Operation Error ERROR ITMS-90339: "This bundle is invalid. The Info.plist contains an invalid key 'UIApplicationExitsOnSuspend' in bundle App [App.app]" 오류 내용: Info.plist에 포함된 UIApplicationExitsOnSuspend 키가 deprecated 되어 사용 불가 참고 URL: developer.apple.com/documentation/ Xcode에서 info.plist 파일을 보면 아래와 같은 키를 확인할 수 있다. Info.plist - Property List에서..

iOS/오류 해결 2021.04.04

[안드로이드] 어노테이션 @annotation, @Override, @Deprecated, @SuppressWarnings

[안드로이드] 어노테이션 @annotation, @Override, @Deprecated, @SuppressWarnings ■ 자바 프로그래밍을 할때 유용하게 사용할 수 있는 Annotation(@) 기능 어노테이션은 실무나 스프링프레임워크를 사용하면 자주 사용하게 되는 녀석입니다.□ 자바 어노테이션 (Annotation)이란? 일반적으로 Java Annotation은 @를 이용한 주석을 뜻 합니다.자바 어노테이션 (Java Annotation)은 자바5(1.5)부터 제공되기 시작한 기능으로 어노테이션은 한국어로 “주석” 이라 번역됩니다. 하지만 Annotation을 “주석”이라 칭할경우, 흔히 쓰던 주석처리 (//, /**/)와 같은 의미로 오해하기 쉽기 때문에, Annotation이라는 명칭을 그대로..

반응형