Open ivellios1988 opened 8 years ago
same issue, seems there is a "fix" on the repository. In fact it's ok with old phonegap build but not with CLI where the name of webview component is not good, and the fix seems not included for phonegap "build" on release 1.7.0 ?
Same Issue
We need someone to merge the fix in order to have the plugin working without any extra works ... i dont understand how to add a new plugin for free on phonegap so we need author of this to validate the fix
Solution As Following: in the file : plugins\com.kumbe.phonegap.zoom.zoomcontrol\src\android\com\kumbe\phonegap\zoom\ZoomControl.java
Add import org.apache.cordova.CordovaWebView;
replace final WebView webView = this.webView; by final WebView webView = ((WebView)this.webView.getEngine().getView());
version 0.1.8 now is available, thanks for your contribution
Working fine with latest phonegap Build Cli, thanks!
This plugin causes some issues when compiling Android apps on Phonegap:
-compile: [javac] Compiling 20 source files to /project/bin/classes [javac] /project/src/com/kumbe/phonegap/zoom/ZoomControl/ZoomControl.java:22: error: incompatible types [javac] final WebView webView = this.webView; [javac] ^ [javac] required: WebView [javac] found: CordovaWebView [javac] /project/src/com/kumbe/phonegap/zoom/ZoomControl/ZoomControl.java:51: error: incompatible types [javac] final WebView webView = this.webView; [javac] ^ [javac] required: WebView [javac] found: CordovaWebView [javac] /project/src/com/kumbe/phonegap/zoom/ZoomControl/ZoomControl.java:69: error: incompatible types [javac] final WebView webView = this.webView; [javac] ^ [javac] required: WebView [javac] found: CordovaWebView [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 3 errors