本文介绍了是jar.libs.dir没有被正确重写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在referencing只是few other questions,我发现没有这些问题的答案在我的项目都在工作。下降到罐子每个模块/ libs文件夹,Ant构建正确运行并产生输出。删除所有/库文件夹,并包括每个模块中的 ant.properties 文件(又名 build.properties )后我需要的,蚂蚁构建已停止工作。

ant.properties:

 #此文件用于覆盖由Ant构建系统使用的默认值。

#这个文件必须在版本控制系统进行检查,因为它是
#集成到你的项目的构建系统。#此文件仅由Ant脚本。#你可以用它来覆盖默认值,如
#'source.dir为你的java源文件夹的位置,
#'out.dir为输出文件夹的位置。jar.libs.dir = .. / ExternalJars /库

在build.xml
        

 <属性文件=ant.properties/>< loadproperties SRCFILE =project.properties/>!<  - 版本标签:1  - >
 <导入文件=$ {} sdk.dir /tool​​s/ant/build.xml/><目标名称=完全调试取决于=调试>
< /目标与GT;<目标名称=完全释放取决于=干净,放>
< /目标与GT;

据我所知道的,文件被正确写入 - 的路径都是相对ant.properties文件正确,罐身在何处,他们应该是,模块使用所有正确的类和零部件等

思考?


解决方案

这是一个已知的错误:的

After referencing just a few other questions, I found that none of those answers are working in my project. Dropping jars into the /libs folder of each individual module, the ant build runs correctly and produces output. After deleting all of the /libs folders and including an ant.properties file ( a.k.a. build.properties ) in every module I need, the ant build has stopped working.

ant.properties:

# This file is used to override default values used by the Ant build system.
#
# This file must be checked in Version Control Systems, as it is
# integral to the build system of your project.

# This file is only used by the Ant script.

# You can use this to override default values such as
#  'source.dir' for the location of your java source folder and
#  'out.dir' for the location of your output folder.

jar.libs.dir=../ExternalJars/libs

Build.xml

<property file="ant.properties" />

<loadproperties srcFile="project.properties" />

<!-- version-tag: 1 -->
 <import file="${sdk.dir}/tools/ant/build.xml" />

<target name="full-debug" depends="debug">
</target>

<target name="full-release" depends="clean,release">
</target>

As far as I can tell, the files are properly written - the pathing is all correct relative to the ant.properties file, jars are where they should be, modules use all of the correct classes and parts, etc.

Thoughts?

解决方案

this is a known bug: http://code.google.com/p/android/issues/detail?id=33194

这篇关于是jar.libs.dir没有被正确重写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 22:29