cordova 3.0: Android: Connection is not defined

前端 未结 14 1776
情话喂你
情话喂你 2020-12-20 13:54

my first time experimenting with Apache Cordova 3.0.

downloaded lib, unziped cordova-android and cordova-js and created a project:

./create ~/Docume         


        
14条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 14:22

    If you have included the plugin and are having the same problem it could be the order in which you included the plugin.

    In order for the plugin to work I had to include the plugin after having added the platform.

    $ cordova create
    
    $ cordova platform add android 
    
    $ cordova plugin add org.apache.cordova.network-information
    

提交回复
热议问题