Forum Stats

  • 3,814,891 Users
  • 2,258,925 Discussions
  • 7,892,883 Comments

Discussions

Getting multiple issues with Hybrid Mobile App Development - App is not serving in Android Emulator

tinavidhu
tinavidhu Member Posts: 41 Blue Ribbon
edited Jun 24, 2018 5:54PM in Oracle JET

Nodejs - Version 5.6.0

Cordova - Version 8.0.0

Oracle JET Command Line Interface, version: 5.1.0

The problem is that, when I just create the scaffold and try to run the same, it serves up correctly in a browser and doesn't serve in my Android Emulator

Android Studio -  Version 3.1.3

Android AVD Device - Pixel , API 22

I am getting the error as shown in the attached text file.

It opens the emulator but it doesn't install MySampleApp and doesn't render that App as well.

Can you please help me with what is going wrong here?

Thanks and Regards,

Vidhya

Tagged:

Answers

  • John 'JB' Brock-Oracle
    John 'JB' Brock-Oracle Posts: 2,775 Employee
    edited Jun 24, 2018 5:54PM

    Hi Vidhya,

    From what I can see in that error message, there is something happening with the Emulator loading properly.  Can you try starting the emulator and leaving it open, and then run the ojet serve command again, please.

    Assuming Win10 for the OS on this, correct?

    This is the part of the error message that I am basing my assumptions off of to start with:

    *************************************************

    (node:13176) UnhandledPromiseRejectionWarning: CordovaError: Failed to execute s

    hell command "getprop,dev.bootcomplete"" on device: Error: C:\Users\IBM_ADMIN\Ap

    pData\Local\Android\Sdk\platform-tools\adb.exe: Command failed with exit code 1

    Error output:

    error: device still connecting

    *************************************************