PhoneGap的3 - Android的插件不工作 [英] Phonegap 3 - Android Plugin not working
问题描述
我已经开发了一个定制的PhoneGap插件机器人 -
I have developed a custom phonegap plugin for android -
https://github.com/bharatkaushik/AndroidEstimoteBeacons
我已经把我的插件文件夹,我的项目的PhoneGap的插件文件夹中。
I have placed my plugin folder, within my project's Phonegap's plugin folder.
这个插件我的项目的config.xml分录如下:
My project's config.xml entry for this plugin is as follows:
<feature name="EstimoteBeacons">
<param name="android-package" value="org.bkaushik.estimotebeacons" />
<param name="onload" value="true" />
</feature>
我不能看到我的Android项目我的插件的Java文件。
I am not able to see my plugin's java files in my android project.
此外,当我尝试通过键入本地的PhoneGap插件列表看到插件列表,我得到了项目目录找不到一个错误。
Also, when I try to see the list of plugins by typing phonegap local plugin list, I get an error that the project directory could not be found.
我缺少什么吗?
谢谢!
巴拉特
Thanks! Bharat
推荐答案
使用煎茶Cmd的v4.0.2.67,煎茶触摸2.3的PhoneGap 3.3.0我'。我也困惑有关添加插件的PhoneGap,但我只是找到一种方法,也许它可能是一些解决方案。我的解决办法,就是改变工作目录到PhoneGap的(我有煎茶的应用程序和phogegap生成的应用程序)。然后在该目录中,只需键入插件要添加,例如:
I'am using Sencha Cmd v4.0.2.67, sencha touch 2.3, phonegap 3.3.0. I'm also confusing about adding phonegap plugins, but i just find a way, maybe it can be some solutions. My solutions, is change the working directory to phonegap (i have sencha app and phogegap generated application). Then on that directory, just type plugin you want to add, in example:
tigalima:phonegap bee$ phonegap plugin add org.apache.cordova.network-information
[phonegap] adding the plugin: org.apache.cordova.network-information
[phonegap] successfully added the plugin
希望工程。
这篇关于PhoneGap的3 - Android的插件不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!