Error:(43, 35) error: no suitable method found for findViewById(TextView) method Activity.findViewById(int) is not applicable (argument mismatch; TextView cannot be converted to int) method AppCompatActivity.findViewById(int) is not applicable (argument mismatch; TextView cannot be converted to int)더 적합한 방법 없다
이 오류 코드가 발생하는 이유 :
lblName = (TextView) findViewById(lblName);
lblEmail = (TextView) findViewById(lblEmail);
가 내 problam – NewDev
스팸되지는 이드의 이름을 sepicifying 전에 R.id 그래서 바로? 액티비티의 경우,'setContentView()'를 호출해야하고 Fragment의 경우'onViewCreated()'에 의해 반환 된 LayoutView를 사용해야합니다 :'returnedLayout.findViewById (...) ' – rupinderjeet
나는 액티비티를 사용 중입니다. – NewDev