在phonegap初学者这里我做了一些步骤并遇到问题:
> npm install -g phonegap (I already have node.js)
> phonegap create my-app
> cd my-app
> phonegap build android
[phonegap] executing 'cordova build'...
[phonegap] completed 'cordova build'
- >但是没有创建平台/ android / bin目录,假设包含创建的apk
使用phonegap build android --verbose
我最后有这个:
C:\Users\hmeknassi\Desktop\test\my-app>goto end
C:\Users\hmeknassi\Desktop\test\my-app>set _JAVACMD=
C:\Users\hmeknassi\Desktop\test\my-app>set ANT_CMD_LINE_ARGS=
C:\Users\hmeknassi\Desktop\test\my-app>if "Windows_NT" == "Windows_NT"
C:\Users\hmeknassi\Desktop\test\my-app>if "Windows_NT" == "WINNT"
C:\Users\hmeknassi\Desktop\test\my-app>if exist "\antrc_post.bat" call "\antrc_post.bat"
Built the following apk(s):
Command finished with error code 0: C:\Users\hmeknassi\Desktop\test\my-app\platforms\android\cordova\build.bat
[phonegap] completed 'cordova build android --verbose'
知道问题是什么?或一些建议来检测它......
由于
答案 0 :(得分:0)
phonegap create foldername com.package.name ProjectName
cd foldername
phonegap platform add android
phonegap build android
您需要将html文件保存在 foldername / www 文件夹
中在你的构建之后你的apk将在 foldername / platforms / build / outputs / apk
我希望它有所帮助。感谢