Saturday, 12 July 2014

Android build fails with ant on eclipse project says - "invalid resource directory name: [...]/google-play-services_lib/bin/res/crunch"


case: when you try to build and an eclipse android project externally using ant, it fails saying the crunch inside the bin/res/ folder of google-play-services_lib is not valid.

soln: what the heck is the crunch folder , is yet to be investigated, as long as it is in bin folder I dont give much importance to it. There is a bug for the same issue here

https://code.google.com/p/android/issues/detail?id=60496

but the bug status at the time of writing this was new.

So how to fix it?

Disable automatic build in eclipse project temporarily, delete the crunch folder, run the ant script. Done -Simple.
Enable the auto build again when you are coding.

If you are using ant from command line then do a 'ant clean release' instead of 'ant release'.


1 comment:

  1. When someone writes an article he/she keeps the thought of a user in his/her brain that how a user can be aware of it. Therefore that’s why this post is outstanding.Thanks!

    www.gofastek.com

    ReplyDelete