블로그 이미지
Every unexpected event is a path to learning for you.

카테고리

분류 전체보기 (2731)
Unity3D (814)
Programming (474)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (228)
협업 (57)
3DS Max (3)
Game (12)
Utility (136)
Etc (96)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (51)
Android (14)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday
03-28 00:02

[아래 링크의 방법 시도하기 전에 일단 시도해봐야 될 것]

1. 'Player Setting -> Android -> Pubilshing Settings -> Use R8'로 이동

2. 'Use R8'이 체크 안돼 있는지 확인(Non Checked)

3. 'Use R8'이 체크 안돼 있는데도 에러가 난다면, 한 번 체크 했다가 다시 체크 해제

4. 빌드 테스트

 

[에러 수정 후기]

이번에 프로젝트를 Unity2018에서 Unity 2021로 올렸는데 제목과 같은 에러가 났다.

아래 링크의 방법 해보려하다가 Unity2020에서 생성해서 만들어진 gradle을 살펴봤지만 옵션에 문제가 없어보여서 이상하다 싶어서 위에 있는 'Use R8'을 체크 한 번 했다가 다시 체크 해제를 하니 정상적으로 빌드가 된다.

예상으로는 기존에 Unity2018에서 없던 옵션인 'Use R8'이 Unity2021(2020에도 있던데 어디서부터 생긴진 봐야될듯..)에서 새로 추가되면서 기존에는 없던 옵션이 생기면서 원하지 않거나 이상한 값이 저장돼 있는게 아닐까..하고 예상해 봄.

 

[Use R8 옵션 참조]

[Unity 2018] Use R8 옵션이 없다

 

[Unity 2021] Use R8 옵션이 있다.

 

[결론]

Use R8이 꺼져있는데도 위와같은 에러를 낸다면 Use R8 체크했다가, 다시 체크해제 해보자.

안되면 아래 방법으로..

 

-------------------------------------------------------------------------------------------------

 

[참조] https://kooksdev.tistory.com/8

 

[Error] Unity WARNING: The option setting 'android.enableR8=false' is deprecated

Gradle 관련 에러 두가지 방법으로 해결할 수 있다 Try 1 Custom Gradle Properties Template를 만들어서 android.enableR8=false를 적기 Try 2 Custom Base Gradle Template를 만들어 Gradle 버전 세팅 나는 두..

kooksdev.tistory.com

 

반응형
Posted by blueasa
, |

[링크] https://ajh322.tistory.com/298

 

유니티 빌드 에러 - mainTemplate.gradle file is using the old aaptOptions noCompress property definition which does not in

증상 유니티 버전을 2019대에서 2020대로 올리고 안드로이드 빌드를 하면 mainTemplate.gradle file is using the old aaptOptions noCompress property definition which does not include types defined by unit..

ajh322.tistory.com

 

[링크2] https://codetime.tistory.com/279

 

[Error] mainTemplate.gradle file is using the old aaptOptions 처리

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

codetime.tistory.com

 

반응형
Posted by blueasa
, |