App crash in eclipse

后端 未结 1 1081
别跟我提以往
别跟我提以往 2021-01-23 09:52

I am new in android app development & I have installed:

  • Android SDK tools Rev 20.0.3
  • Android SDK tools Rev 20.0.3
  • Android SDK Platform-tools
相关标签:
1条回答
  • 2021-01-23 10:12

    you may create many like this,

    and for your project error you may use Project -> Clean Option and try to clean your project , make sure that All Xml file is fine , and Drawable Resources name is proper, and run it again.

    @Override
            public boolean onCreateOptionsMenu(Menu menu) {
                menu.clear();
                menu.add(1, 1, 0, "Share Info").setIcon(R.drawable.share);
                menu.add(1, 2, 1, "Chat").setIcon(R.drawable.chat);
                menu.add(1, 3, 2, "Copy Item").setIcon(R.drawable.folder);
                menu.add(1, 4, 3, "Move Item").setIcon(R.drawable.folder);
                menu.add(1, 5, 4, "Delete Item").setIcon(R.drawable.delete);
                menu.add(1, 6, 5, "Select Item").setIcon(R.drawable.folder);        
                // return super.onCreateOptionsMenu(menu);
                return true;
            } 
    
    0 讨论(0)
提交回复
热议问题