无法在AVD上运行Android应用程序

无法在AVD上运行Android应用程序,android,Android,嗨,我是android开发的初学者,我是从www.developers.google.com开始学习的 当我在emulator AVD上运行任何应用程序时。appname停止工作时出错。原因是什么?我的avd规范中是否存在任何问题或其他问题?我的代码在这里: fragment_main.xml strings.xml 发布您的代码和logcat错误..检查您的logcat以提供真实的堆栈跟踪。发布您的java代码。HOME在设备“emulator-5554”[2014-12-04 11:44:3

嗨,我是android开发的初学者,我是从www.developers.google.com开始学习的 当我在emulator AVD上运行任何应用程序时。appname停止工作时出错。原因是什么?我的avd规范中是否存在任何问题或其他问题?我的代码在这里:

fragment_main.xml

strings.xml


发布您的代码和logcat错误..检查您的logcat以提供真实的堆栈跟踪。发布您的java代码。HOME在设备“emulator-5554”[2014-12-04 11:44:34-SecondLayout]上启动[2014-12-04 11:44:35-SecondLayout]安装SecondLayout.apk。。。[2014-12-04 11:44:35-第二布局]成功![2014-12-04 11:44:35-SecondLayout]在设备emulator-5554[2014-12-04 11:44:41-SecondLayout]上启动活动com.example.SecondLayout.main由于URI无效,安装失败![2014-12-04 11:44:41-第二布局]有关更多详细信息,请查看logcat输出。[2014-12-04 11:44:42-第二布局]发射取消@这是控制台输出,我是对的。
<LinearLayout 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="com.example.secondlayout.MainActivity$PlaceholderFragment" 
    android:orientation="horizontal">

   <EditText android:id="@+id/edit_message"
        android:layout_weight="1"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:hint="@string/edit_message" />
   <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/button_send" />
   </LinearLayout>
 <?xml version="1.0" encoding="utf-8"?>
    <resources>
    <string name="app_name">SecondLayout</string>
        <string name="edit_message">Enter a message</string>
        <string name="button_send">Send</string>
        <string name="action_settings">Settings</string>
        <string name="title_activity_main">MainActivity</string>

    </resources>