GET jme3-core returns 401 unauthorized

I’m trying to build my gradle project and I’m getting this error:

org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET ‘’. Received status code 401 from server: Unauthorized

Any hints as to what I might be doing run ?

Does your gradle project not depend on a real version then?

The official Maven repo is at JCenter. Why are you using JitPack?

In particular, what does the dependency specification in your build.gradle say?

I have jitpack specified because I needed it for a different library. Didnt mean to use that specifically for jme.

Top level build.gradle:

        ext.jmeVersion = "3.3.2-stable"

Project build.gradle:

	    // jMonkeyEngine
        implementation "org.jmonkeyengine:jme3-core:$jmeVersion" 
        implementation "org.jmonkeyengine:jme3-desktop:$jmeVersion"
        implementation "org.jmonkeyengine:jme3-effects:$jmeVersion"
        implementation "org.jmonkeyengine:jme3-lwjgl3:$jmeVersion"
        implementation "org.jmonkeyengine:jme3-plugins:$jmeVersion"

Removing my jitpack dependeny and removing that repo solved it. I guess I need to find a way to specify in build.gradle a specific repo for a specific dependency-

What was the order of your repositories? jcenter() last?

Should be:
…everything else.

May not make a difference but that should be everyone’s preferred precedence.

1 Like

Yea, had that I think

repositories {
        maven { url "" }
        //maven { url "" }
        maven { url ""}
        maven { url "" }
        maven { url ""}

Does the thing you depend on from jitpack also depend on JME?

No, its a completely seperate external library

I was just trying to figure out why gradle even looked for JME there since there are better places and they are higher in the repository list.

Can’t explain it.

I read somewhere jitpak should be last.