Old aaptOptions error fix

This error pops up when using JMRSDK with Unity 2020 or higher.

If you got an error related to the old aaptOptions while making the build like this. Here is the fix:

Find the "mainTemplate" file inside your project window Assets->Plugins->Android

Open "mainTemplate.gradle" using notepad and add line

"noCompress = ['.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ')"

under the heading "aaptOptions" as highlighted in the screenshot

Last updated