게임 개발/유니티

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결.

UniCoti(유니코티) 2023. 3. 4.
반응형

https://kmong.com/self-marketing/556080/xcCLzhi3mY

 

당신이 손해볼 구글링 시간을 없애다 - 유니티 비법서 - 크몽

UniCoti 전문가의 전자책 서비스를 만나보세요. <p>이 책은 유니티를 하면서 생기는 여러 오류에 대한 해결책과</p>......

kmong.com

(174가지 주제의 유니티 기능 정리, 오류 해결법 + 무제한 질문권 전자책. 15000원)

 

오래간만에 빌드를 실패하며,

this project uses androidx dependencies but the 'android.useandroidx' property is not enabled라는

오류가 떴다.

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결.


이번엔 이 빌드에러를 해결해 보겠다.

 

먼저, Stackoverflow의 글을 참고하면,

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결.

 

android.useAndroidX = true
android.enableJetifier = true

이 두 코드를 gradle.properties에 넣으라고 한다.

그러려면, gradle.properties를 찾아야 하는데,

먼저 프로젝트 폴더로 들어가 준다.

그중, Library로 들어가 준다.

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결. - undefined - 그중, Library로 들어가 준다.

그중, Bee로 또다시 들어가 준다.

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결. - undefined - 그중, Bee로 또다시 들어가 준다.

그 후엔, Android로,

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결. - undefined - 그 후엔, Android로,

그 후에는 Prj로 가주고,

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결. - undefined - 그 후에는 Prj로 가주고,

IL2CPP,

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결. - undefined - IL2CPP,

Gradle,

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결. - undefined - IL2CPP, - Gradle,

마지막으로 gradle.properties로 들어가 주면 된다.

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결. - undefined - 마지막으로 gradle.properties로 들어가 주면 된다.


간단히 경로로 소개하자면

프로젝트\Library\Bee\Android\Prj\IL2 CPP\Gradle이다.

 

아무튼 이 파일을 열고,

유니티) this project uses androidx dependencies but the 'android.useandroidx' property is not enabled 빌드에러 해결. - undefined - 마지막으로 gradle.properties로 들어가 주면 된다.

그 코드를 복붙 해주면 해결된다.

 

유니티 협력 글(어필리에이트)


도움이 되었길 바라며,

 

끝.

반응형

댓글