android.view.WindowManager$BadTokenException: Unable to add window — token android.os.BinderProxy@ is not valid; is your activity running? 보통 프로그래스 다이얼로그 띄우려고 하는데 발생 한다. 구글에서는 이런 에러를 이렇게 정의 하고 있다. 이 비정상 종료는 대개 앱에서 이전에 완료된 활동을 컨텍스트로 사용하여 대화상자를 표시하려고 시도하여 발생합니다. 예를 들어 활동이 종료되면 대화상자를 표시하려고 시도하는 AsyncTask를 트리거하지만 사용자가 작업이 완료되기 전에 활동에서 뒤로 이동하면 발생할 수 있습니다. 띄우려는 곳이 액티비티가 아니라면if(!((Activity) context).is..
android studio Gradle 3.1.0 업데이트 후 1. error: resource style/TextAppearance.AppCompat.Notification.Title 발생android:textAppearance="@style/TextAppearance.AppCompat.Notification" --> 로 변경 android:textAppearance="@style/TextAppearance.Compat.Notification2. error: cannot find symbol class NotificationCompat import android.support.v7.app.NotificationCompat; --> 로 변경 import android.support.v4.app.Notif..
#import com.google.android.gms.internal.zzahn.runOnUiThread error: cannot find symbol static runOnUiThread com.google.android.gms:play-services:11.8.0 --> com.google.android.gms:play-services:12.0.0 으로 올리면 발생, 내리면 돌아 옴...
Class not found when unmarshalling:Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack availableclass not found when unmarshalling startactivity 요런 에러가 막뜬다... 이럴 경우에multiDexEnabled true compile 'com.android.support:multidex:1.0.1' 등등을 하라고 한다.... 특정기기에서만 발생하는 거라... 참 어려운데.... 저런건 안 먹힌다... 결국 요상한 분석에 들어간다... StartActivity 에서 문제가있고... 인텐트로 데이터를 넘겨서 받을 때 ..
not attached to Activity --> 프래그먼트에서 viewpager로 pagetAdapter를 사용 할 경우 getItem으로 newInstance 를 하면서 새로운 메모리를 생성하게 되면서 발생 하는 문제.--> 주로 getString() 등을 사용할 때 발생 한다. 새로운 context가 발생하였지만, 제대로 구성 하지 않아서 발생.--> 간단히 해결 하는 방법 Context 를 메인 액티비티의 것을 사용 해야 한다.--> public static synchronized Context getInstance() { return mContext; }--> MainActivity.getInstance.getString() 아래는 코모의 새로운 앱이에요(19/07/01출시) 일상 카운터 - ..
Exception raised during rendering: Could not initialize class android.graphics.Typeface 보통 안드로이드 스튜디오를 업데이트 할때 생긴다. xml preview가 되지 않는 현상이다. 이번에도 여지 없이 2.3에서 3.0으로 올렸더니 발생 했다. 맥 기준 이때의 해결 방법은1. 홈디렉토리의 .android를 지워주거나,2. .metadata를 지워주라는데 이건 이클립스 같고,3. 클린 리 빌드4. font 문제 등등 많은 방법 그런데 해결이 안되네? 그냥 다 지우고 다시 설치 하면 된다. 괜히 시간 낭비 하지 말자, 터미널에서 지울 필요 없다!그냥 응용프로그램 폴더에서 안드로이드 스튜디오를 휴지통으로 보낸 뒤, android studio..