Android 在仿真器上创建布局并测试更改失败

Android 在仿真器上创建布局并测试更改失败,android,Android,我有一个问题,如果我创建一个新的布局并更改图形布局中的布局,例如在布局中添加一个按钮或文本字段,那么应用程序就不能安装在模拟设备上。我收到无法使用的错误“未能在设备“emulator-5556”上安装*.apk”:超时 发射取消!”。 如果我删除按钮或文本字段,则仿真器将运行应用程序。我测试了很多东西。我删除了Eclipse和Android SDK。安装了不同版本的Eclipse软件(Classic、JAVAEE),然后每次安装新的android SDK。没有什么变化。我删除了Windows用户

我有一个问题,如果我创建一个新的布局并更改图形布局中的布局,例如在布局中添加一个按钮或文本字段,那么应用程序就不能安装在模拟设备上。我收到无法使用的错误“未能在设备“emulator-5556”上安装*.apk”:超时 发射取消!”。 如果我删除按钮或文本字段,则仿真器将运行应用程序。我测试了很多东西。我删除了Eclipse和Android SDK。安装了不同版本的Eclipse软件(Classic、JAVAEE),然后每次安装新的android SDK。没有什么变化。我删除了Windows用户配置文件中的.android文件夹。但一切都没有改变。 怎么了

我的布局的代码:

我希望有人能帮助我。提前谢谢

问候

编辑: 我发现了一些事情。我有一个标准布局和土地布局文件夹的项目。如果在emulator中运行应用程序时删除包含xml文件的land layout文件夹。我如何在不删除其他文件夹的情况下正确操作

> I get the unusable error "Failed to install *.apk on device 'emulator-5556': 
> timeout Launch 
这个问题与您的布局设计无关。 这是亚行的问题

尝试从任何终端或控制台窗口执行此命令 在安装应用程序之前

path/to/your/android sdk/platform tools/.adb kill server


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
<TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Large Text"
        android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>

您可以尝试这个新的布局xml文件。您应该注意到,这个文件名为“layout.xml”,并将其放入
布局文件夹中。但是,我不认为这是一个问题,因为如果不这样做,编译时会出现错误

这是布局的完整代码吗?如果是这样,您的XML版本将丢失
,以及布局类型(例如:linearlayout)。我尝试了您的命令,并在控制台日志中得到以下信息:[2012-03-08 12:07:58-设备]同步期间出错:超时。>[2012-03-08 12:08:03-DeviceMonitor]Adb连接错误:Eine vorhandene Verbindung wurde vom Remotehost geschlossen(英文>类似“远程>主机强制关闭现有连接”)>[2012-03-08 12:08:05-DeviceMonitor]连接尝试:1>[2012-03-08 12:08:07-DeviceMonitor]连接尝试:2无任何更改。问题仍然存在,与我的区别在哪里?你遗漏了两件事:第一件是,第二件是,
> I get the unusable error "Failed to install *.apk on device 'emulator-5556': 
> timeout Launch 
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
<TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Large Text"
        android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>