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 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.
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.
Edit:
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.
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.
Error Log:
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