Java 不幸的是”;名称申请;已经停止了android eclipse

Java 不幸的是”;名称申请;已经停止了android eclipse,java,android,eclipse,Java,Android,Eclipse,Activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/acti

Activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >

<Button
android:id="@+id/engadget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Engadget" />

</RelativeLayout>
如果我使用Android模拟器运行我的应用程序,我会收到一条错误消息。
我不知道如何修复它,我收到此错误消息“不幸的是”名称应用程序“已停止”。

更改布局xml的这一行

     tools:context=".MainActivity"


发布您的logcat输出。发布错误“logcat”。这是错误logcat屏幕截图的链接。这是我的日志。我把它保存在一个网站上,因为它很长。我看到你的日志了…现在,照我说的做。我改变这个。但这不起作用。清理项目,然后运行它。
     tools:context=".MainActivity"
    tools:context=".bestblog"