请选择 进入手机版 | 继续访问电脑版

跨平台开发论坛

 找回密码
 立即注册

QQ登录

互通

查看: 7354|回复: 7

在win7 64位环境下搭载PhoneGap3.5 [复制链接]

Rank: 1

签到
2
发表于 2014-9-18 15:32:31 |显示全部楼层
    看了置顶的教程是11年写的,照其配置起来也是遇到了一堆问题,网上的解决方案也比较少,所以参考了官网的文档之后,写了这份配置流程,欢迎拍砖。自己机器的环境是win7 64位笔记本。    官网上提供的PhoneGap的最新版本为2.9.1,刚开始下载了之后载入test和framework2个工程,编译没问题,运行时却提示class not find,搞了很久没解决,不清楚原因。然后就查看文档,还是按照文档来比较好。
     一、下载安装Node.js ,地址www.nodejs.org
     二、下载安装ant,地址http://ant.apache.org/ ,本人配置的时候下载ant的最新版本apache-ant-1.9.4-bin.zip。然后配置其环境变量,把下载的目录加入到系统path中去,完了之后打开cmd,运行ant -version,检查是否成功。
   三、android环境变量
       下载sdk,eclipse,adt这些不多说了,就按照配置android开发环境配置一遍,有的省略。
       最后记得需要把sdk的tools和platform tools2个加入到系统环境变量path中去。还有一个要建立一个模拟器。
   四、下载cordova
       打开C:\Users\XXX\AppData\Roaming文件夹,在其中新建npm文件夹,这个不知道在建立node.js的时候没有自动生成。
       点击开始菜单,找到刚装的node.js,使用Node.js command prompt这个工具,不要使用node.js快捷,不清楚为何,输入

npm -g install cordova 回车,等待,试你网络情况而定,网上还有一些npm使用代理或者国内镜像的文章,请自行查阅,本人很快就下载完了,所以没看这些。

   五、创建cordova的android应用

       在命令行中继续输入cordova create hello com.example.hello HelloWorld 回车等待,这是创建一个helloworld工程,完成后会有提醒。其会在你C盘用户下建立一个hello的文件夹

       cd hello ,进入到此文件夹中。

       cordova platform add android 建立android平台项目。等待,成功后最后有提示。

   六、用IDE载入

       用eclipse载入刚才hello文件夹下的android下的工程,有2个,一个Helloworld,一个是HelloWorld-CordovaLib,直接run就能看到cordova的欢迎界面了。


   

使用道具 举报

Rank: 1

发表于 2014-12-3 10:36:04 |显示全部楼层
本帖最后由 尘岳 于 2014-12-3 10:49 编辑

感谢楼主HelloWorld项目无法导入org.apache.cordova.*是什么原因?

没有P币?共享开发案例或转载开发文章就能够得到P币!

使用道具 举报

Rank: 1

发表于 2014-12-5 11:01:08 |显示全部楼层
尘岳 发表于 2014-12-3 10:36
感谢楼主HelloWorld项目无法导入org.apache.cordova.*是什么原因?

解决了,不能复制到工作空间里面,直接在当前路径导入就行了

使用道具 举报

Rank: 1

发表于 2015-1-17 17:06:37 |显示全部楼层
新手,看看学习。。

没有P币?共享开发案例或转载开发文章就能够得到P币!

使用道具 举报

Rank: 1

发表于 2015-11-11 14:33:47 |显示全部楼层
楼主请问下  我在将 工程 hello world 导入eclipse 后,自动生成的源码中出现
import android.webkit.ClientCertRequest;  这个包找不到,是什么问题能
附件: 你需要登录才可以下载或查看附件。没有帐号?立即注册

没有P币?共享开发案例或转载开发文章就能够得到P币!

使用道具 举报

Rank: 2

发表于 2016-9-18 10:55:10 |显示全部楼层

Buffalo Bills jerseys 17365

NEW YORK (AP) — The NFL has hired Beth E,wholesale nfl jerseys. Richie as a senior adviser on domestic conduct,authentic nfl jerseys.
Richie is the director of the Institute of Research on Race and Public Policy and a professor of African-American studies, criminology,New Balance Australia, sociology,wholesale jerseys, gender and women's studies,Best Price New Balance Trainers, and criminal law and justice at Illinois-Chicago. She is considered a leading expert on issues of sexual assault.
Richie joins five previously hired advisers. According to a memo sent by Commissioner Roger Goodell to all team chief executives and presidents,nfl jerseys, the advisers meet with the league daily "to help develop our educational and service programs,Saucony Grid 9000 Premium, and to assist in revising our personal conduct policy."
Goodell also mentioned that the NFL met with the heads of groups representing the parents of pro football players, and with Dr. Dara Richardson-Heron,Cheap Air Max 90 Mens UK, the CEO of the YWCA,Max 90 Black Shoes Online, the largest provider of domestic violence services in the United States.
___
Brendan Shanahan Red Wings JerseyChina Jerseys[url=http://www.chinanfljerseysauthentic.us.com/]Cheap NFL Jersey

没有P币?共享开发案例或转载开发文章就能够得到P币!

使用道具 举报

Rank: 2

发表于 2016-9-22 14:02:55 |显示全部楼层

nba jersey 13961

FOXBOROUGH,cheap nfl jerseys china, Mass. (AP) — Chandler Jones is tackling the quarterback again, Vince Wilfork is stuffing the middle and Darrelle Revis is smothering receivers.
The New England Patriots defense is getting stingier and healthier as the playoffs approach.
Tom Brady and his prolific offense enjoy watching that from the sideline.
"There's pressure to score every time we get the ball and that's what we're trying to do," Brady said,wholesale jerseys, "but it's also a good feeling knowing that if you have to punt, you've got a defense that's not going to give up points too easily."
The Patriots lead the NFL with 31.6 points per game and have allowed the eighth fewest,discount nfl jerseys, 20.0.
They're ranked in the middle of the pack in yards allowed — 16 teams have given up fewer. But they limit the amount of points those yards produce. They gave up 384 yards last Sunday to the Miami Dolphins but won 41-13 to clinch their sixth straight AFC East title.
"The biggest stat was 13 points," Wilfork said. "I don't care how many yards you give up."
Jones is the Patriots' best pass rusher but missed the previous six games with a hip injury. He returned and had 1 1/2 sacks against Ryan Tannehill.
"I felt great," Jones said. "Just a few months ago I was on crutches. So for me to be out there running with my team, I got a little emotional."
Linebacker Dont'a Hightower also returned after missing one game with a shoulder injury. He resumed calling defensive signals,jerseys from china, a job he's done since two-time Pro Bowler Jerod Mayo went on injured reserve after the sixth game.
"Anytime you get playmakers back, it's always going to help your team,cheap authentic jerseys," Wilfork said.
Against Miami, Hightower was second on the team with eight tackles, Jones had seven and each forced a fumble.
In the second half,cheap mlb jerseys, the defense has been at its best.
In the last two games, it's allowed no points and a total of 213 yards. In the last five, it's given up just one touchdown and three field goals in the second half, outscoring opponents 82-16.
The competition gets weaker in the next game when the Patriots (11-3) visit the New York Jets (3-11) on Sunday before finishing at home against the Buffalo Bills (8-6).
But with the return of Jones, Hightower and backup defensive tackle Sealver Siliga, who had been on injured reserve with a designation to return, the defensive front seven has great depth.
"The more the merrier," Revis said.
The secondary also is deep, led by two cornerbacks picked up in the offseason.
Revis has been shutting down receivers all season and Brandon Browner has been hitting them hard at the other spot. Safety Devin McCourty is the steady man in the middle. And the two interceptions against Miami were by safeties Patrick Chung and Duron Harmon.
"They're game-changers," Harmon said of those plays. "They change the mood of the team, the fans, and it's just good to get them."
The Patriots had at least one interception in six of the last seven games and are fourth in the NFL in turnover differential.
Even 325-pound defensive tackle Wilfork picked off a pass.
"Defensively,cheap jerseys, all of our players are asked to do a lot of different things," defensive coordinator Matt Patricia said,nba jersey, "whether it's play man coverage, play zone coverage, rush the quarterback, stop the run, play in the front, play in the secondary.
"The more that you can do as a player, then, obviously, the more value you can create for yourself and hopefully help us win the game."
They've been doing more than enough to complement the high-scoring offense,sports jerseys.
"If we hold a team to 13 points," McCourty said, "there's a high chance our offense is going to go out there and get 14 or more each game."
___
Brendan Shanahan Red Wings JerseyChina Jerseys[url=http://www.chinanfljerseysauthentic.us.com/]Cheap NFL Jersey

没有P币?共享开发案例或转载开发文章就能够得到P币!

使用道具 举报

Rank: 2

发表于 2016-9-23 03:35:07 |显示全部楼层

wholesale sports 13874

BEREA, Ohio (AP) — Year after year it's the same thing: the Browns collapse in December or even earlier, miss the playoffs and left tackle Joe Thomas makes the Pro Bowl.
Book it again. Well,cheap mlb jerseys, not just yet.
Cleveland's chances of making the AFC playoffs are hanging by the thinnest thread as the Browns (7-7) head into Sunday's game at Carolina. With three straight losses, the Browns have slipped from the thick of the race to having one foot in the bleachers watching it.
"I don't know what it is mathematically," Thomas said of the Browns' slender playoff hopes. "But the chances are pretty dang slim."
For all his personal accomplishments, Thomas has yet to participate in the playoffs. It's the lone blemish on his stellar career, which includes seven straight Pro Bowl trips and could one day see him enshrined in Canton. On Wednesday, Thomas was named the team's player of the year by the local chapter of the Pro Football Writers of America and after being informed of his win,jerseys from china, he had to address his personal playoff drought.
"I certainly want to go to the playoffs," said Thomas. "I wish we could go every year. We were pretty close this year,wholesale nfl jerseys, but we weren't able to finish. I certainly would like to make it at least once — before I retire."
Thomas has seen it all during his time with the Browns,wholesale sports, and most of it has been bad. Cleveland went 10-6 his rookie season, barely missing the playoffs under coach Romeo Crennel.  But the Browns lost at least 11 games in each of the next six seasons before finally ending that futility this year. Thomas has endured late-season slides,cheap baseball jerseys, coaching changes, front office purges, an ownership switch and an almost constant shuffling of quarterbacks, including Johnny Manziel recently taking over for Brian Hoyer.
Incredibly,cheap hockey jerseys, Thomas, who has never missed a snap (7,810 and counting in the NFL) has blocked for 13 different starting quarterbacks and played for five coaches under six general managers.
It's been tough enough to watch. For Thomas, it's been his football life.
And despite the Browns' struggles, Thomas believes good days are ahead. The mention of another offseason overhaul triggered a hearty laugh from Thomas.
"It would be shocking to me if they didn't want to keep this good nucleus that we have right now going," he said. "And I think they will. There's no reason we shouldn't. ... It's a matter of retaining our good players and drafting more good ones as they come."
They don't come much better than Thomas, who has earned the admiration of his teammates with a consistent work ethic and attention to detail. He epitomizes the selfless, team player.
"Joe is Mr. Brown,nfl jerseys," Hoyer said. "He wants to be the best left tackle he can be. Obviously in years past he hasn't been on the best teams. This year we changed that a little bit, but he comes with the same preparation and intensity to be the best he can every day."
Last week, Thomas inched a little closer to the playoffs.
When former longtime Browns teammates D'Qwell Jackson and Josh Cribbs, both now with Indianapolis, qualified,nfl jersey, Thomas sent Jackson a congratulatory text message.
"It said,nfl jerseys china," Thomas recalled. "'I'm really happy for you. I'm so glad for you and Josh that you guys finally got the chance to play in the playoffs. I'm hoping I'm next.'"
NOTES:  Browns WR Andrew Hawkins missed practice with an unspecified illness. ... Offensive coordinator Kyle Shanahan believes Manziel will be able to shake off last week's debacle against Cincinnati. "Johnny is a real impressive guy," Shanahan said. "I don't think everybody knows really what Johnny is about." ... Browns C Alex Mack (broken leg) is in a walking boot and said his recovering timetable is on track.
___
Brendan Shanahan Red Wings JerseyChina Jerseys[url=http://www.chinanfljerseysauthentic.us.com/]Cheap NFL Jersey

没有P币?共享开发案例或转载开发文章就能够得到P币!

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册



合作QQ:977809718|Archiver|手机版|cordova中国-PhoneGap提供开发工具

GMT+8, 2018-1-19 17:28 , Processed in 0.015735 second(s), 15 queries .

PhoneGap中文社区

© 2009-2012 PhoneGapCN.

回顶部