{"id":6347,"date":"2021-05-22T06:38:54","date_gmt":"2021-05-22T06:38:54","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=6347"},"modified":"2021-05-22T06:41:58","modified_gmt":"2021-05-22T06:41:58","slug":"flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","title":{"rendered":"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don&#8217;t support null safety"},"content":{"rendered":"\n<h2 class=\"has-text-align-center wp-block-heading\"><span class=\"has-inline-color has-vivid-red-color\">Problem<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m using <code>flutter_recaptcha_v2:&nbsp;^0.1.0.<\/code> Now, I am trying to run it using&nbsp;<code>flutter run<\/code>, however, it will not start because of the following error:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-red-color\">Error: Cannot run with sound null safety, because the following dependencies\ndon't support null safety:\n\n- package:flutter_recaptcha_v2\n- package:webview_flutter\n- package:http\n- package:http_parser\n\nFor solutions, see https:\/\/dart.dev\/go\/unsound-null-safety\nFAILURE: Build failed with an exception.\n\n* Where:\nScript 'C:\\src\\flutter\\packages\\flutter_tools\\gradle\\flutter.gradle' line: 1035\n\n* What went wrong:\nExecution failed for task ':app:compileFlutterBuildDebug'.\n&gt; Process 'command 'C:\\src\\flutter\\bin\\flutter.bat'' finished with non-zero exit value 1\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\n\n* Get more help at https:\/\/help.gradle.org\n\nBUILD FAILED in 21s\nException: Gradle task assembleDebug failed with exit code 1\nExited (sigterm)\n<\/span><\/code><\/pre>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\"><span class=\"has-inline-color has-vivid-red-color\">Solution<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you want run your project with&nbsp;<code>--no-sound-null-safety<\/code>&nbsp;so now you add this line your&nbsp;<code>main.dart<\/code>&nbsp;file in top(first line) with comment..<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>\/\/ @dart=2.9<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">then run your project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for reading.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keep Coding.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/Keep_coding.gif\" alt=\"\" class=\"wp-image-6350\" width=\"75\" height=\"75\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Problem I&#8217;m using flutter_recaptcha_v2:&nbsp;^0.1.0. Now, I am trying to run it using&nbsp;flutter run, however, it will not start because of [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5319],"tags":[5338,5340,5336,5321,5337,5341,5339,5335],"class_list":["post-6347","post","type-post","status-publish","format-standard","hentry","category-flutter","tag-cannot-run-with-sound-null-safety","tag-dart","tag-dependencies-dont-support-null-safety","tag-flutter","tag-flutter_recaptcha_v2","tag-gradle-task-assembledebug-failed","tag-no-sound-null-safety","tag-sound-null-safety"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don&#039;t support null safety - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don&#039;t support null safety - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Problem I&#8217;m using flutter_recaptcha_v2:&nbsp;^0.1.0. Now, I am trying to run it using&nbsp;flutter run, however, it will not start because of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-22T06:38:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-22T06:41:58+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/Keep_coding.gif\" \/>\n<meta name=\"author\" content=\"Sushant K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sushant K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/\"},\"author\":{\"name\":\"Sushant K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/7cb2b03b970bcfe605e1be29d2b6791c\"},\"headline\":\"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don&#8217;t support null safety\",\"datePublished\":\"2021-05-22T06:38:54+00:00\",\"dateModified\":\"2021-05-22T06:41:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/\"},\"wordCount\":75,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Keep_coding.gif\",\"keywords\":[\"Cannot run with sound null safety\",\"dart\",\"dependencies don&#039;t support null safety\",\"flutter\",\"flutter_recaptcha_v2\",\"Gradle task assembleDebug failed\",\"no-sound-null-safety\",\"sound null safety\"],\"articleSection\":[\"Flutter\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/\",\"name\":\"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don't support null safety - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Keep_coding.gif\",\"datePublished\":\"2021-05-22T06:38:54+00:00\",\"dateModified\":\"2021-05-22T06:41:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/7cb2b03b970bcfe605e1be29d2b6791c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Keep_coding.gif\",\"contentUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Keep_coding.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don&#8217;t support null safety\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/7cb2b03b970bcfe605e1be29d2b6791c\",\"name\":\"Sushant K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/092cd9bf0832fe9aa2450955f90b56545e8f7b54e08173f584c5130ad01df057?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/092cd9bf0832fe9aa2450955f90b56545e8f7b54e08173f584c5130ad01df057?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/092cd9bf0832fe9aa2450955f90b56545e8f7b54e08173f584c5130ad01df057?s=96&d=mm&r=g\",\"caption\":\"Sushant K\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/sushant\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don't support null safety - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","og_locale":"en_US","og_type":"article","og_title":"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don't support null safety - scmGalaxy","og_description":"Problem I&#8217;m using flutter_recaptcha_v2:&nbsp;^0.1.0. Now, I am trying to run it using&nbsp;flutter run, however, it will not start because of [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","og_site_name":"scmGalaxy","article_published_time":"2021-05-22T06:38:54+00:00","article_modified_time":"2021-05-22T06:41:58+00:00","og_image":[{"url":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/Keep_coding.gif","type":"","width":"","height":""}],"author":"Sushant K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sushant K","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/"},"author":{"name":"Sushant K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/7cb2b03b970bcfe605e1be29d2b6791c"},"headline":"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don&#8217;t support null safety","datePublished":"2021-05-22T06:38:54+00:00","dateModified":"2021-05-22T06:41:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/"},"wordCount":75,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage"},"thumbnailUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/Keep_coding.gif","keywords":["Cannot run with sound null safety","dart","dependencies don&#039;t support null safety","flutter","flutter_recaptcha_v2","Gradle task assembleDebug failed","no-sound-null-safety","sound null safety"],"articleSection":["Flutter"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","name":"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don't support null safety - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage"},"thumbnailUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/Keep_coding.gif","datePublished":"2021-05-22T06:38:54+00:00","dateModified":"2021-05-22T06:41:58+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/7cb2b03b970bcfe605e1be29d2b6791c"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage","url":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/Keep_coding.gif","contentUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/Keep_coding.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/flutter-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"[SOLVED] Flutter : Cannot run with sound null safety, because the following dependencies don&#8217;t support null safety"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/7cb2b03b970bcfe605e1be29d2b6791c","name":"Sushant K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/092cd9bf0832fe9aa2450955f90b56545e8f7b54e08173f584c5130ad01df057?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/092cd9bf0832fe9aa2450955f90b56545e8f7b54e08173f584c5130ad01df057?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/092cd9bf0832fe9aa2450955f90b56545e8f7b54e08173f584c5130ad01df057?s=96&d=mm&r=g","caption":"Sushant K"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/sushant\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=6347"}],"version-history":[{"count":4,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6347\/revisions"}],"predecessor-version":[{"id":6352,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6347\/revisions\/6352"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=6347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=6347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=6347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}