Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (687)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [Nevermind] Libgdx-android project does not run, "unable to get view server..."  (Read 4548 times)
0 Members and 1 Guest are viewing this topic.
Offline philfrei
« Posted 2013-08-05 05:43:13 »

EDIT: Never mind.
It runs. It just takes five minutes to load and make the emulator ready. I'm not used to tools taking that long to work. And the program (Drop game tutorial) is really sluggish and doesn't respond to keyboard (and images greatly lag sound events). But it is running.

I am attempting to run the most basic Libdgx-android project on Eclipse Juno. As far as I know, the most basic program, using the setup tool, should display the Libgdx.png file. The -desktop and -html both display the .png as expected.

Maybe there is something basic in the way I've configured things that is causing problems? Being totally new to this, I wouldn't be at all surprised.

Here is the error message when running the -android project (after starting the AVD for the Galaxy Nexus--maybe there's a better emulator to run?) via right clicking and selecting "run as Android project":

[2013-08-04 22:11:40 - hierarchyviewer]Unable to get view server version from device emulator-5554
[2013-08-04 22:11:40 - hierarchyviewer]Unable to get view server protocol version from device emulator-5554
[2013-08-04 22:11:41 - ViewServerDevice]Unable to debug device: AVD_for_Galaxy_Nexus [emulator-5554]
[2013-08-04 22:11:41 - hierarchyviewer]Unable to get the focused window from device emulator-5554

I just turned off this emulator and tried running the program (right click on project, select "Debug as Android Application") again. It automatically picks another emulator that I had loaded yesterday and gives the same sort of error messages.
[2013-08-04 22:20:19 - hierarchyviewer]Unable to get view server version from device emulator-5554
[2013-08-04 22:20:19 - hierarchyviewer]Unable to get view server protocol version from device emulator-5554
[2013-08-04 22:20:19 - ViewServerDevice]Unable to debug device: AVD_for_4.0_WVGA_480x800 [emulator-5554]
[2013-08-04 22:20:19 - hierarchyviewer]Unable to get the focused window from device emulator-5554

When loading the generated project into Eclipse, I have to go into the Build configuration, select Android and click Project Build Target: "Android 4.3", and I leave unclicked "Google APIs".

This act gets rid of error messages I previously wrote about. I also go into the AndroidManifest.xml and set the targetSdkVersion from 17 to 18 to match the API indicated in the Android SDK Manager in Eclipse.

Tried again--this time more error messages, and I tried launching the Galaxy when asked.
[2013-08-04 22:38:10 - AngryMason-android] ------------------------------
[2013-08-04 22:38:10 - AngryMason-android] Android Launch!
[2013-08-04 22:38:10 - AngryMason-android] adb is running normally.
[2013-08-04 22:38:10 - AngryMason-android] Performing com.adonax.AngryMason.MainActivity activity launch
[2013-08-04 22:38:10 - AngryMason-android] Failed to find an AVD compatible with target 'Google APIs'.
[2013-08-04 22:39:05 - AngryMason-android] Still no compatible AVDs with target 'Google APIs': Aborting launch.
[2013-08-04 22:39:05 - AngryMason-android] Performing com.adonax.AngryMason.MainActivity activity launch
[2013-08-04 22:39:29 - AngryMason-android] Launching a new emulator with Virtual Device 'AVD_for_Galaxy_Nexus'
[2013-08-04 22:39:35 - Emulator] Failed to create Context 0x3005
[2013-08-04 22:39:35 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-08-04 22:39:36 - AngryMason-android] New emulator found: emulator-5554
[2013-08-04 22:39:36 - AngryMason-android] Waiting for HOME ('android.process.acore') to be launched...

Then all this disappears and the first errors I posted reappear.

Am quite lost. Is there another AVD that would be a better choice?
Also, as might be expected, I get similar messages when trying to run the "Drop" tutorial that does run in the -desktop version.

music and music apps:
Offline nerb
« Reply #1 - Posted 2013-08-05 06:21:01 »

Yep, AVDs are horribly slow to boot, install programs and run  Smiley. You've probably worked this out yourself, but if you boot the AVD early and leave it running you can save a bit of time.

Alternatively and preferably, if you have an Android device laying around, I suggest you plug that in and use it. Don't expect the AVD to give you any reasonable indication of performance, use a real device for that.

EDIT: Just to add, AVDs have an option to utilise the host GPU (you can select this either when creating the AVD or editing it methinks). Perhaps you can try this and see if it gives you any boost in performance. From my experience it does sweet bugger all and is still slow, but it's worth a try.

Offline philfrei
« Reply #2 - Posted 2013-08-05 07:10:15 »

Thanks for the reality check!

music and music apps:
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Dwinin (71 views)
2015-11-07 13:29:08

Rems19 (81 views)
2015-10-31 01:36:56

Rems19 (74 views)
2015-10-31 01:32:37

williamwoles (106 views)
2015-10-23 10:42:59

williamwoles (92 views)
2015-10-23 10:42:45

Jervac_ (106 views)
2015-10-18 23:29:12

DarkCart (134 views)
2015-10-16 00:58:11

KaiHH (116 views)
2015-10-11 14:10:14

KaiHH (156 views)
2015-10-11 13:26:18

BurntPizza (171 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!