D
D
Dmitry Starikov2017-11-07 00:26:27
libgdx
Dmitry Starikov, 2017-11-07 00:26:27

How to fix error when running project on Desktop in Android Studio while working with libGDX?

Recently I started trying to learn programming, I don’t know much and I don’t know how, so I ask you to help me solve a possibly very stupid error:
UcYaSurLNGY.jpg
This error appears when you try to run a project on Desktop. Based on what is written there, most likely an error due to incorrect paths, but I have already done it all over again several times, the result is the same.
Guided by this: https://www.youtube.com/watch?v=e75He5HE9iE

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
exenza, 2017-11-07
@starikovmain

Do you have Android Studio 3.0?
According to google guide you need to update the repositories (this is probably the root 'build.gradle' file). Type:

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
        ...
    }
}

allprojects {
    repositories {
        jcenter()
        google()
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question