{"id":5546,"date":"2021-02-09T12:08:55","date_gmt":"2021-02-09T12:08:55","guid":{"rendered":"http:\/\/rockerstech.com\/documentation\/docs\/quickstart-login-registration-app\/common-errors\/finished-with-non-zero-exit-value-1\/"},"modified":"2021-02-11T07:42:28","modified_gmt":"2021-02-11T07:42:28","slug":"finished-with-non-zero-exit-value-1","status":"publish","type":"docs","link":"https:\/\/rockerstech.com\/documentation\/docs\/quickstart-login-registration-app\/common-errors\/finished-with-non-zero-exit-value-1\/","title":{"rendered":"Finished with non-zero exit value 1"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In case, you are getting this error, there could multiple reasons for this. To solve this error, we have covered all the possible solutions here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Clean &amp; Re-build project<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open the&nbsp;<strong>terminal<\/strong>&nbsp;in Android studio.<\/li><li>Enter&nbsp;<strong>flutter clean<\/strong>&nbsp;command in terminal.<\/li><li>After finish processing, hit second command&nbsp;<strong>flutter pub get<\/strong>.<\/li><li>Run your project.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><br>Removing Some local file and folder in your project<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open your project folder and&nbsp;<strong>show all hidden files and folder<\/strong>.<\/li><li>Then removing&nbsp;<strong>.dart_tool folder, .idea folder, build folder, .packages, .pubspec.lock files<\/strong>&nbsp;in project root directory.<\/li><li>Open&nbsp;<strong>android folder<\/strong>&nbsp; and removing&nbsp;<strong>.gradle folder, .idea folder, local.properties files<\/strong>.<\/li><li>At the end, restart your project and then open&nbsp;<strong>pubspec.yaml<\/strong>&nbsp;file click in to&nbsp;<strong>pub get<\/strong>&nbsp;and run.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/iqonic.design\/docs\/product\/prokit-flutter\/comman-errors\/build-error\/\"><br><\/a><strong>Removing &#8220;dart.js&#8221;<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If you are using \u2018import dart:js\u2019 in any&nbsp;<strong>.dart<\/strong>&nbsp;file, kindly remove it.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><br>Recheck your full project&#8217;s path<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Make sure that your full project path is less than 80 characters.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/iqonic.design\/docs\/product\/prokit-flutter\/comman-errors\/build-error\/\"><br><\/a><strong>Disable antivirus<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Turn off if anti virus is on, before build.<\/li><li>Anti virus disable in&nbsp;<strong>Windows<\/strong>.<\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\"><li>Select Start &gt; Settings &gt; Update &amp; Security &gt; Windows Security &gt; Virus &amp; threat protection &gt; Manage settings (or Virus &amp; threat protection settings in previous versions of Windows 10).<\/li><li>Switch Real-time protection to Off. Note that scheduled scans will continue to run.<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>Anti virus disable in&nbsp;<strong>mac<\/strong>.<\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\"><li>Access the\u00a0<strong>Mac<\/strong>\u00a0menu bar, and there you should see the\u00a0<strong>antivirus<\/strong>\u00a0icon.<\/li><li>Right-click it or just left click and a drop-down menu appears.<\/li><li>Click the ideal function such as<br><strong>Disable<\/strong>\u00a0or\u00a0<strong>Stop<\/strong>\u00a0and if it asks for any confirmation, hit \u201cYes\u201d or \u201cConfirm.\u201d.<\/li><\/ol>\n","protected":false},"featured_media":0,"parent":5525,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-5546","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/5546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/comments?post=5546"}],"version-history":[{"count":2,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/5546\/revisions"}],"predecessor-version":[{"id":5694,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/5546\/revisions\/5694"}],"up":[{"embeddable":true,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/5525"}],"next":[{"title":"Flutter SDK Not Available","link":"https:\/\/rockerstech.com\/documentation\/docs\/quickstart-login-registration-app\/common-errors\/flutter-sdk-not-available\/","href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/docs\/5547"}],"wp:attachment":[{"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/media?parent=5546"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/rockerstech.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=5546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}