android - how to install cordova plugin from a zip file -


i'm trying install phonertc (https://github.com/alongubkin/phonertc) taking forever git clone:

cordova plugin add https://github.com/alongubkin/phonertc.git 

that's why decided use wget on zip file available @ github:

wget https://github.com/alongubkin/phonertc/archive/master.zip 

now have plugin on computer. tried extracting zip file , putting on plugins directory of project , renamed folder same id in config.xml file:

com.dooble.phonertc 

but when tried building apk file got 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: input files use or override deprecated api. note: recompile -xlint:deprecation details. note: input files use unchecked or unsafe operations. note: recompile -xlint:unchecked details. 3 errors  failed  failure: build failed exception.  * went wrong: execution failed task ':compiledebugjava'. > compilation failed; see compiler error output details. 

any ideas what's wrong? did miss something? in advance

uncompress plugin , install this:

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

Comments