안드로이드 스튜디오에서 TextView에 오류..

조회수 2848회

https://www.youtube.com/watch?v=dk_AyDJL61g&index=2&t=279s&list=PLRx0vPvlEmdB6sCgj_jubp8KPb1ni0VOC

위 강의를 보고 따라 만들었습니다. 그런데 TextView쪽에 cannot find variable TextView라는 오류와 illigal start of type라는 오류가 뜹니다.


   public void addClick(View v){
        EditText number1 = (EditText) findViewById(R.id.number1);
        EditText number2 = (EditText) findViewById(R.id.number2);
        TextView result = (TextView) = findViewById(R.id.result);
        int n1 = Integer.parseInt(number1.getText().toString());
        int n2 = Integer.parseInt(number2.getText().toString());
        result.setText(Integer.toString(n1 + n2));}

TextView는 import 된 상태인데....

  • (•́ ✖ •̀)
    알 수 없는 사용자

1 답변

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)