사용 라이브러리 & 버전 → kakao_flutter_sdk_user: ^1.3.1
PC 정보 & OS 정보 → Apple M1 Max Macbook Pro / Ventura 13.2.1
Flutter version : 3.7.5
Dart version : 2.19.2
OS 버전을 Ventura로 올리고, Flutter 버전을 3.7.5로 올린 이후에 아래 에러가 발생합니다.
에러를 유추할만한 메세지가 없어서, kakao sdk의 이슈일거라는 생각을 하게되어 문의 남깁니다.
확인 한번 부탁드릴게요!
…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_api_exception.dart:4:6: Error: Error when reading ‘…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_api_exception.g.dart’: No such file or directory
part ‘kakao_api_exception.g.dart’;
^
…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_auth_exception.dart:4:6: Error: Error when reading ‘…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_auth_exception.g.dart’: No such file or directory
part ‘kakao_auth_exception.g.dart’;
^
…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_api_exception.dart:4:6: Error: Can’t use ‘…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_api_exception.g.dart’ as a part, because it has no ‘part of’ declaration.
part ‘kakao_api_exception.g.dart’;
^
…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_auth_exception.dart:4:6: Error: Can’t use ‘…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_auth_exception.g.dart’ as a part, because it has no ‘part of’ declaration.
part ‘kakao_auth_exception.g.dart’;
^
…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_api_exception.dart:31:7: Error: Method not found: ‘_$KakaoApiExceptionFromJson’.
$KakaoApiExceptionFromJson(json);
^^^^^^^^^^^^^^^^^^^^^^^^^^^
…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_api_exception.dart:34:36: Error: The method '$KakaoApiExceptionToJson’ isn’t defined for the class ‘KakaoApiException’.
- ‘KakaoApiException’ is from ‘package:kakao_flutter_sdk_common/src/kakao_api_exception.dart’ (’…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_api_exception.dart’).
Try correcting the name to the name of an existing method, or defining a method named ‘_$KakaoApiExceptionToJson’.
Map<String, dynamic> toJson() => $KakaoApiExceptionToJson(this);
^^^^^^^^^^^^^^^^^^^^^^^^^
…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_auth_exception.dart:22:7: Error: Method not found: '$KakaoAuthExceptionFromJson’.
$KakaoAuthExceptionFromJson(json);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_auth_exception.dart:25:36: Error: The method '$KakaoAuthExceptionToJson’ isn’t defined for the class ‘KakaoAuthException’. - ‘KakaoAuthException’ is from ‘package:kakao_flutter_sdk_common/src/kakao_auth_exception.dart’ (’…/…/…/.pub-cache/hosted/pub.dev/kakao_flutter_sdk_common-1.4.0/lib/src/kakao_auth_exception.dart’).
Try correcting the name to the name of an existing method, or defining a method named ‘_$KakaoAuthExceptionToJson’.
Map<String, dynamic> toJson() => _$KakaoAuthExceptionToJson(this);
^^^^^^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.