No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [Solved] Cordova Black Screen

    Help
    3
    8
    3471
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • krsyoung
      krsyoung last edited by krsyoung

      Hey folks, I’m having a hard time pinning down why I get a black screen when deploying my Quasar application to an Android Emulator. Running in dev mode and running on the device work just fine. I’m using a simple workflow:

      quasar build
      cd cordova
      cordova emulate android
      

      Curious if anybody else has seen a similar issue that might somehow be tied to Quasar Cordova wrapper?

      BTW although the screen is black I can still click around on and interact with the page (I can see the console statements proving that things are happening).

      So annoying!

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Remove the Crosswalk plugin. I’ve had a similar case a while ago.

        1 Reply Last reply Reply Quote 0
        • LaurentPayot
          LaurentPayot last edited by LaurentPayot

          Also could you get your AVD run standalone via Android SDK manager? Black screen generally means your virtual device can’t boot because of wrong system image.

          1 Reply Last reply Reply Quote 0
          • krsyoung
            krsyoung last edited by

            Thanks for the suggestions guys! It does run standalone (I can actually click in the different input fields of the login screen, just can’t see them!). I’ll see what it looks like without crosswalk and report back.

            1 Reply Last reply Reply Quote 0
            • krsyoung
              krsyoung last edited by

              Ok, so I did the following:

              cordova plugin remove cordova-plugin-crosswalk-webview
              quasar build
              cordova emulate android
              

              But same deal … only a black screen. I did have this working at some point. I’ll mess around some more today to see if I can figure it out.

              1 Reply Last reply Reply Quote 0
              • LaurentPayot
                LaurentPayot last edited by

                What about cordova run android instead of cordova emulate android ?

                1 Reply Last reply Reply Quote 0
                • LaurentPayot
                  LaurentPayot last edited by LaurentPayot

                  It could also be a video driver issue. Try with -gpu off https://developer.android.com/studio/run/emulator-acceleration.html#accel-graphics

                  1 Reply Last reply Reply Quote 0
                  • krsyoung
                    krsyoung last edited by

                    Thanks for all of the ideas @LaurentPayot

                    The run and emulate commands perform the same thing for me (when I don’t have a device plugged in).

                    I changed the graphics from Hardware to Software (might be the same as -gpu off, I couldn’t figure out how to get that to work with the Cordova CLI). And, low and behold!! I have a (very very slow) visible screen again!

                    I’ll have to debug what’s going on with HAX / Graphics, but definitely not a Quasar issue :-). Thanks so much @rstoenescu and @LaurentPayot for helping me out!

                    1 Reply Last reply Reply Quote 2
                    • First post
                      Last post