Android Library assets folder doesn't get copied

前端 未结 5 492
陌清茗
陌清茗 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 16:53

    From Eclipse and ANT you can reference the same "assets" folder from multiple projects. This allows your source tree to have a single copy of the assets files, but have them included in multiple APKs.

    See Android: targeted res folders for debugging in eclipse

    From ProjectA I was able to reference ..\ProjectA\Assets from ProjectB. On Eclipse (under Windows at least, I've not tried on Linux yet), I had to create a new variable to reference ..\ProjectA and use that variable in "Linked Folder Location". If I attempted to use ".." in "Linked Folder Location" eclipse wouldn't accept it.

提交回复
热议问题