D
D
David Manzhula2016-03-01 01:18:14
Java
David Manzhula, 2016-03-01 01:18:14

Configuration problems in android studio. How to fix?

https://drive.google.com/file/d/0B7TPoSh3BFCxSF9wM...
and here is the error itself

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Dorofeev, 2016-03-01
@da411d

In LibGDX, this happens when the system username
contains invalid characters. To fix this
, write this in the main method before initializing the launcher:

String correctUserName = "Здесь ваше имя пользователя латиницей";
System.setProperty("user.name",correctUserName);

That is, it goes something like this:
public static void main (String[] arg) {
        setupUserName();
        LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
        new LwjglApplication(new Touch(), config);
 } 
private static void setupUserName() {
 String correctUserName = "Здесь ваше имя пользователя латиницей";
 System.setProperty("user.name",correctUserName);
}

M
Meehalkoff, 2016-03-01
@Meehalkoff

Use an interpreter if you don't know the language.
Install the library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question