본문 바로가기
728x90

Programing/Debugging59

[Android] INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 이클립스에서 시스템 앱을 만드는 경우, AndroidManifest.xml에 sharedUserId를 입력해야 하는 경우가있다.근데, 요놈을 살려두면 앱 설치 시에 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 에러가 발생한다. 그래서 구글을 찾아보면, 아래와 같은 글이 90% 이상이다;;;;;필요해서 넣었는데,,,, 다시 지우라니;;;; 머지? AndroidManifest.xml▶ android:sharedUserId="android.uid.system 을 삭제 그래서 찾고 찾다가 방법을 찾았는데, 좀 복잡하고 시간은 걸리나 100% 해결이 된다.해결을 원하시면 아래 포스팅을 보고 그대로 따라 하시길 바랍니다.http://victor8481.tistory.com/316 2014. 6. 18.
[안드로이드] error: Error parsing XML: unbound prefix xliff:g error: Error parsing XML: unbound prefix에러가 발생하는 이유는 크게 두 가지 입니다. 1. 오타 오타를 수정하시기 바랍니다. 2. xliff:g 사용 시 xmlns:xliff를 추가해 주지 않은 경우 2014. 6. 18.
[Android] Conversion to Dalvik format failed with error 1 쉽게 이야기 하면 추가한 라이브러리들이 충돌하는 경우 발생한다고 생각하면 편합니다.라이브러리들이 어떻게 충돌이 나는지 알면 편하겠지만, 알 방법이 없으니.... 빼거나 순서를 바꾸는 정도가 좋겠습니다. 1. Project > Clean2. Project Properties > Java Build Path > Libraries에서 추가한 라이브러리는 맨 위로 올리고, 소스 / 리소스 / Android X.X는 가장 아래로 내립니다. 이때 중요한 건, Android X.X는 리스트들 중에서 가장 아래로 내려와야 합니다.3. Project > Clean4. Rebuild 안되면, 라이브러리 위치들을 수정하면서 반복해보시면 어느 순간 문제없이 돌기 시작합니다. 2014. 6. 17.
error: No resource identifier found for attribute 'widgetCategory' in package 'android' Project Build Target을 Android 4.2.2 이상으로 설정해 주시고 나서 Clean을 해주시면 끝납니다. 1. Project 속성 > Android > Change the Project Build Target to upper Android 4.2.2 2. Project > Clean... > OK 2014. 5. 27.
ANR 로그 분석 방법 - /data/anr/traces.txt 1. ANR이란?Application Not Responding (ANR)의 줄임말로 어플리케이션이 일정시간 동안 응답이 없을 경우 발생하는 현상을 말합니다.무한루프가 돌거나 UI 쓰레드에서 오래 걸리는 작업을 할 경우 발생하는 다이얼로그가 바로 ANR dialog입니다.ANR이 발생하면 안드로이드 파일 시스템에 data/anr/ 위치에 traces.txt라는 ANR발생 시점의 프로세스 상태에 관한 로그가 기록됩니다.이건 모든 안드로이드 폰 공통이지만 안타깝게도 루트권한에서만 접근이 가능합니다.보통은 synchronized가 걸려서 독점하고 있거나 혹은 생각없이 sleep을 처리해서 발생할 가능성이 큽니다.traces.txt에 held by라는 단어가 핵심포인트가 됩니다. 2. Thread 상태 A. j.. 2014. 5. 19.
Can't create handler inside thread that has not called Looper.prepare() 해결 방안Handler mHandler = new Handler(Looper.getMainLooper()) { 원인 : http://blog.naver.com/PostView.nhn?blogId=huewu&logNo=110115454542만일 Handler 와 연결된 Thread 를 명시적으로 지정하고 싶을 때는, 제공되는 Handler (Looper looper) 생성자를 사용하실 수도 있습니다. 그런데, 이때 사용되는 Looper 클래스는 정확히 어떤 역할을 수행할까요?ERROR/AndroidRuntime(15412): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 만일.. 2014. 5. 4.
Replace "-" with an "en dash" character (–, &;#8211;) Solution- 간단합니다. 그냥 String을 로 감싸 주시면 됩니다.- You just wrap your values in . 010–43XX-59XXTo 2014. 1. 26.
How to fix "[Accessibility] Missing content Description attribute on image" 원인 (Reason)- 그림에 대한 설명이 없기 때문입니다. (The reason is that) there is no description about Image.) 해결 방법 (Solution)- Add android:contentDescription="description" 2014. 1. 26.
java.lang.RuntimeException - Attempted to access a cursor after it has been closed 01-13 17:28:22.558: E/AndroidRuntime(31495): java.lang.RuntimeException: Unable to resume activity {com.victor.manageclique/com.victor.manageclique.MainActivity}: android.database.StaleDataException: Attempted to access a cursor after it has been closed. 해당 이슈는 사용한 DB의 Cursor를 닫아 주지 않아서 발생하는 이슈입니다.Cursor를 사용한 이후, cursor.close(); 를 해주시면 해결 됩니다. 해결책 cursor.close(); 이렇게 해도 동일한 문제가 발생하고 있다면, startMa.. 2014. 1. 13.
android.view.windowleaked // Progress Dialog를 사용해서 화면에 dialog 를 노출하고, 시간이 걸리는 처리로직은 thread 안에서 처리하는 방법. void createThreadAndDialog() { /* ProgressDialog */ load_thread = new Thread(new Runnable() { public void run() { // 시간걸리는 처리 Process(path); handler.sendEmptyMessage(0); } }); load_thread.start(); } private Handler handler = new Handler() { public void handleMessage(Message msg) { loading_dialog.cancel(); // 다이얼로그 삭제 s.. 2014. 1. 10.
Call requires API level 3 (current min is 1) 말이 안되는 곳에서 Error이 계속 발생이 된다.왜?? 머가 문제냐;;;;;; 봤더니;;;; 에러 메세지로 "Call requires API level 3 (current min is 1): new android.text.format.Time"을 표시해 주고 있었다.문제는 바로 Manifest에 SDK Version이 기록되어 있지 않기 때문이다.Menifest에 가서 아래와 같이 적어주면, 문제는 바로 수정이 된다. 2013. 12. 27.
728x90