Android Library assets folder doesn't get copied

前端 未结 5 494
陌清茗
陌清茗 2020-12-01 16:44

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 h

5条回答
  •  伪装坚强ぢ
    2020-12-01 17:11

    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/)

提交回复
热议问题