我开始与科尔多瓦,我有一些小问题。 我创建了一个android应用程序。我已经安装了java,android SDK,Apache Ant和Apache Ant。科尔多瓦第一步
我已经添加了Android与cordova add platforms android
,并正确地建立。
1 - 当我使用cordova run android
我得到以下错误:
an error occured while running the android project . Buildfile : ...Demo \ platforms \ android \ build.xml . ERROR : Failed to install apk to device
我认为这是由于我的应用程序是不是在调试模式。如何设置调试模式? ('cordova emulate android'工程并启动模拟器)
2 - 当我想在eclipse中加载项目。 (新项目 - >现有代码的Android项目)我有错误:
Invalid project description Reason : . Invalid project description
如何克服此错误?
3 - 我想安装外部插件,如 - https://github.com/ClickInnovate/CordovaPhoneGapPlugins/tree/master/Android/SocialMessage - https://github.com/phonegap/phonegap-plugins/tree/master/Android/StatusBarNotification 据说到java文件复制src文件夹,但是,我的Java文件复制原来的项目或一个是建立(在。平台directorie)