ant debug最常见的一个错误解决

这个问题,我用了一下午的时间,在网上搜索各种解决方法都没有解决,最后我同事一句话就给解决了!好了,闲话少说,直接贴问题和解决方法

问题:

ant debug失败,失败信息如下:

BUILD FAILED

/Users/XXX/Documents/Android/Developer/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:601: The following error occurred while executing this line:

/Users/XXX/Documents/Android/Developer/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:

/Users/XXX/Documents/Android/Developer/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:698: null returned: 1

解决方法,找到返回BUILD FAILED的最后一行(我的是最后一行,也许不一定)

     [echo] Handling Resources...

     [aapt] Generating resource IDs...

     [aapt] invalid resource directory name: /Users/XXX/Documents/Universal_multi_resolution/projects/cog_universal/proj.android/libs/KongregateSDKLib/bin/res/crunch


BUILD FAILED

/Users/XXX/Documents/Android/Developer/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:601: The following error occurred while executing this line:

/Users/XXX/Documents/Android/Developer/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:

/Users/XXX/Documents/Android/Developer/adt-bundle-mac-x86_64-20140702/sdk/tools/ant/build.xml:698: null returned: 1

就是红色的那行,找到这个路径下的文件夹crunch,直接删除,OK!

你可能感兴趣的:(问题解决)