如何在 Eclipse 中将源附加到 Google Drive API 或“Android Private Library”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16723852/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to attach source to Google Drive API or `Android Private Library` in Eclipse
提问by Amir Uval
I've installed the Drive APIusing the Add Google APIs...
menu option.
When manually drilling into any one of the jars under Drive API, the source code opens ok.
我已经使用菜单选项安装了Drive APIAdd Google APIs...
。
当手动钻入Drive API下的任何一个 jar 时,源代码打开正常。
But manually drilling into the same jar under Android Private Libraries
results in a "Source not found".
但是手动钻入同一个罐子下会Android Private Libraries
导致“找不到源”。
So when using open Declaration (F3)
for example, I get the "Source not found" page.
因此open Declaration (F3)
,例如在使用时,我会看到“找不到源”页面。
The build system links all the jars using a library called Android Private Libraries
.
构建系统使用名为Android Private Libraries
.
I could not find a way to attach source or documentation to the Drive API.
我找不到将源或文档附加到 Drive API 的方法。
All the options to attach anything are disabled.
附加任何东西的所有选项都被禁用。
Any advice?
有什么建议吗?
回答by Amir Uval
Found a way...
I moved the "Drive API" library above "Android Private Libraries" in the "Order and Export" dialog of the Build Configuration window.
Hope it helps someone...
找到了一种方法......
我在构建配置窗口的“订购和导出”对话框中将“驱动API”库移到“Android私有库”上方。
希望它可以帮助某人...