简体   繁体   English

Eclipse Android项目错误?

[英]Eclipse android project error?

I have recently started learning android programming. 我最近开始学习android编程。 I have set up Eclipse IDE for android but whenever I create a java project and click finish. 我已经为Android设置了Eclipse IDE ,但是每当我创建一个Java项目并单击Finish时。 It creates the project and shows the following error on the console while the Android project wizard does not close. Android项目向导未关闭时,它将创建项目并在控制台上显示以下错误。

 Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

I also select the theme to none on the project wizard but that doesn't work either. 我还选择了项目向导上的主题为无,但这也不起作用。

Please help!! 请帮忙!!

You need to do Next in Eclipse: 您需要在Eclipse中执行Next

  • File->Import (android-sdk\\extras\\android\\support\\v7). 文件->导入(android-sdk \\ extras \\ android \\ support \\ v7)。 Choose "appcompat" 选择“ appcompat”
  • Project-> properties->Android. 项目->属性-> Android。 In the section library "Add" and choose "appCompat" 在“添加”部分库中,选择“ appCompat”

Note : for more see this example: http://developer.android.com/guide/topics/ui/actionbar.html 注意 :有关更多信息,请参见以下示例: http : //developer.android.com/guide/topics/ui/actionbar.html

You can start by using Android Studio it's more cooool :) 您可以从使用Android Studio开始,它更酷:)

hope this help! 希望对您有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM