티스토리 뷰
Module was compiled with an incompatible version of Kotlin 에러
낭초비 2024. 3. 13. 10:24오랜만에 컴파일을 하니 아래와 비슷한 에러가 여러개 떴다.
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.5.1.
그런데 컴파일은 된다. 그래도 에러가 뜬 것때문에 찜찜해서 저 에러를 없애려고 구글링을 해보았다.
The binary version of its metadata is 1.8.0, expected version is 1.6.0
I had this problem yesterday and 4 developers working together had this problem as well. ext.kotlin_version = '1.6.0' /Users/user/.gradle/caches/transforms-2/files-2.1/2dce81f10515217cc4bd96ea20de...
stackoverflow.com
위의 글에서 첫번재 댓글의 설명중 step1만 수행 후, build apk를 해보니 문제가 없어졌다.

아마도 내가 app\build.gradle 파일에 아래와 같이 수정한 kotlin version이
ext.kotlin_version = '1.9.0'
flutter 에서 컴파시 사용하는 스크립트나 소스코드에 적용되지 않아서 생긴 문제인 듯 하다. 그래서 위의 stackoverflow 의 댓글처럼 새로운 kotlin 버전으로 수정했다면 configure kotlin project 를 해줘야 하나보다.
'Dart & Flutter > Error 해결 정리' 카테고리의 다른 글
Android studio 에서 빌드 에러 (0) | 2024.10.28 |
---|---|
블루투스의 의도하지 않은 연결 해제 후, 다른 장비와 연결이 안될 때 (0) | 2024.03.21 |
TextField가 keyboard 에 가려지는 문제 (0) | 2023.10.12 |
WidgetBinding.instance.addPostFrameCallback 이 호출되지 않는다. (0) | 2023.09.14 |
TextFormField 에서 text 의 vertical alignment 가 안 맞는 문제 (0) | 2023.09.11 |
- Total
- Today
- Yesterday
- Syncfusion
- 에러
- BLE
- Bluetooth
- 인사이트
- 이미지
- TextField
- 한빛미디어
- 크롬
- 디자인
- TextFormField
- addPostFrameCallback
- Chrome
- firebase
- UX
- UI
- Flutter
- position
- error
- 앱
- plugin
- IOS
- 앱 프로그래밍
- 다트
- DART
- SizedBox
- 앱개발
- hide
- 플러터
- 문제 해결
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |