Failed to execute shell command “getprop,dev.bootcomplete”" on device: error for Android

前端 未结 4 2118
无人及你
无人及你 2020-12-29 22:18

I am getting the getprop,dev.bootcomplete error after building and deploying the new debug-apk file to the Android emulator through Ionic framework.

The

4条回答
  •  星月不相逢
    2020-12-29 22:41

    This is a cordova-android bug because Google probably changed the error message when trying to run the app.

    It has been fixed already and released in cordova-android 7.1.1 or newer. If you can't update to those versions do:

    I think it would work if you apply this change yourself to yourAppName/platforms/android/cordova/lib/emulator.js

    Change

    if ((error && error.message && (error.message.indexOf('not found') > -1)) || (error.message.indexOf('device offline') > -1))

    to

    if ((error && error.message && (error.message.indexOf('not found') > -1)) || (error.message.indexOf('device offline') > -1) || (error.message.indexOf('device still connecting') > -1))

提交回复
热议问题