Android的APIDemos编译错误 [英] Android APIDemos Compile Errors

查看:80
本文介绍了Android的APIDemos编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我看了几个在这里的类似名称的线程,但没有一个似乎解决我的问题。

So I have read several of the similarly titled threads here, but none seem to solve my issue.

我已经安装了Eclipse 3.6在Mac(狮子),我安装了几款Android的SDK。我试图打开并运行从2.3.3样品文件夹中的APIDemos应用程序。

I have installed Eclipse 3.6 on a Mac (Lion), I have several Android SDKs installed. I am trying to open and run the APIDemos app from the 2.3.3 Samples folder.

我做到这一点使用文件 - >新建项目 - > Android项目 - >

I do this using File->New Project->Android Project->

在那里,我选择Target =安卓2.3.3

Once in there, I select Target = Android 2.3.3

在这一点上,我选择创建项目从现有的样品,然后选择ApiDemos。

At that point, I select 'Create Project From Existing Sample' and select 'ApiDemos'.

该项目将打开,我立即显示862错误(没有警告)。我无法编译或运行,而且我不知道从哪里开始得到这些错误进行编译。我假设的东西,某个地方,没有看到文件,因为它应该...但我只是不知道它是什么......

The project opens, and I am immediately shown 862 Errors (not Warnings). I am unable to compile or run, and am not sure where to start to get these errors to compile. I'm assuming something, somewhere, is not seeing a file as it should...but I'm just not sure what it is...

令人沮丧的是其他的样品项目工作,但我想,以获得ApiDemos起来,我的设备上运行测试。

The frustrating thing is other Sample projects are working, but I would like to get the ApiDemos up and running on my device for testing purposes.

我AP preciate任何反馈。

I appreciate any feedback.

推荐答案

我有类似的问题。我花了一些时间来找出一个解决办法:删除Eclipse的工作区文件夹ApiDemos的项目文件。然后重新添加项目ApiDemos。

I got similar problems. I spent some hours to figure out a solution: delete project files of ApiDemos in Eclipse's workspace folder. Then re-add project ApiDemos.

我想,有些生成的对象不刷新后,我更新的Andr​​oid SDK。

I guess that some of the generated objects don't refresh after I update Android SDK.

如果你还没有建立和运行之前ApiDemos,我的解决方案应该不适用你的情况。

If you have never build and run ApiDemos before, my solution should not apply your case.

这篇关于Android的APIDemos编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆