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