Issue Tracking

[Android] Execution failed for task ':app:mergeLibDexDebug'.> Failed to calculate the value of task ':app:mergeLibDexDebug' property 'numberOfBuckets'

CommitGuy 2021. 10. 25. 12:00

오랜만에 안드로이드 개발을 하다보니 AndroidX라고 하는것에 대해 잘 몰랐는데 AndroidX와 관련해 에러가 발생했다

 

Execution failed for task ':app:mergeLibDexDebug'. Failed to calculate the value of task ':app:mergeLibDexDebug' property 'numberOfBuckets'

 

이슈를 해결하는 방법은 간단히 AndroidX를 Migrate 하면 된다

 

1. Mac의 경우, Android Studio > Refactor > Migrate to AndroidX 를 클릭

Migrate to AndroidX

 

2. gradle.properties를 아래와 같이 세팅해준다

 

이렇게 하고 나면 문제는 다 해결된다.