Phonegap build Admob ads: symbol: getView () method
I have been using this mobile phone plugin plugin and it worked like a charm until last week. Now I am getting this error log in Phonegap Build:
[javac] /project/src/com/appfeel/cordova/admob/AdMobAds.java:422: error: cannot find symbol
[javac] ((ViewGroup) webView.getView().getParent()).addView(adViewLayout, params);
[javac] ^
[javac] symbol: method getView()
[javac] location: variable webView of type CordovaWebView
[javac] /project/src/com/appfeel/cordova/admob/AdMobAds.java:432: error: cannot find symbol
[javac] ViewGroup wvParentView = (ViewGroup) webView.getView().getParent();
[javac] ^
[javac] symbol: method getView()
[javac] location: variable webView of type CordovaWebView
[javac] /project/src/com/appfeel/cordova/admob/AdMobAds.java:439: error: cannot find symbol
[javac] wvParentView.removeView(webView.getView());
[javac] ^
[javac] symbol: method getView()
[javac] location: variable webView of type CordovaWebView
[javac] /project/src/com/appfeel/cordova/admob/AdMobAds.java:442: error: cannot find symbol
[javac] webView.getView().setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT, 1.0F));
[javac] ^
[javac] symbol: method getView()
[javac] location: variable webView of type CordovaWebView
[javac] /project/src/com/appfeel/cordova/admob/AdMobAds.java:443: error: cannot find symbol
[javac] parentView.addView(webView.getView());
[javac] ^
[javac] symbol: method getView()
[javac] location: variable webView of type CordovaWebView
[javac] Note: Some input files use or override a deprecated API.
The best part is that it works great in my local cordova app! Please, help?
+3
source to share
No one has answered this question yet
Check out similar questions: