본문 바로가기

Programming/Error Note

[Android] java.lang.IllegalStateException: Main thread not allowed to quit. [Error]java.lang.IllegalStateException: Main thread not allowed to quit. 123456789101112131415161718192021222324252627282909-17 19:09:28.921 6296-6296/com.tistory.gpark.nextstep E/AndroidRuntime: FATAL EXCEPTION: main Process: com.tistory.gpark.nextstep, PID: 6296 java.lang.RuntimeException: Unable to destroy activity {com.tistory.gpark.nextstep/com.tistory.gpark.nextstep.JavaActivity}: java.lan.. 더보기
[Android] java.lang.IllegalStateException: This message is already in use. [Error] java.lang.IllegalStateException: This message is already in use. 1234567891011121314151609-17 19:01:27.286 5673-5673/com.tistory.gpark.nextstep E/AndroidRuntime: FATAL EXCEPTION: main Process: com.tistory.gpark.nextstep, PID: 5673 java.lang.IllegalStateException: { when=0 what=1 obj=메시지입니다.^^ target=android.os.Handler } This message is already in use. at android.os.MessageQueue.enqueueMe.. 더보기
[Android] android.os.FileUriExposedException [Error] android.os.FileUriExposedException: file:///… targetSdkVersion을 24이상으로 했을 때 File 경로를 Uri로 변경하고자 할 때 Uri.parse(File 경로) 를 사용하게 되면 발생하는 에러 FileProvider를 사용하면 해결 Solution [Android] How To APK Install Programmatically :: Gpark's Blog 더보기
[Android] java.lang.IllegalMonitorStateException: object not locked by thread before notify() [Android] java.lang.IllegalMonitorStateException: object not locked by thread before notify()Problem: lock을 걸지 않았을 때 발생하는 에러(wait도 마찬가지로 발생) java.lang.RuntimeException: Unable to start activity ComponentInfo{kr.co.foodfly.viewtest/kr.co.foodfly.viewtest.BlogActivity}: java.lang.IllegalMonitorStateException: object not locked by thread before notify() at android.app.ActivityThread.performLaunchAc.. 더보기
[Android] android.content.ActivityNotFoundException [Android] android.content.ActivityNotFoundExceptionProblem : AndroidManifest.xml에 Activity 항목을 추가를 안해서 에러가 발생 android.content.ActivityNotFoundException: Unable to find explicit activity class {kr.co.xxxx .viewtest/kr.co.xxxx.viewtest.BlogActivity}; have you declared this activity in your AndroidManifest.xml? at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1820) at an.. 더보기