3

When I type some class method, Eclipse* brings up a dialog with completion suggestions , and when one of those is selected, it will display another dialog showing the method prototype (returned value, parameters, etc), method description, as well as an指示该方法是否已弃用以及在哪个API 级别添加/弃用。

但是在我附加了 android 源代码之后,我不再在这个对话框中看到原型或 API 指示。

无论如何我可以同时获得这些指示以及附加的资源吗?为了这个目的必须一直分离和重新附加源,或者在网络浏览器中搜索,这真的很烦人而且很耗时。

编辑:我以这种方式附加源:右键单击项目->属性->Java构建路径->库->Android 4.2->android.jar->源附件->编辑->外部位置->外部文件夹- >“C:/Program Files/Android/android-sdk/sources”。Api 17 来源在那里。我的方法有问题吗?

问候

--
*面向移动开发人员的 Eclipse
版本:Juno Service Release 1
Build id:20121004-1855

也尝试过:
Eclipse SDK
版本:4.2.1
构建 id:M20120914-1800

4

1 回答 1

0

尝试在 eclipse 中创建一个新工作区,并将源一次附加到项目目标 api-而不是最低 sdk 版本。

于 2012-12-27T08:22:52.583 回答