Cordova “hello world” app won't display

后端 未结 4 476
滥情空心
滥情空心 2020-11-30 09:37

I am new to Apache Cordova and I can\'t get the Cordova \"hello world\" application to display on Android. I\'m talking about the default application obtain

4条回答
  •  感动是毒
    2020-11-30 09:58

    Goto Platforms > android > cordova > lib > Here you will find device.js and emulator.js

    emulator.js

    In emulator.js you must change the following line (311) from ->

    return exec('adb -s -d' + resolvedTarget.target + ' install -r -d "' + apk_path + '"', os.tmpdir())

    To return exec('adb -d -s ' + resolvedTarget.target + ' install -r "' + apk_path + '"')

    device.js

    In device.js you must change the following line (101) from ->

    var cmd = 'adb -s ' + resolvedTarget.target + ' install -r -d "' + apk_path + '"';
    

    To var cmd = 'adb -d -s ' + resolvedTarget.target + ' install -r "' + apk_path + '"';

    Once you have changed these rebuild the application and run it on your emulator!

提交回复
热议问题