Thanks to visit codestin.com
Credit goes to github.com

Skip to content

java.lang.NoClassDefFoundError #120

@imdutch21

Description

@imdutch21

I seem to be having a problem with using the api. I've made a little program for testing the capabilities of the api, but after trying to build a new instance of the api
Api api = Api.builder().accessToken(oauthToken).clientId(CLIENT_ID).redirectURI(UIR).build();
the following error is given:
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/impl/conn/PoolingHttpClientConnectionManager;

Full error log: https://pastebin.com/N9ihEaJt

I've looked online for solutions, but I can't seem to find any fixes that work. Has anyone got any clue for how to fix this?

Dependencies:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile 'com.spotify.sdk:spotify-player-24-noconnect-2.20b@aar'
    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.spotify.android:auth:1.0.0-alpha'
    testCompile 'junit:junit:4.12'

    compile('se.michaelthelin.spotify:spotify-web-api-java:1.7.3') {
        exclude group: "commons-beanutils", module: "commons-beanutils"

    }
    compile 'commons-beanutils:commons-beanutils:20030211.134440'
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions