내가 작업하고 있던 응용 프로그램은 찾기 작업에 사용되었고, 펍 업그레이드를 수행하고 고장 났으므로 되 돌리는 중이었습니다. 캐시를 지우고 응용 프로그램을 되 돌린 다음 펍을 가져 왔습니다.
이 오류가 표시되어 해결되지 않은 것으로 나타났습니다.
[Error from ScriptCompactor on seg_ui|web/index.html]:
line 7, column 3 of web\index.html: Failed to inline HTML import: Could not find asset polymer_elements|lib/iron_flex_layout/classes/iron_flex_layout.html.
null
<link rel="import" href="packages/polymer_elements/iron_flex_layout/classes/iron_flex_layout.html">
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Build completed with 1 errors.
[web] GET index.html => Could not find asset seg_ui|web/index.html.
나는 그것이 참조하는 파일, index.html을보고 있었고 예상대로 줄을 보았습니다. 주석 처리를 시도했지만 작동하지 않았습니다. 나는 무슨 일이 일어날 지보기 위해 그것을 제거했으며 다른 폴리머 자산이 발견되지 않는다는 경고를 많이받는 것 같습니다.
예 :
[web] GET packages/polymer_elements/iron_resizable_behavior.dart => Could not find asset polymer_elements|lib/iron_resizable_behavior.dart.
과
[Warning from ImportInliner on seg_ui|web/index.html]:
line 10, column 1 of lib\components\dialog\dialog.html: Failed to inline HTML import: Could not find asset polymer_elements|lib/neon_animation/animations/slide_from_right_animation.html.
null
<link rel="import" href="../../../../packages/polymer_elements/neon_animation/animations/slide_from_right_animation.html">
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
누군가가 이것이 발생하는 이유와 해결 단계를 설명 할 수 있습니까? 어떤 이유로 내 모든 자산이 올바르게 이해되지 않는 것 같습니다.
참고로 : 내가 pubspec으로 이동하면 모든 것이 최신 상태로 유지됩니다. 복구를 시도하면 몇 개의 파일을 제외하고 복구되는 것처럼 보입니다.HandshakeException: Connection terminated during Handshake.
pub upgrade
앱 이 중단 될 때 종종 .pub
프로젝트 의 하위 디렉터리 에있는 잘못된 캐시로 인해 발생 합니다.
이 폴더를 삭제해도 안전합니다. 나중에 실행 pub get
하거나 pub upgrade
다시 실행 하십시오.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다