Develop/Cordova

[Cordova, Exception] Build-tool 31.0.0 is missing DX

Codit Develop 2021. 7. 20. 13:43
반응형

에러 내용

Cordova Android 실행 시 dx.bat을 찾을 수 없다고 나오는 현상.

Build-tool 31.0.0 is missing DX at C:\Users\WDAGUtilityAccount\AppData\Local\Android\sdk\build-tools\31.0.0\dx.bat
Build-tool 31.0.0 is missing DX at C:\Users\WDAGUtilityAccount\AppData\Local\Android\sdk\build-tools\31.0.0\dx.bat


FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

해결 방법

 - 에러 로그에서 나온 경로를 따라 간 뒤, d8.bat 파일을 찾아 dx.bat으로 이름 변경

 - 해당 폴더의 lib 폴더 안의 d8.jar 파일을 dx.jar 파일로 이름 변경

 

 

Android Studio의 버그인지 다른 곳에서도 발생하는 문제인지는 모르겠지만 버그로 보임.

반응형