Android的库资源文件夹不被复制

Android的库资源文件夹不被复制

问题描述:

我创建一个Android库,它有一个资产文件夹中的图像。 当我在另一个项目中使用它的资产不会被复制。

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.

任何人有这个问题?

新Android编译系统是基于摇篮支持库项目资产的文件夹!

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

使用基于ANT构建它仍然不可能的:

With ANT based builds it's still not possible:

库项目不能包含原始资产。 (见文档

Library projects cannot include raw assets. (See docs)

但你能