[안드로이드] You need to use a Theme.AppCompat theme (or descendant) with this activity.
AlertDialog.Builder를 사용할 때에 발생할 수 있는 에러입니다.
new AlertDialog.Builder(getApplicationContext()) 를 new AlertDialog.Builder(this) 로 바꾸시면 해결됩니다.
'전산 > 안드로이드' 카테고리의 다른 글
[안드로이드] SDK Validation ANDROID_SDK_HOME is set to the root of your SDK (0) | 2019.09.26 |
---|---|
[안드로이드] 일정 시간동안 멈춘 후 작업하기 (postDelayed 사용) (0) | 2019.03.14 |
[안드로이드] 화면 녹화하기 (0) | 2019.01.16 |
[안드로이드] CMakeLists.txt 파일 설명 (0) | 2018.11.19 |
[안드로이드] Error:Could not find method jackOptions() for arguments (0) | 2018.09.19 |