내 응용 프로그램이 정상적으로 실행되었지만 오류가 발생하여 API를 실행하고 빌드를 정리하려고했지만 아무 것도 작동하지 않았습니다. logcat 오류로 lookied 때 내가 해결책을 찾을 수있는 두 가지 오류를 발견. 다음은 오류입니다.응용 프로그램 RCApps (프로세스 com.examples)가 예기치 않게 중지되었습니다.
11-08 21 : 50 : 09.981 : ERROR/AndroidRuntime (352) : 원인 : java.lang.ClassNotFoundException : android.view.Relativelayout in loader dalvik.system.PathClassLoader [/data/app/com.examples] -1.apk]
11-08 21 : 50 : ERROR/AndroidRuntime (352) : android.view.InflateException : 이진 XML 파일 선 # 2에 의한 오류
RelativeLayout의 팽창 클래스The following is the contents of my class:
public class Vathiyar extends Activity{
private Button findvathiyar;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.vathiyar);
}
}
Following is my xml code..
<?xml version="1.0" encoding="utf-8"?>
<Relativelayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/vathiyar_1"
android:orientation = "vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:id="@+id/widget32"
android:layout_width="wrap_content"
android:layout_height="-11px"
android:text="Welcome to the Selection of Vathiyar page"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
>
</TextView>
</Relativelayout>
09.981
OMG. 이것은 Java에서 안드로이드로 시도한 첫 번째 프로젝트입니다. 나는 xml 오류가 있으면 컴파일 할 때 오류가 발생한다고 생각했습니다. 그냥 효과가있었습니다. 감사합니다. – user1031746