husnjak / IGDB-API-JVM

Wrapper for IGDBs API written in Kotlin should work for all JVM based languages, tested in Kotlin & Java
MIT License
39 stars 11 forks source link

Cannot resolve IGDBWrapper #1

Closed Cese93 closed 5 years ago

Cese93 commented 5 years ago

Hi,

i add all in my gradle but when i call this:

IGDBWrapper wrapper = IGDBWrapper.INSTANCE;
        wrapper.setUserkey("YOUR_API_KEY");
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'

    implementation 'com.github.husnjak:IGDB-API-JVM:0.2'

    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
`}`

i got this error 'cannot resolve symbol IGDBWrapper'.

husnjak commented 5 years ago

Have you tried to resync your gradle file. If you get that error it means that you have not downloaded the package.

I just tried creating a test app adding the library and it works. So i think there is something wrong with your gradle sync.