无法执行shell命令“getprop,dev.bootcomplete”"在设备上:Android的错误 [英] Failed to execute shell command "getprop,dev.bootcomplete"" on device: error for Android

查看:2153
本文介绍了无法执行shell命令“getprop,dev.bootcomplete”"在设备上:Android的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通过Ionic框架构建并将新的debug-apk文件部署到Android模拟器后,我收到 getprop,dev.bootcomplete 错误。

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

模拟器弹出到Android的主屏幕但是模拟器上没有安装应用程序,因此在模拟器启动时无法打开。

The emulator pops open to the home screen for Android but the app is not installed on the emulator and thus does not open on startup for the emulator.

我在这个问题上看了类似的帖子,尝试了adb中的不同步骤,删除和创建了模拟器的新设备,我为我正在测试的API级别安装了x86和x86_64图像。 API 26.我不确定我还能做些什么。我不相信从cordova中删除android然后再添加它将解决问题。错误日志如下。

I had looked at similar posts on this issue and tried the different steps in adb, deleting and creating new devices for the emulator and I have both the x86 and x86_64 images installed for the API level that I am testing in which is API 26. I am not sure of what else I can do. I don't believe that removing android from cordova and then adding it back in will solve the issue. The error log is below.

编辑:

我看过的每个帖子迄今为止在这个问题上还没有解决这个问题。我还没有卸载并重新安装Android Studio或任何SDK工具,但我认为我不需要。

Every post I have seen thus far on this issue has not resolved the issue. I still have yet to uninstall and reinstall Android Studio or any of the SDK tools, but I don't think I need to.

可能导致问题的原因是我不得不将我的NDK版本恢复到r16b而不是更新的r17b,因为我的应用程序无法正确使用离子cordova构建。它现在正在构建,但模拟器仍然存在此问题,并且不会安装我的应用程序。

Something that may be causing the issue is that I had to revert my NDK version back to r16b instead of the more recent r17b because my app was not building correctly with ionic cordova. It is building correctly now but the emulator is still having this issue and wont install my app.

错误日志:

emulator: Requested console port 5584: Inferring adb port 5585.
HAX is working and emulator runs in fast virt mode.
(node:11468) UnhandledPromiseRejectionWarning: CordovaError: Failed to execute shell command "getprop,dev.bootcomplete"" on device: Error: C:\Users\noaht\AppData\Local\Android\sdk\platform-tools\adb.exe: Command failed with exit code 1 Error output:
error: device still connecting
    at C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\lib\Adb.js:88:25
    at _rejected (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:864:24)
    at C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:890:30
    at Promise.when (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:1142:31)
    at Promise.promise.promiseDispatch (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:808:41)
    at C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:624:44
    at runSingle (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:137:13)
    at flush (C:\Noah\Noah School\SSAapp\SMAPP\platforms\android\cordova\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
(node:11468) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11468) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
emulator: S
aving state on exit with session uptime 4695 ms


推荐答案

这是一个cordova-android 错误,因为Google可能在尝试运行应用时更改了错误消息。

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

它已经修复,但尚未发布。

It has been fixed already, but not released yet.

我认为如果你自己应用这个会有所改变到 yourAppName / platforms / android / cordova / lib / emulator.js

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

更改

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

if((错误&& error.message&&
(error.message。 indexOf('not found')> -1))||
(error.message.indexOf('device offline')> -1)||
(error.message.indexOf('设备仍在连接')> -1))

这篇关于无法执行shell命令“getprop,dev.bootcomplete”"在设备上:Android的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆