Android 如何从zip文件安装cordova插件

Android 如何从zip文件安装cordova插件,android,cordova,phonertc,Android,Cordova,Phonertc,我正在尝试安装phoneRTC(),但使用git clone需要花费很长时间: cordova plugin add https://github.com/alongubkin/phonertc.git 这就是为什么我决定在github提供的zip文件上使用wget: wget https://github.com/alongubkin/phonertc/archive/master.zip 现在我的电脑上有了这个插件。我尝试提取zip文件并将其放在项目的plugins目录中,并将文件夹重命

我正在尝试安装phoneRTC(),但使用git clone需要花费很长时间:

cordova plugin add https://github.com/alongubkin/phonertc.git
这就是为什么我决定在github提供的zip文件上使用wget:

wget https://github.com/alongubkin/phonertc/archive/master.zip
现在我的电脑上有了这个插件。我尝试提取zip文件并将其放在项目的
plugins
目录中,并将文件夹重命名为与
config.xml
文件中的
id
相同:

com.dooble.phonertc
但是,当我尝试构建apk文件时,出现了以下错误:

/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.

你知道怎么了吗?我错过什么了吗?提前感谢

解压缩插件并按如下方式安装:

cordova plugin add /path/to/the/uncompressed/folder

我必须通过重新放置来解决这个问题

webView.addView(\u videoView)

webView.addView(\u videoView)

我知道这是个老问题,但希望能帮助别人

((WebView) webView.getView()).addView(_videoView); 
 ((WebView) webView.getView()).addView(_videoView);