Java 如何将“Android 私有库”的源添加到 ADT eclipse?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18434552/
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 add source of 'Android Private Libraries' to ADT eclipse?
提问by Six80
I try to see source of source android-support-v4.jar and get:
"The jar of this class file belongs to container and 'Android Private Libraries' "
我尝试查看源 android-support-v4.jar 的来源并得到:“此类文件的 jar 属于容器和‘Android 私有库’”
Where to obtain and attach 'Android Private Libraries' source?
在哪里获取和附加“Android 私有库”源?
采纳答案by Shobhit Puri
There are many question on that.
Basically the android-support-v4.jar
need to be in Referenced Libraries
by right click, Build Path
.., Add to Path
. Then in Referenced Libraries
, right click properties
on android-support-v4
and set the sources.
对此有很多疑问。基本上android-support-v4.jar
需要Referenced Libraries
通过右键单击,Build Path
.., Add to Path
. 然后在Referenced Libraries
右键点击properties
上android-support-v4
,并设置源。
Taken from How do I attach the Android Support Library source in Eclipse?and How to attach source to Google Drive API or `Android Private Library` in Eclipse. Please go through the answers. They'll help you.
摘自如何在 Eclipse 中附加 Android 支持库源?以及 如何在 Eclipse 中将源代码附加到 Google Drive API 或“Android Private Library”。请仔细阅读答案。他们会帮助你的。
回答by Chris Fong
You also need to make sure that the "Android Private Libraries" is ranked lower in the "Order and Export" tab of your project's "Java Build Path" preferences.
您还需要确保“Android 私有库”在项目“Java 构建路径”首选项的“订购和导出”选项卡中排名较低。