setContentView(R.layout.hello_world_layout); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.hello_world, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }}错误是[2016-10-12 14:26:31 - HelloWord] D:\eclipse\HelloWord\AndroidManifest.xml:11: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').[2016-10-12 14:26:31 - HelloWord] [2016-10-12 14:26:31 - HelloWorld] D:\eclipse\HelloWorld\AndroidManifest.xml:11: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').[2016-10-12 14:26:31 - HelloWorld] [2016-10-12 14:26:32 - aa] D:\eclipse\aa\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.[2016-10-12 14:26:32 - aa] [2016-10-12 14:26:32 - aa] D:\eclipse\aa\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.[2016-10-12 14:26:32 - aa] [2016-10-12 14:26:32 - aa] D:\eclipse\aa\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.[2016-10-12 14:26:32 - aa] [2016-10-12 14:26:32 - helloWorlda] D:\eclipse\helloWorlda\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.[2016-10-12 14:26:32 - helloWorlda] [2016-10-12 14:26:32 - helloWorlda] D:\eclipse\helloWorlda\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.[2016-10-12 14:26:32 - helloWorlda] [2016-10-12 14:26:32 - helloWorlda] D:\eclipse\helloWorlda\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.[2016-10-12 14:26:32 - helloWorlda] [2016-10-12 14:26:32 - ss] D:\eclipse\ss\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.[2016-10-12 14:26:32 - ss] [2016-10-12 14:26:32 - ss] D:\eclipse\ss\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.[2016-10-12 14:26:32 - ss] [2016-10-12 14:26:32 - ss] D:\eclipse\ss\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.[2016-10-12 14:26:32 - ss]
添加回答
举报
0/150
提交
取消