{"id":492,"date":"2021-05-17T12:26:31","date_gmt":"2021-05-17T12:26:31","guid":{"rendered":"https:\/\/professnow.com\/blog\/?p=492"},"modified":"2021-05-17T12:34:20","modified_gmt":"2021-05-17T12:34:20","slug":"solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety","status":"publish","type":"post","link":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","title":{"rendered":"[Solved] Error: 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>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>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><code>\/\/ @dart=2.9<\/code><\/p>\n\n\n\n<p>then run your project.<\/p>\n\n\n\n<p>Thanks for reading.<\/p>\n\n\n\n<p>Keep Coding.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif\" alt=\"\" class=\"wp-image-26\" \/><\/figure>\n\n\n\n<p><\/p>\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 the following error: Solution If you want run your project with&nbsp;&#8211;no-sound-null-safety&nbsp;so now you add this line your&nbsp;main.dart&nbsp;file in top(first line) with comment.. \/\/ @dart=2.9 then run your project. Thanks for reading. Keep Coding.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,38,11],"tags":[592,593,591],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-android","category-android-studio","category-flutter","tag-cannot-run-with-sound-null-safety","tag-dont-support-null-safety","tag-sound-null-safety"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] Error: Cannot run with sound null safety, because the following dependencies don&#039;t support null safety - ProfessNow<\/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:\/\/professnow.com\/blog\/solved-error-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] Error: Cannot run with sound null safety, because the following dependencies don&#039;t support null safety - ProfessNow\" \/>\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 the following error: Solution If you want run your project with&nbsp;--no-sound-null-safety&nbsp;so now you add this line your&nbsp;main.dart&nbsp;file in top(first line) with comment.. \/\/ @dart=2.9 then run your project. Thanks for reading. Keep Coding.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/\" \/>\n<meta property=\"og:site_name\" content=\"ProfessNow\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-17T12:26:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-17T12:34:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"Sushant Kumar\" \/>\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 Kumar\" \/>\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:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/\"},\"author\":{\"name\":\"Sushant Kumar\",\"@id\":\"https:\/\/professnow.com\/blog\/#\/schema\/person\/0129748fa0821f3e6efc636c6777b9d3\"},\"headline\":\"[Solved] Error: Cannot run with sound null safety, because the following dependencies don&#8217;t support null safety\",\"datePublished\":\"2021-05-17T12:26:31+00:00\",\"dateModified\":\"2021-05-17T12:34:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/\"},\"wordCount\":75,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif\",\"keywords\":[\"Cannot run with sound null safety\",\"don&#039;t support null safety\",\"sound null safety\"],\"articleSection\":[\"Android\",\"Android Studio\",\"Flutter\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/\",\"url\":\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/\",\"name\":\"[Solved] Error: Cannot run with sound null safety, because the following dependencies don't support null safety - ProfessNow\",\"isPartOf\":{\"@id\":\"https:\/\/professnow.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif\",\"datePublished\":\"2021-05-17T12:26:31+00:00\",\"dateModified\":\"2021-05-17T12:34:20+00:00\",\"author\":{\"@id\":\"https:\/\/professnow.com\/blog\/#\/schema\/person\/0129748fa0821f3e6efc636c6777b9d3\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage\",\"url\":\"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif\",\"contentUrl\":\"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif\",\"width\":300,\"height\":300},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/professnow.com\/blog\/#website\",\"url\":\"https:\/\/professnow.com\/blog\/\",\"name\":\"ProfessNow\",\"description\":\"Find Verified Professionals Near You\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/professnow.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/professnow.com\/blog\/#\/schema\/person\/0129748fa0821f3e6efc636c6777b9d3\",\"name\":\"Sushant Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/professnow.com\/blog\/#\/schema\/person\/image\/\",\"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 Kumar\"},\"url\":\"https:\/\/professnow.com\/blog\/author\/raja\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Error: Cannot run with sound null safety, because the following dependencies don't support null safety - ProfessNow","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:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Error: Cannot run with sound null safety, because the following dependencies don't support null safety - ProfessNow","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 the following error: Solution If you want run your project with&nbsp;--no-sound-null-safety&nbsp;so now you add this line your&nbsp;main.dart&nbsp;file in top(first line) with comment.. \/\/ @dart=2.9 then run your project. Thanks for reading. Keep Coding.","og_url":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","og_site_name":"ProfessNow","article_published_time":"2021-05-17T12:26:31+00:00","article_modified_time":"2021-05-17T12:34:20+00:00","og_image":[{"width":300,"height":300,"url":"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif","type":"image\/gif"}],"author":"Sushant Kumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sushant Kumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#article","isPartOf":{"@id":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/"},"author":{"name":"Sushant Kumar","@id":"https:\/\/professnow.com\/blog\/#\/schema\/person\/0129748fa0821f3e6efc636c6777b9d3"},"headline":"[Solved] Error: Cannot run with sound null safety, because the following dependencies don&#8217;t support null safety","datePublished":"2021-05-17T12:26:31+00:00","dateModified":"2021-05-17T12:34:20+00:00","mainEntityOfPage":{"@id":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/"},"wordCount":75,"commentCount":0,"image":{"@id":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage"},"thumbnailUrl":"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif","keywords":["Cannot run with sound null safety","don&#039;t support null safety","sound null safety"],"articleSection":["Android","Android Studio","Flutter"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","url":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/","name":"[Solved] Error: Cannot run with sound null safety, because the following dependencies don't support null safety - ProfessNow","isPartOf":{"@id":"https:\/\/professnow.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage"},"image":{"@id":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage"},"thumbnailUrl":"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif","datePublished":"2021-05-17T12:26:31+00:00","dateModified":"2021-05-17T12:34:20+00:00","author":{"@id":"https:\/\/professnow.com\/blog\/#\/schema\/person\/0129748fa0821f3e6efc636c6777b9d3"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/professnow.com\/blog\/solved-error-cannot-run-with-sound-null-safety-because-the-following-dependencies-dont-support-null-safety\/#primaryimage","url":"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif","contentUrl":"https:\/\/professnow.com\/blog\/wp-content\/uploads\/2021\/01\/Keep_coding.gif","width":300,"height":300},{"@type":"WebSite","@id":"https:\/\/professnow.com\/blog\/#website","url":"https:\/\/professnow.com\/blog\/","name":"ProfessNow","description":"Find Verified Professionals Near You","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/professnow.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/professnow.com\/blog\/#\/schema\/person\/0129748fa0821f3e6efc636c6777b9d3","name":"Sushant Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/professnow.com\/blog\/#\/schema\/person\/image\/","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 Kumar"},"url":"https:\/\/professnow.com\/blog\/author\/raja\/"}]}},"_links":{"self":[{"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":3,"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"predecessor-version":[{"id":496,"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/posts\/492\/revisions\/496"}],"wp:attachment":[{"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/professnow.com\/blog\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}