{"id":7034,"date":"2014-05-17T00:23:36","date_gmt":"2014-05-17T00:23:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/17\/phonegap-android-sample-project-not-building-collection-of-common-programming-errors\/"},"modified":"2014-05-17T00:23:36","modified_gmt":"2014-05-17T00:23:36","slug":"phonegap-android-sample-project-not-building-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/17\/phonegap-android-sample-project-not-building-collection-of-common-programming-errors\/","title":{"rendered":"phonegap android sample project not building-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to follow the setup instructions on phonegap-android&#8217;s wiki page, but I&#8217;m having trouble. I&#8217;ve got all of the prereqs\/path variables\/etc set-up, but when I execute the command (in gitbash as per the instructions) for building the project, I get errors which I do not understand.<\/p>\n<p>Here is the script which I run:<\/p>\n<pre><code>$ ruby .\/droidgap \"C:\/android-sdk-windows\" pgtest com.example.android.pgtest \"C\n:\/xfer\/input\" \"C:\/xfer\/output\"\n<\/code><\/pre>\n<p>and here is the result I get:<\/p>\n<p>Building the JAR&#8230; &#8216;\/*&#8217; is not recognized as an internal or external command, operable program or batch file. &#8216;Licensed&#8217; is not recognized as an internal or external command, operable program or batch file. &#8216;contributor&#8217; is not recognized as an internal or external command, operable program or batch file. &#8216;this&#8217; is not recognized as an internal or external command, operable program or batch file. &#8216;The&#8217; is not recognized as an internal or external command, operable program or batch file. you was unexpected at this time. Creating Android project for target level 8 Adding www folder to project&#8230; Generating manifest&#8230; Copying over libraries and assets and creating phonegap.js&#8230;<\/p>\n<p>c:\/Ruby192\/lib\/ruby\/1.9.1\/fileutils.rb:1418:in <code>stat': No such file or directory - c:\/Users\/\/Desktop\/phonegap\/framework\/phonegap.jar (Errno::ENO ENT)<\/code><\/p>\n<p><code>from c:\/Ruby192\/lib\/ruby\/1.9.1\/fileutils.rb:1418:in<\/code><\/p>\n<p>block in fu_each_src_dest&#8217;<\/p>\n<p>from c:\/Ruby192\/lib\/ruby\/1.9.1\/fileutils.rb:1432:in <code>fu_each_src_dest0'<br \/>\nfrom c:\/Ruby192\/lib\/ruby\/1.9.1\/fileutils.rb:1416:in<\/code>fu_each_src_dest&#8217;<\/p>\n<p>\nfrom c:\/Ruby192\/lib\/ruby\/1.9.1\/fileutils.rb:391:in <code>cp'<br \/>\nfrom .\/droidgap:82:in<\/code>copy_libs&#8217;<br \/>\nfrom .\/droidgap:20:in <code>run'<br \/>\nfrom .\/droidgap:157:in<\/code>&#8216;<\/p>\n<p>I&#8217;ve looked through the phonegap forums, and I&#8217;ve found some hits on part of the error (the part where phonegap.jar could not be found), but nothing on the first part (&#8220;_ is not recognized&#8221;, etc.). What am I doing wrong? Thanks.<\/p>\n<p>Additional info: -Windows 7 (32 bit) -ruby 1.9.1 -java jdk1.6.0_21<\/p>\n<p>-ant 1.8.1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to follow the setup instructions on phonegap-android&#8217;s wiki page, but I&#8217;m having trouble. I&#8217;ve got all of the prereqs\/path variables\/etc set-up, but when I execute the command (in gitbash as per the instructions) for building the project, I get errors which I do not understand. Here is the script which I run: $ [&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-7034","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7034","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=7034"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7034\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}