如何从一个zip文件中安装插件科尔多瓦 [英] how to install cordova plugin from a zip file
问题描述
我试图安装phoneRTC( https://github.com/alongubkin/phonertc )但其使用Git克隆永远走:
科尔多瓦插件添加https://github.com/alongubkin/phonertc.git
这就是为什么我决定只使用wget上github上提供的zip文件:
wget的https://github.com/alongubkin/phonertc/archive/master.zip
现在我有我的电脑上的插件。我试图解压zip文件并把它放在我的项目的插件
目录,并改名的文件夹是相同 ID
在 config.xml中
文件:
com.dooble.phonertc
但是,当我试图建立apk文件,我得到了以下错误:
<$p$p><$c$c>/home/wern/www/chatapp/chatapp/platforms/android/src/com/dooble/phonertc/PhoneRTCPlugin.java:316:错误:无法找到符号webView.addView(_videoView,_videoParams);
^
符号:方法addView(VideoGLView,的LayoutParams)
位置:类型CordovaWebView的变量web视图
/home/wern/www/chatapp/chatapp/platforms/android/src/com/dooble/phonertc/PhoneRTCPlugin.java:336:错误:无法找到符号
webView.removeView(_videoView);
^
符号:方法removeView(VideoGLView)
位置:类型CordovaWebView的变量web视图
/home/wern/www/chatapp/chatapp/platforms/android/src/com/dooble/phonertc/PhoneRTCPlugin.java:420:错误:无法找到符号
webView.removeView(_videoView);
^
符号:方法removeView(VideoGLView)
位置:类型CordovaWebView的变量web视图
注:某些输入文件使用或覆盖脱precated API。
注:-Xlint重新编译:详情德precation。
注:某些输入文件使用未经检查或不安全的操作。
注:-Xlint重新编译:未选中的详细信息。
3个错误
失败故障:建立失败,一个例外。* 什么地方出了错:
执行失败的任务:compileDebugJava。
&GT;编译失败;详情请参见编译器错误输出。
任何想法有什么不对?我错过了什么?在此先感谢
Uncom preSS插件并安装它像这样:
科尔多瓦插件添加/路径/要/的/ uncom pressed /文件夹
I'm trying to install phoneRTC (https://github.com/alongubkin/phonertc) but its taking forever with git clone:
cordova plugin add https://github.com/alongubkin/phonertc.git
That's why I decided to just use wget on the zip file available at github:
wget https://github.com/alongubkin/phonertc/archive/master.zip
Now I have the plugin on my computer. I tried extracting the zip file and putting it on the plugins
directory of my project and renamed the folder to be the same as the id
in the config.xml
file:
com.dooble.phonertc
But when I tried building the apk file I got the following error:
/home/wern/www/chatapp/chatapp/platforms/android/src/com/dooble/phonertc/PhoneRTCPlugin.java:316: error: cannot find symbol
webView.addView(_videoView, _videoParams);
^
symbol: method addView(VideoGLView,LayoutParams)
location: variable webView of type CordovaWebView
/home/wern/www/chatapp/chatapp/platforms/android/src/com/dooble/phonertc/PhoneRTCPlugin.java:336: error: cannot find symbol
webView.removeView(_videoView);
^
symbol: method removeView(VideoGLView)
location: variable webView of type CordovaWebView
/home/wern/www/chatapp/chatapp/platforms/android/src/com/dooble/phonertc/PhoneRTCPlugin.java:420: error: cannot find symbol
webView.removeView(_videoView);
^
symbol: method removeView(VideoGLView)
location: variable webView of type CordovaWebView
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJava'.
> Compilation failed; see the compiler error output for details.
Any ideas what's wrong? did I miss something? thanks in advance
Uncompress the plugin and install it like this:
cordova plugin add /path/to/the/uncompressed/folder
这篇关于如何从一个zip文件中安装插件科尔多瓦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!