解决方案 »

  1.   

    WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
      

  2.   

    你结合你的布局看看一下~~可能出错就在于Button这一块 你找一下~~
      

  3.   

    <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"
        tools:context=".MainActivity"
         >    <TextView
            android:id="@+id/cd"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/cds" />
        <EditText 
            android:inputType="number"
            android:id="@+id/put_num"
            android:layout_below="@+id/cd"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            />
        <TextView 
            android:id="@+id/er"
            android:layout_below="@+id/put_num"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/ee"
            />
    <EditText
        android:inputType="text"
        android:id="@+id/put_word"
        android:layout_below="@+id/er"
        android:layout_width="match_parent"
        android:layout_height="150dp"
        />
    <Button 
        android:id="@+id/bu"
        android:layout_below="@+id/put_word"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/by"
        />
    </RelativeLayout>
      

  4.   

    android:layout_below="@+id/put_word"
    这里改成
    android:layout_below="@id/put_word"
      

  5.   


    +1    在@后面使用“+”,表示当修改完某个布局文件并保存后,系统会自动在R.java文件中
    生成相应的int类型变量。变量名就是“/”后面的值
    @后面没有+的就是直接引用这个ID