-
[Flutter] D8: Cannot fit requested classes in a single dex file (# methods: 66953 > 65536) 대한 오류 해결방법Flutter 2021. 10. 12. 14:21728x90
플러터로 앱 개발을 하다 규모가 커지게 되면 코드도 많아지면서 라이브러리도 또한 많아지게됩니다.
이럴때 나타나는 오류로 해결방법은 의외로 간단했습니다.
앱 하단에 build.gradle에 들어가서 multiDexEnabled true 를 추가해주시면 됩니다.
왜 멀티DEX에러가 발생하는 걸까?
너무 많은 메소드를 가져와서 실행을 하려고 하니 박스가 가득찬 탓에 메소드를 담을 그릇이 부족하기 때문에 박스를 더 추가하라고 요구하는 것입니다.
728x90'Flutter' 카테고리의 다른 글
[Flutter] AppBar에 Gradient를 사용해 꾸며보자 (0) 2021.10.21 [Flutter] AppBar에 대해서 알아보자. (0) 2021.10.21 [Flutter] Gridview.count 위젯 사용시 스크롤이 되지않을때 해결방법 (0) 2021.10.17 [Flutter] 공공 데이터 Encoding API키가 적용이 안될때 방법 (0) 2021.10.17 [Flutter]MediaQuery를 적용한 Padding 값 입력시 오류 해결 방법 (0) 2021.10.12