Bug P2
Status Update
Comments
ph...@philipalldredge.com <ph...@philipalldredge.com> #2
I have ran into this issue as well. aapt does not have this issue.
jo...@gmail.com <jo...@gmail.com> #3
Any updates? This issue still seems to be present in:
Also, I may have mistyped before, the incorrect entries would be at the path:
assets/subfolder\asset1.txt
Description
assets\asset1.txt
assets\subfolder\asset2.txt
If I produce an APK, these paths should all get normalized to unix-style directory separators.
However, they will instead be:
assets/asset1.txt
assets\subfolder/asset1.txt
Then if I try to use the asset from Java at runtime, I get a java.io.FileNotFoundException when calling AssetManager.open. It seems that asset sub-directories are completely broken on Windows with aapt2?
I can reproduce this with aapt2.exe from the Android SDK Build Tools 27.0.3, but I can also reproduce from the version on maven here: