I have a project where all my app-resources are stored in some random directory, let’s call it ‘Bob’. I know that, when setting up the apk, the build system is assuming that all the resources are in the ‘assets’ directory, but I really would like to redirect this to ‘Bob’. I tried specifying assets_dir=d:/Bob in both the project.properties, and the ant.properties, but both of those solutions failed to incorporate the resources, and failed with C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Android\vs-android.Cpp.Android.Build.targets(220,5): error MSB6001: Invalid command line switch for “D:\NVPACK\apache-ant-1.8.2\bin\ant.bat”. An item with the same key has already been added.
And sure enough, I see that aapt is called with:
1> [aapt] ‘-A’
1> [aapt] ‘d:\MyProject\assets’
What’s the proper way to set this up?