sstrickx / yahoofinance-api

Java Client API for Yahoo Finance
MIT License
498 stars 219 forks source link

Trouble getting Kotlin to `compile` yahoofinance-api #212

Closed ghost closed 1 year ago

ghost commented 1 year ago

My dependencies look like

dependencies {
    implementation("androidx.core:core-ktx:1.10.1")
    implementation("androidx.appcompat:appcompat:1.6.1")
    compile(group="com.yahoofinance-api", name="YahooFinanceAPI", version= "3.17.0")
}

I get an error trying to build. The error says that compile is unknown. This is despite adding java to my plugins like so.

plugins {
    id("com.android.application")
    id("org.jetbrains.kotlin.android")
    java
}
ghost commented 1 year ago

See: https://stackoverflow.com/questions/73921459/stringindexoutofboundsexceptio-error-occurred-while-using-yahoo-finance-api-in-k