반응형
flutter 에서 json_serializable 을 위해 terminal에서 flutter pub run build_runner build 실행했을때 "type 'UnspecifiedInvalidResult' is not a subtype of type 'LibraryElementResult' in type cast" 에러가 발생하며 빌드가 안될경우.
1. pubsepc.lock 파일 삭제
2. Tool > Flutter > Flutter Clean
3. Tool > Flutter > Flutter Pub Get
실행 한뒤 다시 flutter pub run build_runner build하면 정상 실행.
반응형
'IT세상 > 플러터(Flutter)' 카테고리의 다른 글
플러터(Flutter) - Execution failed for task ':app:processDebugMainManifest'. (0) | 2022.08.22 |
---|---|
플러터(Flutter) - Please enable Developer Mode in your system settings. (0) | 2022.08.22 |
플러터(Flutter) - 버전 업그레이드 하기 (0) | 2022.08.22 |
플러터(Flutter) - Bottom Overflowed By xx pixels (0) | 2020.09.18 |
플러터(Flutter) - Target of URI doesn’t exist : 'package:http/http.dart' (0) | 2020.08.27 |