-1
我在科尔多瓦4.0.0,我要安装的PhoneGap的谷歌地图插件 - https://github.com/wf9a5m75/phonegap-googlemaps-plugin科尔多瓦谷歌地图插件没有编制
在进行安装的解释后,我在cordova build
命令集中的问题。
/home/etouraille/src/app/platforms/android/src/plugin/google/maps/GoogleMaps.java:15: error: cannot find symbol
import org.apache.cordova.ScrollEvent;
^
symbol: class ScrollEvent
location: package org.apache.cordova
/home/etouraille/src/app/platforms/android/src/plugin/google/maps/GoogleMaps.java:138: error: cannot find symbol
root = (ViewGroup) webView.getParent();
^
symbol: method getParent()
location: variable webView of type CordovaWebView
/home/etouraille/src/app/platforms/android/src/plugin/google/maps/GoogleMaps.java:197: error: cannot find symbol
webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
^
symbol: method setLayerType(int,<null>)
location: variable webView of type CordovaWebView
/home/etouraille/src/app/platforms/android/src/plugin/google/maps/GoogleMaps.java:206: error: cannot find symbol
webView.setBackgroundColor(0);
我终于得到了解决:在看评论,它是dowgrade科尔多瓦同时去除android平台,在此期间,科尔多瓦问我安装Android 19,我不得不用java路径一些解决的问题。
我终于得到解决方案,它是降级科尔多瓦,第一步从科尔多瓦删除android:cordova remove platform android,然后donwgrade cordova:npm install -g [email protected],然后安装android平台的cordova平台添加android,并且它像一个charme一样工作! – user2626210
在这里,您可以发布自己的问题的答案。所以请这样做,所以当别人面临同样的问题时,对他们来说很容易。 – Keval