PhoneGap2.9.1 开发Android应用命令

Android
The Android command-line tools are built upon shell scripts. You must have the Android SDK’s tools and platform-tools folders in your PATH!
Create a project
Run the create command with the following parameters:
Path to your new Cordova Android project
Package name, following reverse-domain style convention
Main Activity name
$ /path/to/cordova-android/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
or, on Windows
$ C:\path\to\cordova-android\bin\create.bat C:\path\to\my_new_cordova_project com.example.cordova_project_name CordovaProjectName
Building your project (cleans then builds)
Debug
$ /path/to/my_new_cordova_project/cordova/build –debug
or, on Windows
$ C:\path\to\my_new_cordova_project\cordova\build.bat –debug
Release
$ /path/to/my_new_cordova_project/cordova/build –release
or, on Windows

===========================================================
Set up New Project
In a terminal window, navigate to the Cordova distribution android/bin directory.
Type ./create , then press Enter
then use eclipse to load existing projects.
e.g.
D:\phonegap-2.9.1-android\bin\create.bat D:\EclipseWorkspace\phonegap\first_android pro.jingjing.android.first FirstAndroid

Create a project
C:\path\to\cordova-android\bin\create.bat C:\path\to\my_new_cordova_project com.example.cordova_project_name CordovaProjectName

Build the Project
C:\path\to\my_new_cordova_project\cordova\build.bat –debug
C:\path\to\my_new_cordova_project\cordova\build.bat –release

Running your application

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\OpenVPN\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\MySQL\MySQL Server 5.1\bin;D:\Program Files\TortoiseSVN\bin;D:\Program Files (x86)\Java\jdk1.7.0_51\bin;D:\Program Files (x86)\Rational\common;D:\Program Files (x86)\VisualSVN\bin;D:\Program Files (x86)\adt-bundle-windows-x86-20140321\sdk\platform-tools;D:\Program Files (x86)\adt-bundle-windows-x86-20140321\sdk\tools;%ANT_HOME%\bin

WordPress数据库查询SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC 时发生Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'jingjing.wp_posts.post_date' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by错误,这是由require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/green-hope/single.php'), get_sidebar, locate_template, load_template, require_once('/themes/green-hope/sidebar.php'), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, WP_Widget_Archives->widget, wp_get_archives查询的。 «

评论当前被关闭。

Copyright © All Rights Reserved · 菁菁博客 Since 2012 · Proudly powered by WordPress