我試圖安裝phoneRTC(https://github.com/alongubkin/phonertc)安裝科爾多瓦插件,但它的使用Git克隆永遠走:如何從一個zip文件
cordova plugin add https://github.com/alongubkin/phonertc.git
,這就是爲什麼我決定只使用wget上提供的zip文件在github上:
wget https://github.com/alongubkin/phonertc/archive/master.zip
現在我的電腦上有插件。我試圖提取zip文件,並把它放在plugins
目錄我的項目和重命名的文件是相同的3210文件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.
任何想法是怎麼回事?我錯過了什麼?通過Relplacing
webView.addView(_videoView);
與
((WebView) webView.getView()).addView(_videoView);
和
webView.addView(_videoView);
cordova plugin add /path/to/the/uncompressed/folder