当前位置:   article > 正文

Unity2020+ 导出安卓项目失败_maintemplate.gradle file is using the old aaptopti

maintemplate.gradle file is using the old aaptoptions nocompress property de

导出项目错误:

Error:mainTemplate.gradle file is using the old aaptOptions noCompress property definition which does not include types defined by unityStreamingAssets constant.

解决:

mainTemplate.gradle文件 中 aaptOptions{ //something...}

新加/修改为

  1. aaptOptions {
  2. noCompress= ['.ress', '.resource', '.obb' ]+ unityStreamingAssets.tokenize(', ') //之前不是这样的
  3. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
  4. }

项目内其他地方可能也有aaptOptions 要改记得都改下

参考:유니티 빌드 에러 - mainTemplate.gradle file is using the old aaptOptions noCompress property definition which does not include types defined by unityStreamingAssets constant. :: IT 잡동사니

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/556400
推荐阅读
相关标签
  

闽ICP备14008679号