Android Library assets folder doesn't get copied

前端 未结 5 498
陌清茗
陌清茗 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:14

    start by creating android lib project, close after creation. this'll prevert autobuild

    use cmd terminal on windows android command is batch file

    add tools to path C:\Users\user_bss>PATH=%PATH%;C:\adt-bundle-windows-x86-20140321\sdk\tools

    Generate build.xml for ant android update project -p C:\Users\user_bss\Documents\Workspace\SDKAdvanced -n SDKAdvanced

    notepad custom_rules.xml add the code from above don't forget end tag

    run "ant debug" or "ant release" to build

    you'll see classes.jar in bin dir this is your packed lib

提交回复
热议问题