{"id":2865,"date":"2014-03-01T11:34:55","date_gmt":"2014-03-01T11:34:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/01\/failed-to-create-task-or-type-checkenv-cause-the-name-is-undefined-collection-of-common-programming-errors\/"},"modified":"2014-03-01T11:34:55","modified_gmt":"2014-03-01T11:34:55","slug":"failed-to-create-task-or-type-checkenv-cause-the-name-is-undefined-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/01\/failed-to-create-task-or-type-checkenv-cause-the-name-is-undefined-collection-of-common-programming-errors\/","title":{"rendered":"failed to create task or type checkenv Cause The name is undefined-Collection of common programming errors"},"content":{"rendered":"<p>is required for the Android build, it&#8217;s in a library in the Android SDK directory. I had the same problem and discovered the cause was a bad directory in the <code>local.properties<\/code> file required by <code>build.xml<\/code> and <code>buildAndroid.xml<\/code>. Here&#8217;s a sample of my <code>local.properties<\/code> file:<\/p>\n<pre><code># This file is automatically generated by Android Tools.\n# Do not modify this file -- YOUR CHANGES WILL BE ERASED!\n#\n# This file must *NOT* be checked into Version Control Systems,\n# as it contains information specific to your local configuration.\n\n# location of the SDK. This is only used by Ant\n# For customization when using a Version Control System, please read the\n# header note.\nsdk.dir=\/Users\/myusername\/android-sdk-macosx\n<\/code><\/pre>\n<p>This gets generated automatically when I&#8217;m in Eclipse, but when Eclipse is closed and I&#8217;m working with ant at the command line, it was not updated and had some other user&#8217;s information that had been committed to SVN and I checked out with an svn update.<\/p>\n<p>I updated it to point to my own Android SDK directory and everything started working.<\/p>\n<p>Hope that helps!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>is required for the Android build, it&#8217;s in a library in the Android SDK directory. I had the same problem and discovered the cause was a bad directory in the local.properties file required by build.xml and buildAndroid.xml. Here&#8217;s a sample of my local.properties file: # This file is automatically generated by Android Tools. # Do [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2865","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2865"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2865\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}