android.R.id.mytext改为R.id.mytext
android.R.id.mybutton改为R.id.mybutton

解决方案 »

  1.   

    把Android去掉! 像楼上的那样!
      

  2.   

    再不行,就project--clean一下,重新构造环境。
      

  3.   

    TextView myText = (TextView)this.findViewById(android.R.id.mytext);
    这个有问题
      

  4.   

     TextView myText = (TextView)this.findViewById(android.R.id.mytext);
      Button mybutton=(Button)this.findViewById(android.R.id.mybutton);
     你的R包导错了。要导你项目对应的R包
      

  5.   

    嗯,楼上说的都对。你的包导入错了。 
    TextView myText = (TextView)this.findViewById(android.R.id.mytext);
    应该改为
     TextView myText = (TextView)this.findViewById(R.id.mytext);
    把你上面导入的删掉。然后重新导入。
      

  6.   

    把R的import给删除掉再照一楼所说的
      

  7.   

    1楼正解 http://dalvik.co.cc
      

  8.   

    你可以试下加红色的代码TextView myText = (TextView)this.myText.findViewById(android.R.id.mytext);
             Button mybutton=(Button)this.mybutton.findViewById(android.R.id.mybutton);