我的第一个安卓程序就不可以运行,是我的软件有问题还是我的创建的过程有问题,急求!!


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] 


慕村0459722
浏览 2393回答 2
2回答

Performer

Error: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').

ziom

编译错误,布局文件贴出来看看
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android
Java