Android Emulator使用旧的布局

Android Emulator使用旧的布局,android,android-layout,android-emulator,Android,Android Layout,Android Emulator,不幸的是,我正在Yosemite OS X计算机上使用Android Studio最新版本1.0.2开发一个Android应用程序 该应用程序包括一个创建为Android库的库 我使用Android Studio的可视化编辑器修改了库中的布局。当我运行应用程序时,模拟器一直使用旧的布局 我做了以下尝试: 清理项目 重建项目 重新启动Android Studio 已从正在运行的emulator卸载应用程序 重新排列布局上的项目 不管我做什么,模拟器都拒绝使用新的布局 有人能帮我吗 活动的XML如下

不幸的是,我正在Yosemite OS X计算机上使用Android Studio最新版本1.0.2开发一个Android应用程序

该应用程序包括一个创建为Android库的库

我使用Android Studio的可视化编辑器修改了库中的布局。当我运行应用程序时,模拟器一直使用旧的布局

我做了以下尝试:

清理项目 重建项目 重新启动Android Studio 已从正在运行的emulator卸载应用程序 重新排列布局上的项目 不管我做什么,模拟器都拒绝使用新的布局

有人能帮我吗

活动的XML如下所示:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="it.misc.accountlib.RegisterNewUserActivity">

<ScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/scrollView" >

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text="@string/message_activity_register_new_user"
            android:id="@+id/textView" />

        <Space
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:minHeight="@dimen/abc_text_size_large_material" />

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="textPersonName"
            android:ems="10"
            android:id="@+id/nameAndSurnameTextField"
            android:hint="@string/name_surname" />

        <Space
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:minHeight="@dimen/abc_text_size_small_material" />

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="textEmailAddress"
            android:ems="10"
            android:id="@+id/emailTextField"
            android:hint="@string/libaccount_email" />

        <Space
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minHeight="@dimen/abc_text_size_small_material" />

        <Space
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minHeight="@dimen/abc_text_size_small_material"
            android:layout_gravity="center_horizontal" />

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ems="10"
            android:id="@+id/nicknameTextField"
            android:hint="@string/libaccount_nickname"
            android:inputType="text" />

        <Space
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:minHeight="@dimen/abc_text_size_small_material" />

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="textPassword"
            android:ems="10"
            android:id="@+id/passwordTextField"
            android:password="false"
            android:hint="@string/libaccount_password" />

        <Space
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:minHeight="@dimen/abc_text_size_small_material" />

        <Button
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="@string/libaccount_register_new_account_button_text"
            android:id="@+id/registerNewUserButton" />

    </LinearLayout>
</ScrollView>
除此之外:

02-08 21:08:29.003    2666-2666/it.misc.app E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: it.misc.app, PID: 2666
java.lang.NoSuchFieldError: No static field emailTextField of type I in class Lit/misc/accountlib/R$id; or its superclasses (declaration of 'it.misc.accountlib.R$id' appears in /data/app/it.misc.app-1/base.apk)
        at it.misc.accountlib.RegisterNewUserActivity.initUIElements(RegisterNewUserActivity.java:38)
        at it.misc.accountlib.RegisterNewUserActivity.onCreate(RegisterNewUserActivity.java:29)

我得到的唯一提示是:

 /data/app/it.misc.app-1/base.apk

这里似乎有两个it.misc.app包。

我知道这很旧,但我也遇到了同样的问题,我只需将视图重新分配到另一个具有相同内容但名称不同的布局xml即可解决。

您能分享一些代码吗
 /data/app/it.misc.app-1/base.apk