美文网首页Android知识Android开发Android开发
Cordova开发集成,导入问题随笔

Cordova开发集成,导入问题随笔

作者: 我的少女心 | 来源:发表于2017-03-17 14:35 被阅读67次

最近项目中要用到Cordova,集成过程中我遇到的困难记下来,便于以后查阅。

1,http://cordova.apache.org/docs/en/latest/guide/cli/index.html 官方文档,很详细,可以切换繁体中文阅读。

2,http://www.cnblogs.com/a418120186/p/5226417.html cordova项目生成后,目录介绍。

3,http://www.cnblogs.com/a418120186/p/5475621.html  http://blog.csdn.net/gameloft9/article/details/50960523cordova  命令行签名

4,需要Node.js环境。 需要git客户端,需要JDK1.8版本以上,AndroidSDK貌似也有限制,环境变量不搭建会导致命令行编译不通过。

5,cordova默认加载index.html文件,前端代码放在www文件夹下,编译后libs下没有jar包,会导致mudule导入AS出错。

6,导AS会报 找不到CordovaLib 的错误,将这两行先注掉

debugCompile project(path: 'CordovaLib', configuration: 'debug')

releaseCompile project(path: 'CordovaLib', configuration: 'release')

然后导入本地jar,对jar包版本也有限制,报错换lib版本,项目自动生成的cordovaLib可删除。

7,命令行编译会报Error: cmd: Command failed with exit code 1 Error output:错误。原因可能是文件夹为中文

相关文章

网友评论

    本文标题:Cordova开发集成,导入问题随笔

    本文链接:https://www.haomeiwen.com/subject/xlyenttx.html