phoneGap 支持安卓7.0的手机吗

PhoneGap 3.7.0 现已提供在 PhoneGap Build_Linux新闻_Linux公社-Linux系统门户网站
你好,游客
PhoneGap 3.7.0 现已提供在 PhoneGap Build
来源:oschina.net&
作者:Linux
PhoneGap 3.7.0 现已提供在 PhoneGap Build,详细更新内容请看:
注意,当你在 PhoneGap Build 上构建 Andorid 3.7.0 时,实际是获取 3.7.1。
更新 config.xml
&preference&name="phonegap-version"&value="3.7.0"&/&
PhoneGap 是一款HTML5平台,通过它,开发商可以使用HTML、CSS及JavaScript来开发本地移动应用程序。因此,目前开发商可以只 编写一次应用程序,然后在7个主要的移动平台和应用程序商店(app store)里进行发布,这些移动平台和应用程序商店包括:iOS、、BlackBerry、webOS、bada、Winodws Phone以及Symbian。
它使开发者能够利用iPhone,Android,Palm,Symbian,WP,Bada和Blackberry智能手机的核心功能&&包括地理定位,加速器,联系人,声音和振动等,此外PhoneGap拥有丰富的插件,可以以此扩展无限的功能。
PhoneGap 的详细介绍:PhoneGap 的下载地址:
本文永久更新链接地址:
相关资讯 & & &
& (08/23/:28)
& (11/14/:55)
& (06/14/:18)
& (08/23/:24)
& (06/14/:38)
& (03/05/:30)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款主题 : phonegap 工程新建完成后运行提示Error,找不到cordova-1.7.0.js
级别: 新手上路
可可豆: 127 CB
威望: 127 点
在线时间: 110(时)
发自: Web Page
phonegap 工程新建完成后运行提示Error,找不到cordova-1.7.0.js&&&
phonegap 工程新建完成后提示Error: executing module function 'setInfo' in module 'cordova/plugin/ios/device'. Have you included the iOS version of the cordova-1.7.0.js file?这个是说 cordova-1.7.0.js没有加进来还是什么意思,我吧这个js导入进来了,但是还是有错误,是我的js导入不对还是?希望高手帮忙看看什么问题;项目目录截图如下为了大家更清楚的理解我的描述,我将我的项目工程上传上来,[ 此帖被benniao在 14:46重新编辑 ]
图片:AB63-4C1E-BBBD-AEC67C81E161.png
(1339 K) 下载次数:39
级别: 新手上路
可可豆: 11 CB
威望: 11 点
在线时间: 1(时)
发自: Web Page
目录不对,js应在www目录下
级别: 新手上路
可可豆: 127 CB
威望: 127 点
在线时间: 110(时)
发自: Web Page
回 1楼(top5) 的帖子
你好,我试了试将js的目录拖放到www目录下,(包括物理路径也拖放到了www目录下);项目会报同样的错误,请问你那边是将js拖动到www目录下吗,我的新目录如下
图片:B0-4F23-B4A9-852BB5C09805.png
级别: 新手上路
可可豆: 127 CB
威望: 127 点
在线时间: 110(时)
发自: Web Page
回 楼主(benniao) 的帖子
问题已经解决:早上听同事说phonegap已经改名cordova,会不会是phonegap.js也改名了果断试了下,将网页中的phonegap.js改成目录中的cordova.ios.js,然后就ok了,异常问题解决官方网站的api中的完整例子、还有ios 端phonegap1.7.0项目模板自动生成的项目index.html中引用的是phonegap.需要改为最新的cordova.ios.js
级别: 新手上路
可可豆: 2 CB
威望: 2 点
在线时间: 2(时)
发自: Web Page
cordova&&是 phonegap 在apache的子项目呢!!&&www目录下任意目录,只要你在index.html中引用它即可。&&不喜欢www目录名称的,可以修改:&&&&self.viewController.wwwFolderName = @&www&;&&&&self.viewController.startPage = @&index.html&;
对事物要保持新鲜感
级别: 新手上路
可可豆: 2 CB
威望: 2 点
在线时间: 58(时)
发自: Web Page
回 3楼(benniao) 的帖子
你好 我也出现这个问题了,你说的phonegap.js 是什么东西,我怎么找不到。能不能留个联系方式,想咨询下
关注本帖(如果有新回复会站内信通知您)
苹果公司现任CEO是谁?2字 正确答案:库克
发帖、回帖都会得到可观的积分奖励。
按"Ctrl+Enter"直接提交
关注CocoaChina
关注微信 每日推荐
扫一扫 浏览移动版Android + Eclipse + PhoneGap 2.9.0 安卓最新环境配置,部分资料整合网上资料,已成功安装. - k.lina - 推酷
Android + Eclipse + PhoneGap 2.9.0 安卓最新环境配置,部分资料整合网上资料,已成功安装. - k.lina
前言:最近心血来潮做了一个以品牌为中心的网站,打算推出本地服务o2o应用。快速开发手机应用,最后选择了phonegap,这里我只是讲述我安装的过程,仅供大家参考。
我开发的一个模型
可以看下。看看有多差。
如果有什么问题也可以到小组留言,可以的话,贡献一个ip:)
phonegap小组
如果有什么问题也可以加入我们的QQ群:
ok 不多说了,下面是我的安装过程
环境搭建首先要去下载一些安装包:
(下载前注意一下,电脑是32位还是64位的请注意选择安装包)
java环境的JDK:
我安装的是64位,下载自己系统环境需要的版本,下载后默认安装,完成后 在 开始 - 输入cmd- 输入java 显示出java版本信息表示安装已经成功
一、下载安装ADT。
二、Android的压缩包为:adt-bundle-windows-x86_64。
& 解压后,进入eclipse目录,运行eclipse.exe。
1)先更新Android包:选择 Window --------&Android SDK Manager
全部勾选后,点击 Install packages,将所有包全部打上。
2)配置AVD环境
配置该环境有两种方法:
1、使用界面进行配置,进入方式如图所示:
打开之后,如图所示,点击New新建。
三、配置PhoneGap(这个比较麻烦)
1)先新建一个新的工程。
具体详细可以查看:
打开ADT,新建一个安卓应用项目
输入名称,然后下一步
可以选择下项目位置,我的是默认的。
这里可以选择图标。
选择第一个
这个时候,一个安卓项目就建好了。
phonegap下载地址:
将PhoneGap目录下的android目录下的jar文件拷贝到项目的libs目录下
将xml目录拷贝到项目的res目录下
在assetc目录下,建立一个www目录,下面放html内容。为了偷懒,我把phonegap例子里面的内容拷贝过来了。
修改Java代码:
package com.myexample.
import android.os.B
import org.apache.cordova.*;
public class MainActivity extends DroidGap
public void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
// Set by &content src=&index.html& /& in config.xml
super.loadUrl(Config.getStartUrl());
//super.loadUrl(&file:///android_asset/www/index.html&)
* 下面是adt生成的代码,注释掉
import android.os.B
import android.app.A
import android.view.M
public class MainActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
public boolean onCreateOptionsMenu(Menu menu) {
// I this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
&修改一下项目根目录下的AndroidManifest.xml和res/xml目录下的config.xml文件
AndroidManifest.xml
&?xml version=&1.0& encoding=&utf-8&?&
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.
The ASF licenses this file
to you under the Apache License, Version 2.0 (the
&License&); you may not use this file except in compliance
with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
&AS IS& BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.
See the License for the
specific language governing permissions and limitations
under the License.
&manifest xmlns:android=&/apk/res/android&
package=&com.myexample.helloworld&
android:hardwareAccelerated=&true&
android:versionCode=&1&
android:versionName=&1.0&
android:windowSoftInputMode=&adjustPan& &
&supports-screens
android:anyDensity=&true&
android:largeScreens=&true&
android:normalScreens=&true&
android:resizeable=&true&
android:smallScreens=&true&
android:xlargeScreens=&true& /&
&uses-permission android:name=&android.permission.CAMERA& /&
&uses-permission android:name=&android.permission.VIBRATE& /&
&uses-permission android:name=&android.permission.ACCESS_COARSE_LOCATION& /&
&uses-permission android:name=&android.permission.ACCESS_FINE_LOCATION& /&
&uses-permission android:name=&android.permission.ACCESS_LOCATION_EXTRA_COMMANDS& /&
&uses-permission android:name=&android.permission.INTERNET& /&
&uses-permission android:name=&android.permission.RECEIVE_SMS& /&
&uses-permission android:name=&android.permission.RECORD_AUDIO& /&
&uses-permission android:name=&android.permission.RECORD_VIDEO& /&
&uses-permission android:name=&android.permission.MODIFY_AUDIO_SETTINGS& /&
&uses-permission android:name=&android.permission.READ_CONTACTS& /&
&uses-permission android:name=&android.permission.WRITE_CONTACTS& /&
&uses-permission android:name=&android.permission.WRITE_EXTERNAL_STORAGE& /&
&uses-permission android:name=&android.permission.ACCESS_NETWORK_STATE& /&
&uses-permission android:name=&android.permission.GET_ACCOUNTS& /&
&uses-permission android:name=&android.permission.BROADCAST_STICKY& /&
&application
android:debuggable=&true&
android:hardwareAccelerated=&true&
android:icon=&@drawable/ic_launcher&
android:label=&@string/app_name& &
android:name=&com.myexample.helloworld.MainActivity&
android:configChanges=&orientation|keyboardHidden|keyboard|screenSize|locale&
android:label=&@string/app_name&
android:theme=&@android:style/Theme.Black.NoTitleBar& &
&intent-filter&
&action android:name=&android.intent.action.MAIN& /&
&category android:name=&android.intent.category.LAUNCHER& /&
&/intent-filter&
&/activity&
&/application&
android:minSdkVersion=&7&
android:targetSdkVersion=&17& /&
&/manifest&
&config.xml
&?xml version=&1.0& encoding=&UTF-8&?&
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.
The ASF licenses this file
to you under the Apache License, Version 2.0 (the
&License&); you may not use this file except in compliance
with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
&AS IS& BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.
See the License for the
specific language governing permissions and limitations
under the License.
id=&com.myexample.helloworld&
version=&2.0.0&
xmlns=&http://www.w3.org/ns/widgets& &
helloworld
&description&
A sample Apache Cordova application that responds to the deviceready event.
&/description&
email=&dev@cordova.apache.org&
href=&http://cordova.io& &
Apache Cordova Team
&access origin=&*& /&
&!-- &content src=&/myapp.html& /& for external pages --&
&content src=&index.html& /&
&preference
name=&loglevel&
value=&DEBUG& /&
&preference name=&splashscreen& value=&resourceName& /&
&preference name=&backgroundColor& value=&0xFFF& /&
&preference name=&loadUrlTimeoutValue& value=&20000& /&
&preference name=&InAppBrowserStorageEnabled& value=&true& /&
&preference name=&disallowOverscroll& value=&true& /&
&feature name=&App& &
name=&android-package&
value=&org.apache.cordova.App& /&
&/feature&
&feature name=&Geolocation& &
name=&android-package&
value=&org.apache.cordova.GeoBroker& /&
&/feature&
&feature name=&Device& &
name=&android-package&
value=&org.apache.cordova.Device& /&
&/feature&
&feature name=&Accelerometer& &
name=&android-package&
value=&org.apache.cordova.AccelListener& /&
&/feature&
&feature name=&Compass& &
name=&android-package&
value=&org.passListener& /&
&/feature&
&feature name=&Media& &
name=&android-package&
value=&org.apache.cordova.AudioHandler& /&
&/feature&
&feature name=&Camera& &
name=&android-package&
value=&org.apache.cordova.CameraLauncher& /&
&/feature&
&feature name=&Contacts& &
name=&android-package&
value=&org.apache.cordova.ContactManager& /&
&/feature&
&feature name=&File& &
name=&android-package&
value=&org.apache.cordova.FileUtils& /&
&/feature&
&feature name=&NetworkStatus& &
name=&android-package&
value=&org.apache.cordova.NetworkManager& /&
&/feature&
&feature name=&Notification& &
name=&android-package&
value=&org.apache.cordova.Notification& /&
&/feature&
&feature name=&Storage& &
name=&android-package&
value=&org.apache.cordova.Storage& /&
&/feature&
&feature name=&FileTransfer& &
name=&android-package&
value=&org.apache.cordova.FileTransfer& /&
&/feature&
&feature name=&Capture& &
name=&android-package&
value=&org.apache.cordova.Capture& /&
&/feature&
&feature name=&Battery& &
name=&android-package&
value=&org.apache.cordova.BatteryListener& /&
&/feature&
&feature name=&SplashScreen& &
name=&android-package&
value=&org.apache.cordova.SplashScreen& /&
&/feature&
&feature name=&Echo& &
name=&android-package&
value=&org.apache.cordova.Echo& /&
&/feature&
&feature name=&Globalization& &
name=&android-package&
value=&org.apache.cordova.Globalization& /&
&/feature&
&feature name=&InAppBrowser& &
name=&android-package&
value=&org.apache.cordova.InAppBrowser& /&
&/feature&
&!-- Deprecated plugins element. Remove in 3.0 --&
&/plugins&
然后,就可以运行了
PhoneGap的官方方法不是这样的,是用命令行生成默认包的。但是要装好几个东西。具体可以看PhoneGap包里面的readme文档。
已发表评论数()
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
主题不准确
没有分页内容
图片无法显示
视频无法显示
与原文不一致}

我要回帖

更多关于 appium 支持安卓7.0吗 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信