2015-05-08 38 views
1

我試圖安裝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 

回答

0

解壓縮插件,這樣安裝 與

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

我知道這是一個老問題,但希望能幫助別人。

0

我不得不解決這個問題:在此先感謝

相關問題