Recently I found that non-java resources (e.g. images, properties, xml configurations) from included jar libraries are not copied to the final apk during Unity Android build. As a result as soon as we try to load them from a java side - application crashes with I/WindowState﹕ WIN DEATH: Window..
. exception.
During native Android SDK development, we had the similar issue but it was easily solved by additional gradle configuration. In case of Unity, there is no easy way to modify apk build process.
There was a similar issue reported before. Suggested solution was to copy missing resources to Assets/StreamingAssets
folder, but it’s not going to work for us because we’re using third party jar We need to find a way to modify apk build process.
Just for reference, here is a simplified (complete workflow) diagram for Android apk build process:
Sample Unity project can be downloaded here.
Any ideas how to solve this issue?