简体   繁体   English

Eclipse Juno中的错误

[英]Error in Eclipse Juno

Goodafternoon community! 下午好社区! total beginner here. 总初学者在这里。 I am developing my first android app and have downloaded all what is required in running Eclipse Juno as well as files from SDK manager. 我正在开发我的第一个android应用程序,并下载了运行Eclipse Juno所需的所有内容以及SDK管理器中的文件。 But when I'm creating a new Android Application Project I encounter a couple of errors already. 但是,当我创建一个新的Android应用程序项目时,我已经遇到了两个错误。 It says, 它说,

Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 检索项目的父项时出错:找不到与给定名称“ Theme.AppCompat.Light”匹配的资源。 (^in red) (^红色)

AND... 和...

WARNING: unable to write jarlist cache file C:\\Users\\Nokia\\thesis2\\appcompat_v7\\bin\\jarlist.cache (^ in black) 警告:无法写入jarlist缓存文件C:\\ Users \\ Nokia \\ thesis2 \\ appcompat_v7 \\ bin \\ jarlist.cache(黑色^)

Can anyone help me. 谁能帮我。 Thank you very much everyone! 非常感谢大家! :-D more power to you guys! :-D你们的力量更大!

You should add support v7 library in your project. 您应该在项目中添加support v7库。 If you are not installed it using SDK manager, 如果未使用SDK Manager安装它,
Android developer site will help you. Android开发人员网站将为您提供帮助。

After that the AppCompat Can be found at 之后,可以在以下位置找到AppCompat

android-sdk/extras/android/support/v7/appcompat

You need to reference this AppCompat in your android project. 您需要在您的android项目中引用此AppCompat

Import the library to eclipse. 将库导入到eclipse。

  1. Right click on your android project. 右键单击您的android项目。
  2. Goto Properties. 转到属性。
  3. Select Android. 选择Android。
  4. Click Add Library and reference the same. 单击添加库,然后引用相同的库。

Clean and Rebuild your project 清理并重建您的项目

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

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