if doesn't support the "condition"attribute 問題解決
因為要實現自動迴圈打包,而ant本身不支援foreach迴圈,需要引入第三方jar包,下載ant-contrib-1.0b3.jar之後把它放到ant所在目錄的lib目錄下,例如我的在F:\ apache-ant-1.9.4\lib,然後要進行關鍵的一步:右鍵點選該jar檔案à選擇“開啟方式”àWinRAR壓縮檔案管理器,依次開啟net/sf/antcontrib/antcontrib.properties,看到以下這一行:
file:///C:/Users/xinyuli/AppData/Local/Temp/msohtmlclip1/01/clip_image006.jpg
然後用#註釋掉if=net.sf.antcontrib.logic.IfTask這一行,這是因為ant-contrib中的if語句會與Android-SDK自帶的if語句衝突,導致報錯if doesn't support the "condition"attribute,所以我們這裡要註釋掉ant-contrib中的if語句,只使用它的foreach語句。至此ant工具就已經全部配置完成。
轉自:http://www.eoeandroid.com/thread-557178-1-1.html
相關文章
- Provisioning profile doesn't include signing certificate問題解決,以及各種證書
- 解決pycharm問題:module 'pip' has no attribute 'main'PyCharmAI
- Field ‘spu_id‘ doesn‘t have a default valu 解決辦法
- 解決can't find -lGL的問題
- Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist解決辦法ErrorMySql
- 'mysql.column_stats' doesn't exist and Table 'mysql.index_stats' doesn't existMySqlIndex
- 問題解決:AttributeError: ‘NoneType‘ object has no attribute ‘append‘ErrorNoneObjectAPP
- scrollTop doesn't scroll on Chrome 61Chrome
- C++ doesn't name a typeC++
- 解決pgpool啟動報錯 ifup[/sbin/ip] doesn't have setuid bitUI
- 解決json顯示日期帶T的問題。JSON
- linux上“rman can't open target”問題解決Linux
- 【Azure 儲存服務】訪問Azure Blob File遇見400-Condition Headers not support錯誤的解決之路Header
- adb server version (31) doesn’t match this client (36); killing… 的解決方法Serverclient
- 解決「問題」,不要解決問題
- 解決問題:Variable 'time_zone' can't be set to the value of 'NULL'Null
- T-SQL問題解決集錦——資料加解密SQL解密
- doesn't contain a valid partition tableAI
- Solaris 5.8 CRON doesn't work with regular user
- Linux環境下MySQL報Table 'xxx' doesn't exist錯誤解決方法LinuxMySql
- T-SQL問題解決集錦——資料加解密(2)SQL解密
- about Res folder doesn't exist in android projectAndroidProject
- Redis 3.2.1從庫啟動報錯"Error condition on socket for SYNC"問題解決一例RedisError
- lower_case_table_names引數設定解決Error Code: 1146. Table doesn't exist?Error
- 解決問題
- 問題解決zipimport.ZipImportError: can‘t decompress data; zlib not availablImportErrorAI
- python報錯問題解決:'ascii' codec can't encode characterPythonASCII
- 發現問題,解決問題
- 解決安裝ubuntu系統時出現錯誤:(10, “debian-installer/locale doesn‘t exist“)Ubuntu
- 帝國CMS重新整理資料表article提示Table ‘empirecms.phome_ecms_’ doesn’t exist的解決
- Android學習開發(問題解決)——android Unable to inflate view tag without class attributeAndroidView
- yum問題解決
- sqlitedabaseislocked問題解決SQLite
- dump 解決問題
- t02_問題
- 【linux】Can't connect to MySQL server on 'XXX' (13)問題解決方式LinuxMySqlServer
- MYSQL(解決方法):Client does not support authentication(轉)MySqlclient
- 使用__attribute__處理對齊問題