findViewById returns null

后端 未结 4 2026
说谎
说谎 2020-11-22 09:59

I have code:

public class HelloWorld extends Activity {

private Button buttonOk;
private Button buttonCancel;

private OnClickListener buttonOkListener = ne         


        
4条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 10:37

    I was having the same trouble, but after cleaning my project and running it again it works perfectly.

提交回复
热议问题