私のアプリケーションは正常に動作していましたが、エラーが発生してAPIを再実行しようとしましたが、 logcatのエラーを見て、私は解決策を見つけることができた2つのエラーが見つかりました。エラーは次のとおりです。アプリケーション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月8日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。これは最初のプロジェクトです。アンドロイドでJavaを試していますが、xmlエラーがあればコンパイル時に表示されると思っていました。それはちょうど働いた。ありがとう、あなたの応答に感謝します。 – user1031746