本帖最后由 tsinghua_hp 于 2011-07-09 21:08:48 编辑

解决方案 »

  1.   

    测了下,模拟器上跑没问题啊。
    没出现Source not found,程序也没崩溃。
    楼主 删了从建一次试试。
      

  2.   

    看下出错信息
    或project->clearn + refresh 试试有时eclipse资源会刷新不过来的
      

  3.   

    AndroidManifest.xml中注册的Activity android:name与定义的类名要一致。
    注意大小写。
      

  4.   

    <?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"
        >
        <com.payne.android.NeverEdit
            android:id="@+id/neveredit"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"/>
            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content">
                <Button
                    android:id="@+id/append"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="append"/>
                <Button
                    android:id="@+id/clear"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="clear"/>
        </LinearLayout>
    </LinearLayout>
    注意这行: <com.payne.android.NeverEdit应该是<com.payne.android.NeverEdit.NeverEdit
      

  5.   


    啊~可是我运行就会崩溃。单步调试的话,总会提示我Source not found,是不是需要导入什么东西?
      

  6.   

    因为只写了包名com.payne.android.NeverEdit,没写具体类名com.payne.android.NeverEdit.NeverEdit
      

  7.   


    java程序尽量回避包名和类名一致
    默认规则包命首字母小写,类名大写。