Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
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 1799 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":

1  
2  
3  
4  
[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.
1  
2  
3  
4  
[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.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
[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.


"It's after the end of the world! Don't you know that yet?"
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.

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

Thanks for the reality check!

"It's after the end of the world! Don't you know that yet?"
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (49 views)
2014-10-17 03:59:02

Norakomi (38 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (34 views)
2014-10-15 16:18:58

TehJavaDev (65 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!