{"id":155,"date":"2020-11-12T18:46:09","date_gmt":"2020-11-12T18:46:09","guid":{"rendered":"https:\/\/tech.mobilitio.com\/?p=155"},"modified":"2020-11-13T19:35:13","modified_gmt":"2020-11-13T19:35:13","slug":"fix-android-build-error-failed-to-notify-project-evaluation-listener","status":"publish","type":"post","link":"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/","title":{"rendered":"FIX: [Android build error] Failed to notify project evaluation listener"},"content":{"rendered":"\r\n<h2>Context<\/h2>\r\n<p>I picked up some quite recent Android sample code, and it failed to build with the error message:<\/p>\r\n<blockquote>\r\n<pre>Failed to notify project evaluation listener. <br \/>&gt; org.gradle.api.file.ProjectLayout.directoryProperty(Lorg\/gradle\/api\/provider\/Provider;)Lorg\/gradle\/api\/file\/DirectoryProperty;<\/pre>\r\n<\/blockquote>\r\n<h2>Context<\/h2>\r\n<p>Android Studio 4.1.1 \/ Korlin 1.3.21 . The answer not wasn&#8217;t found rightaway anywhere so far&#8230; so I decided to post here for someone to find.<\/p>\r\n<h2><br \/>Solution<\/h2>\r\n<p>In the high level build.gradle, update Gradle version to the latest! In the case:<\/p>\r\n<blockquote>\r\n<pre>buildscript<br \/>{<br \/>    ...<br \/>    dependencies {<br \/>        classpath 'com.android.tools.build:gradle:<strong>4.0.1<\/strong>'<br \/>        ...<br \/>    }<br \/>}<\/pre>\r\n<\/blockquote>\r\n<p>Then, if and when the Android Studio GUI prompts for Gradle plugin update, run it then to get to 4.1.1 and beyond.<br \/>For me, it did not work just by directly changing the com.android.tools.build:gradle to 4.1.1 directly!<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Context I picked up some quite recent Android sample code, and it failed to build with the error message: Failed to notify project evaluation listener. &gt; org.gradle.api.file.ProjectLayout.directoryProperty(Lorg\/gradle\/api\/provider\/Provider;)Lorg\/gradle\/api\/file\/DirectoryProperty; Context Android Studio 4.1.1 \/ Korlin 1.3.21 . The answer not wasn&#8217;t found rightaway anywhere so far&#8230; so I decided to post here for someone to find. Solution [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[21,26],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-android","category-problem-solutions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>FIX: [Android build error] Failed to notify project evaluation listener : Technology Adventures<\/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:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FIX: [Android build error] Failed to notify project evaluation listener : Technology Adventures\" \/>\n<meta property=\"og:description\" content=\"Context I picked up some quite recent Android sample code, and it failed to build with the error message: Failed to notify project evaluation listener. &gt; org.gradle.api.file.ProjectLayout.directoryProperty(Lorg\/gradle\/api\/provider\/Provider;)Lorg\/gradle\/api\/file\/DirectoryProperty; Context Android Studio 4.1.1 \/ Korlin 1.3.21 . The answer not wasn&#8217;t found rightaway anywhere so far&#8230; so I decided to post here for someone to find. Solution [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/\" \/>\n<meta property=\"og:site_name\" content=\"Technology Adventures\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-12T18:46:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-13T19:35:13+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/11\\\/12\\\/fix-android-build-error-failed-to-notify-project-evaluation-listener\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/11\\\/12\\\/fix-android-build-error-failed-to-notify-project-evaluation-listener\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#\\\/schema\\\/person\\\/198efb8365f93be465d7525c6a74c630\"},\"headline\":\"FIX: [Android build error] Failed to notify project evaluation listener\",\"datePublished\":\"2020-11-12T18:46:09+00:00\",\"dateModified\":\"2020-11-13T19:35:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/11\\\/12\\\/fix-android-build-error-failed-to-notify-project-evaluation-listener\\\/\"},\"wordCount\":108,\"commentCount\":0,\"articleSection\":[\"Android\",\"Problem Solutions\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/11\\\/12\\\/fix-android-build-error-failed-to-notify-project-evaluation-listener\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/11\\\/12\\\/fix-android-build-error-failed-to-notify-project-evaluation-listener\\\/\",\"url\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/11\\\/12\\\/fix-android-build-error-failed-to-notify-project-evaluation-listener\\\/\",\"name\":\"FIX: [Android build error] Failed to notify project evaluation listener : Technology Adventures\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#website\"},\"datePublished\":\"2020-11-12T18:46:09+00:00\",\"dateModified\":\"2020-11-13T19:35:13+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#\\\/schema\\\/person\\\/198efb8365f93be465d7525c6a74c630\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/11\\\/12\\\/fix-android-build-error-failed-to-notify-project-evaluation-listener\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/11\\\/12\\\/fix-android-build-error-failed-to-notify-project-evaluation-listener\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/index.php\\\/2020\\\/11\\\/12\\\/fix-android-build-error-failed-to-notify-project-evaluation-listener\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/tech.mobilitio.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FIX: [Android build error] Failed to notify project evaluation listener\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#website\",\"url\":\"https:\\\/\\\/tech.mobilitio.com\\\/\",\"name\":\"Technology Adventures of a Mobile Guy\",\"description\":\"By Antti Ketola\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/tech.mobilitio.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/tech.mobilitio.com\\\/#\\\/schema\\\/person\\\/198efb8365f93be465d7525c6a74c630\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1749f15a5862d034dcc064df2ddec69a33555f5fbef919b2b3eef2be72b9fa9c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1749f15a5862d034dcc064df2ddec69a33555f5fbef919b2b3eef2be72b9fa9c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1749f15a5862d034dcc064df2ddec69a33555f5fbef919b2b3eef2be72b9fa9c?s=96&d=mm&r=g\",\"caption\":\"admin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FIX: [Android build error] Failed to notify project evaluation listener : Technology Adventures","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:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/","og_locale":"en_GB","og_type":"article","og_title":"FIX: [Android build error] Failed to notify project evaluation listener : Technology Adventures","og_description":"Context I picked up some quite recent Android sample code, and it failed to build with the error message: Failed to notify project evaluation listener. &gt; org.gradle.api.file.ProjectLayout.directoryProperty(Lorg\/gradle\/api\/provider\/Provider;)Lorg\/gradle\/api\/file\/DirectoryProperty; Context Android Studio 4.1.1 \/ Korlin 1.3.21 . The answer not wasn&#8217;t found rightaway anywhere so far&#8230; so I decided to post here for someone to find. Solution [&hellip;]","og_url":"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/","og_site_name":"Technology Adventures","article_published_time":"2020-11-12T18:46:09+00:00","article_modified_time":"2020-11-13T19:35:13+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/#article","isPartOf":{"@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/"},"author":{"name":"admin","@id":"https:\/\/tech.mobilitio.com\/#\/schema\/person\/198efb8365f93be465d7525c6a74c630"},"headline":"FIX: [Android build error] Failed to notify project evaluation listener","datePublished":"2020-11-12T18:46:09+00:00","dateModified":"2020-11-13T19:35:13+00:00","mainEntityOfPage":{"@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/"},"wordCount":108,"commentCount":0,"articleSection":["Android","Problem Solutions"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/","url":"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/","name":"FIX: [Android build error] Failed to notify project evaluation listener : Technology Adventures","isPartOf":{"@id":"https:\/\/tech.mobilitio.com\/#website"},"datePublished":"2020-11-12T18:46:09+00:00","dateModified":"2020-11-13T19:35:13+00:00","author":{"@id":"https:\/\/tech.mobilitio.com\/#\/schema\/person\/198efb8365f93be465d7525c6a74c630"},"breadcrumb":{"@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/tech.mobilitio.com\/index.php\/2020\/11\/12\/fix-android-build-error-failed-to-notify-project-evaluation-listener\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tech.mobilitio.com\/"},{"@type":"ListItem","position":2,"name":"FIX: [Android build error] Failed to notify project evaluation listener"}]},{"@type":"WebSite","@id":"https:\/\/tech.mobilitio.com\/#website","url":"https:\/\/tech.mobilitio.com\/","name":"Technology Adventures of a Mobile Guy","description":"By Antti Ketola","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tech.mobilitio.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/tech.mobilitio.com\/#\/schema\/person\/198efb8365f93be465d7525c6a74c630","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/1749f15a5862d034dcc064df2ddec69a33555f5fbef919b2b3eef2be72b9fa9c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1749f15a5862d034dcc064df2ddec69a33555f5fbef919b2b3eef2be72b9fa9c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1749f15a5862d034dcc064df2ddec69a33555f5fbef919b2b3eef2be72b9fa9c?s=96&d=mm&r=g","caption":"admin"}}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":6,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/posts\/155\/revisions\/162"}],"wp:attachment":[{"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.mobilitio.com\/index.php\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}