0
我的應用程序運行正常,但後來發現錯誤,並嘗試重新運行API,清除構建但沒有任何工作。當看到logcat錯誤發現兩個錯誤,我可以找到解決方案。以下是錯誤。應用程序RCApps(process com.examples)已經意外停止
11-08 21:50:09.981:ERROR/AndroidRuntime(352):引起:java.lang.ClassNotFoundException:loader中的android.view.Relativelayout dalvik.system.PathClassLoader [/data/app/com.examples -1.apk]
11-08 21:50:09.981: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>
OMG我從來不知道這是大小寫敏感的這個。這是我用android在Java中嘗試的第一個項目,我想如果有任何xml錯誤,它會在編譯時顯示它們。它只是工作。感謝並感謝您的回覆。 – user1031746