简体   繁体   English

Android中的build.xml在哪里

[英]Where is build.xml in android

I m making an app which shares its file from assets folder and I m sharing an xml file to other app it gives me this exception 我正在制作一个从资产文件夹共享其文件的应用程序,并且与另一个应用程序共享一个xml文件,这给了我这个例外

java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed

I got this TUTORIAL but at point number 7 it says that "ADD THIS SECTION TO THE END OF build.xml" so where can I get this build.xml?? 我得到了这个教程,但是在第7点它说“将这一部分添加到build.xml的末尾”,那么我在哪里可以得到这个build.xml?

And any way around to resolve this exception?? 以及解决该异常的任何方法?

I m using MAC OS X 我正在使用MAC OS X

Run android update project -p ..., where the ... is the path to the project. 运行android update project -p ...,其中...是项目的路径。 This will create or update the build.xml and related command-line build files. 这将创建或更新build.xml和相关的命令行生成文件。 This assumes that your SDK's tools/ directory in your PATH; 假设PATH中有SDK的tools /目录; otherwise, you will need to fully-qualify the path to the android command.I hope it will helps you . 否则,您将需要完全限定android命令的路径。希望对您有所帮助。

Follow this Procedure To Use build.xml 请按照以下过程使用build.xml

Go to your Android SDK installation, and open the file " tools/ant/build.xml ", copy the complete "test" target and paste it in the "build.xml" of the test project, before the import of build.xml , so before the comment starting with "Import the actual build file". 转到您的Android SDK安装,打开文件“ tools/ant/build.xml ”,复制完整的“ test”目标,然后将其粘贴到测试项目的“ build.xml”中,然后导入build.xml ,因此在以“导入实际构建文件”开头的注释之前。 There is more information on how to customize targets in that comment. 在该注释中有更多有关如何自定义目标的信息。

If its Confusing Follow this for Complete Ant.... 如果令人困惑,请按照此操作完成Ant。

Hope You understand.. 希望你能理解..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM