Android Library assets folder doesn't get copied

android, android-library

Solution

The new Android Build System that is based on Gradle supports asset folders in library projects!

With ANT based builds it's still not possible:

Library projects cannot include raw assets. (See docs)

But you could

- copy the assets manually

- or even patch the aapt tool (see http://devmaze.wordpress.com/2011/06/26/enabling-assets-in-android-libraries/)

Problem

I am creating an Android library and it has an `assets` folder with images. When I use it in another project the assets doesn't get copied. Anyone else had this issue?

Original source

Related problems