Command configuration of phonegap3.0 local android Environment

Source: Internet
Author: User

I will continue to write this article because the phonegap official website does not provide detailed instructions. Due to academic pressure, I can only build the blackberry and android platforms. The android platform is built on jdk first, and adt is what Google has done for you, you don't need eclipse and then get the android sdk.) After downloading the sdk, I cannot connect the program to the simulator because the sdk is not updated. let's start with everything. Next we will talk about other commands phonegap build. You can understand it as a build, but this is cloud compilation, that is, you will upload it to build.phonegap.com, and you need an account, therefore, phonegap run and phonegap install are not demonstrated. Note that the above command or the following command is executed in the directory you created, that is, the hello directory is just created, cd. /hello.

Command for local packaging

phonegap local build  android


Is there an error?

Right. The following environment variables are required. The first is jdk. You can modify not only the path, but also the classpath and JAVA_HOME.

Variable name: java_home
Variable value:.; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar
Set the variable name to classpath.
Enter C: \ Java \ jdk1.7.0 _ 25 as the variable value ;.
Enter path in variable name
Set the variable value to C: \ Java \ jdk1.7.0 _ 25 \ bin ;.

I didn't expect ant. bat to be needed. I just need to download the latest compressed package http://ant.apache.org/on the ant official website, and then add the corresponding bincontents IN THE pathfile.

Then add the platform-tool directory and tool directory under the adk directory under jat to the path. Give me the path.

C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\nodejs\;C:\Java\jdk1.7.0_25\bin;D:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.11;D:\adt\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\sdk\platform-tools;D:\adt\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\sdk\tools;D:\apache-ant-1.9.2\bin;C:\bbndk;C:\bbndk\host_10_2_0_15\win32\x86\usr\bin;


650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/094359D02-0.jpg "title =" run "style =" float: none; "alt =" 153455588.jpg"/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/094359C34-1.jpg "title =" $6 ~ ('C ~ GF(@X1EBGI0UP7S0.jpg "alt =" 153611828.jpg"/>



I can see that there are multiple android directories in the directory. The files in the directory can be explored slowly.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/0943591Y5-2.jpg "style =" float: none; "title =" build "alt =" 153452810.jpg"/>



This article is from the "shidoudou" blog, please be sure to keep this source http://shidoudou.blog.51cto.com/4497390/1297780

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.