main.xml文件有错误,贴出来看看吧。

解决方案 »

  1.   

    main.xml写的不正确吧,能把main.xml贴出来看看吗?
      

  2.   

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        >
    <TextView  
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:text="@string/hello"
        />
    </LinearLayout>
      

  3.   

    你的main.xml里面都没有layout_width这些属性 那当然报错了 这些肯定你程序里面有用到的
      

  4.   

    你是不是直接把manifest.xml的文件直接复制的?
      

  5.   

    我知道是什么原因了,我的SDK有问题,在创建工程时候没有成功,谢谢大家的支持