aws를 로그인하기위한 플러그인인 amplify_flutter와 웹주소를 써서 사파리나 크롬창으로 띄우기 위해 url_launcher 을 사용하는데 pub get을 했더니 에러가 난다.
Because url_launcher_platform_interface >=1.0.5 <2.0.0-nullsafety depends on plugin_platform_interface ^1.0.1 and url_launcher_platform_interface >=1.0.4 <1.0.5 depends on plugin_platform_interface ^1.0.0, url_launcher_platform_interface >=1.0.4 <2.0.0-nullsafety requires plugin_platform_interface ^1.0.0.
(1) So, because url_launcher >=5.4.1 <5.5.2 depends on url_launcher_platform_interface ^1.0.4, url_launcher >=5.4.1 <5.5.2 requires plugin_platform_interface ^1.0.0.
Because no versions of amplify_flutter match >=0.1.0 <0.1.0-∞ and amplify_flutter <0.0.2-dev.2 depends on amplify_datastore_plugin_interface ^0.0.2-dev.1, amplify_flutter <0.0.2-dev.2 or >=0.1.0-0 <0.1.0 requires amplify_datastore_plugin_interface ^0.0.2-dev.1.
And because amplify_flutter ^0.0.2-dev.2 depends on amplify_datastore_plugin_interface ^0.0.2-dev.2, amplify_flutter <0.1.0 requires amplify_datastore_plugin_interface ^0.0.2-dev.1.
And because amplify_flutter >=0.1.1 depends on plugin_platform_interface ^2.0.0 and amplify_flutter >=0.1.0 <0.1.1 depends on amplify_api_plugin_interface 0.1.0, every version of amplify_flutter requires amplify_datastore_plugin_interface ^0.0.2-dev.1 or plugin_platform_interface ^2.0.0 or amplify_api_plugin_interface 0.1.0.
And because amplify_datastore_plugin_interface <0.1.1 depends on uuid ^2.2.2 and amplify_api_plugin_interface <0.1.1 depends on uuid ^2.2.2, every version of amplify_flutter requires plugin_platform_interface ^2.0.0 or uuid ^2.2.2.
And because url_launcher >=5.4.1 <5.5.2 requires plugin_platform_interface ^1.0.0 (1), if url_launcher >=5.4.1 <5.5.2 and amplify_flutter any then uuid ^2.2.2.
And because uuid >=2.0.0-rc1 <3.0.0-nullsafety.0 depends on convert ^2.0.0 and flutter_blue 0.8.0 depends on convert ^3.0.0, one of url_launcher >=5.4.1 <5.5.2 or amplify_flutter any or flutter_blue 0.8.0 must be false.
And because no versions of flutter_blue match >0.8.0 <0.9.0 and ioto_app depends on amplify_flutter <1.0.0, url_launcher >=5.4.1 <5.5.2 is incompatible with flutter_blue ^0.8.0.
So, because ioto_app depends on both flutter_blue ^0.8.0 and url_launcher 5.4.11, version solving failed.
pub get failed (1; So, because ioto_app depends on both flutter_blue ^0.8.0 and url_launcher 5.4.11, version solving failed.)
Process finished with exit code 1
뭔가 내용이 길지만.... 뭔가 버전충돌인거 같다.
null safety도 간혹 보이는거 같고....
널세이프티 문제는
2021.05.03 - [프로그래밍/Android IOS SmartTV] - [flutter] 플러터 에러 "Cannot run with sound null safety"
요글을 참고해서 해결하면 될거같고,
문제는 충돌이 어디서 나는거냐인데.... 일단 버전 충돌일지도 모르니 최신버전을 찾아보기로 했다.
그래서 pub.dev/packages/url_launcher/changelog
을 다시 찾아보니 버전업이 되어있다.
지금까지 사용했던 버전은 url_launcher: 5.4.11 이었는데, 최신버전으로 변경을 해줘야겠다.
url_launcher: 6.0.3
으로 버전없을 해주었더니 충돌나는 현상이 없어졌다.
'Language > Flutter' 카테고리의 다른 글
[flutter] Container 회전시키기 (Transform.rotate) (0) | 2021.08.12 |
---|---|
[flutter] 플러터를 구축해보자 (0) | 2021.08.09 |
[flutter] 플러터 에러 Exception: Unsupported Android Plugin version: 4.1.3 (0) | 2021.05.06 |
[flutter] 플러터 에러 "Cannot run with sound null safety" (0) | 2021.05.03 |
[flutter]플러터 에러 A dependency may only have one source. (0) | 2021.05.03 |