unity穿山甲SDK打包问题

在unity导入穿山甲SDK后,打包apk时报了一个错误:mainTemplate.gradle file is using the old aaptOptions noCompress property definition which does not include types defined by unityStreamingAssets constant.

unity穿山甲SDK打包问题_第1张图片

解决办法:在mainTemplate以下位置加入代码: noCompress = ['.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', '),即可打包成功;

unity穿山甲SDK打包问题_第2张图片

 

 

你可能感兴趣的:(unity,android)