2012-12-19 2 views
1

나는 다음과 같은 얻을 치명적인 런타임 예외 (안드로이드 2.1) :치명적인 런타임 예외 바이너리 xml 파일 참조?

12-19 21 : 23 : 53.160 : E는/AndroidRuntime (279) : 치명적인 예외 : 주요 12-19 21 : 23 : 53.160 : E/AndroidRuntime (279) : android.view.InflateException : 바이너리 XML 파일 라인 # 24 : 오류 팽창 클래스 com.michaelnovakjr.numberpicker.NumberPicker 다른 하나 com.michaelnovakjr에서 네임 스페이스를 변경 한 후

.

그러나 더 이상 전체 소스 코드에서 com.michaelnovakjr에 대한 참조를 찾을 수 없습니다.

어디에서 봐야할까요?

이미 프로젝트를 정리하고, Eclipse를 다시 시작하고, 새로운 가상 안드로이드 장치를 만들었습니다.

전체 작업 공간은 프로젝트와 라이브러리로 구성되며 모두 nl.computerhuys.TabNavUI 네임 스페이스에 있습니다. 라이브러리에 하나 :

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    > 
<TextView 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Hello World, ACTIVITY_ENTRY_NAME" 
    /> 
</LinearLayout> 

프로젝트의 하나

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    > 
<TextView 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Hello World, NumberPickerSample" 
    /> 
</LinearLayout> 
치명적인 예외가 나는 '주'가정 것이라고 언급 때문에 오류가있는 두 가지가 있으며, main.xml에에있을 것입니다

logcat errormessage의 줄 번호 24는 분명히이 두 파일 중 하나를 참조하지 않습니다. 그렇다면 어떻게 참조되는 .xml 파일을 찾을 수 있습니까?

답변

0

그냥 찾았습니다.

실제로 라이브러리의 dialog_number_picker.xml에 이전 네임 스페이스에 대한 다른 참조가있었습니다. 프로젝트 (Windows 검색)에서 모든 .xml 파일을 찾은 다음 메모장에서 모두 열고 ++ 열려있는 모든 파일에서 문자열 검색을 수행하여 찾았습니다 ...

잘 작동합니다.