cordova 3.0: Android: Connection is not defined

前端 未结 14 1755
情话喂你
情话喂你 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:11

    I had the same exact problem, but was able to fix it. Running the below commands as per the Phonegap Connection docs doesn't seem to work:

    $ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git
    $ cordova plugin rm org.apache.cordova.core.network-information
    

    Instead, I had to use:

    $ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git
    

    Once I did that, it worked.

提交回复
热议问题