参考外部项目不工作 [英] Reference to external project doesn't work

查看:175
本文介绍了参考外部项目不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我更新了Android SDK工具,以rev19停产是通过引用项目可见我的外部库项目。
随着新的依赖行为让我感动的jar / libs文件夹已固定与外部罐子引用。

Since I updated android SDK tools to rev19 my external Library Projects discontinued to be visible by referencing projects. With new dependency behavior I moved jars to /libs folder which has fixed references with external jars.

Addining的链接LIbProject

Addining a link to the LIbProject

链接添加使用绝对路径

在性能再次重新打开链接好像已损坏

When properties reopened again the link appears broken

此链接帮助与外部罐子。 http://tool​​s.android.com/recent/dealingwithdependenciesinandroidprojects

This link helped with external jars. http://tools.android.com/recent/dealingwithdependenciesinandroidprojects

这是字面上什么我得到,不是罐子,但库项目。
HTTP://$c$c.google.com/p /安卓/问题/细节?ID = 27490

This is literally what I'm getting, not with jars but Library Projects. http://code.google.com/p/android/issues/detail?id=27490

如何到现在引用外部项目?

How to reference external projects now?

编辑:

不知怎的参考图书馆计划被打破了。从引用的项目,我添加链接到一个LibProject。项目 - >属性 - > Android->图书馆 - >添加。当LIB项目增加,重新打开属性表明链接断开。项目是在不同的逻辑磁盘。如果在一个共同的根文件夹,然后项目链接的作品。

Somehow reference to the Library Project is broken. From the referencing project I add link to a LibProject. Project->Properties->Android->Library->Add. When the lib project added, reopening properties shows that the link is broken. Projects are on different logical disks. If projects in a common root folder then linking works.

推荐答案

在哪里存储实际的库项目也没关系,只要你使用的相对链接以引用它。查看库项目 - 发展的考虑的:

Where to store the actual library project does not matter, as long as you use a relative link to reference it. Check out the Library Projects - Development considerations:


      
  • 库项目的存储位置


      
      

    有你在哪里应该存储库项目,相对于相关的应用程序的项目,只要在应用程序项目可以通过相对链接引用该库项目没有具体要求。最重要的是,该项目主要通过相对链接引用该库项目。

  • Library project storage location

    There are no specific requirements on where you should store a library project, relative to a dependent application project, as long as the application project can reference the library project by a relative link. What is important is that the main project can reference the library project through a relative link.

看看我的答案<一个href=\"http://stackoverflow.com/questions/10200751/eclipse-will-not-recognize-project-as-library-actionbarsherlock-viewpagerindica\">here看截图研究如何正确的(使用相对路径)和断(使用绝对路径)库引用链接在属性窗口中。

Check out my answer here to see the screenshot examine how correct (by using relative path) and broken (by using absolute path) library reference links are shown in Properties window.

这篇关于参考外部项目不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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