zoukankan      html  css  js  c++  java
  • Android Ant Build 遇到的问题

    Ant的具体使用这里就不详细说明了,这里记录下自己使用Ant批量打包apk的时候遇到的问题。

    1. build 出现 crunch等字样的错误

      <span style="color: #FF0000;">[aapt] invalid resource directory name: F:workspacelibin
    es/crunch</span>

      BUILD FAILED
      D:Androidsdk oolsantuild.xml:601: The following error occurred while executing this line:
      D:Androidsdk oolsantuild.xml:653: The following error occurred while executing this line:
      D:Androidsdk oolsantuild.xml:698: null returned: 1

    在build.xml中增加property,忽略处理不需要的目录和文件,  可以加到AndroidSDK oolsantuild.xml  (对android所有项目生效

    也可以添加到项目的build.xml中(这样子就只对自己的项目生效!)

    <property
    name="aapt.ignore.assets"
    value="x3Cdirx3Ecrunch:!.svn:!.git:.*:x3Cdirx3E_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" />

    2.  

  • 相关阅读:
    SQLite基本(实例FileOrganizer2013.5.12)
    MongoDB常见问题
    Node.js
    Linux安装indicator-china-weather
    Hadoop常见问题
    Hadoop HDFS文件操作
    Ubuntu下载、zsync、安装、常见问题
    Mongo-Hadoop
    Mongo JavaTest
    MongoDB 快速入门
  • 原文地址:https://www.cnblogs.com/homleening/p/5691789.html
Copyright © 2011-2022 走看看