Problem loading gradle in netbeans

We’re about two layers of abstraction below what you’re dealing with here. You’re looking for help on a project that was generated by another project that makes use of Gradle. The lowest level problem in the error posted was that there’s a dependency declared on com.android.tools.build:gradle:3.0.1 that doesn’t exist in any of the repositories defined. If you (or the project) asks Gradle to download something from a location it doesn’t exist, that’s not really even a Gradle problem.

You haven’t provided much context to suggest how you got to the current state. If I go generate a project with libGDX, I get the following:

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
        jcenter()
    }
    dependencies {
        classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
        classpath 'com.android.tools.build:gradle:2.2.0'
        classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.3'
    }
}

This has an earlier version of com.android.tools.build:gradle and an earlier version of Gradle, which seems to work fine. However, your project seems to be using com.android.tools.build:gradle 3.0.1 instead of 2.2.0, and Gradle 4.1, but I can’t tell if you’re intentionally trying to upgrade to these newer versions.

If you wanted 3.0.1 (or any version 3.0+), you’d normally just add the google() repository along with mavenCentral(), jcenter(), etc., because that’s where that dependency actually exists now. If you just make that change, I think you’d have a different problem because it doesn’t seem like what libGDX is providing is compatible with some of the changes in these versions. Not knowing what you or the libGDX project is intending, it’s hard to say what you should be doing at the Gradle level.