ThanosFisherman / WifiUtils

Easily Connect to WiFi Networks
Apache License 2.0
731 stars 188 forks source link

Cannot resolve symbol elvis #86

Closed eliaslecomte closed 3 years ago

eliaslecomte commented 3 years ago

Android apps that still use Gradle dsl can't resolve symbol elvis. This is a dependency of WifiUtils. Not sure how I should fix this.

ThanosFisherman commented 3 years ago

This is strange because it seems to resolve fine on my machine. Let me take a look and post back.

eliaslecomte commented 3 years ago

I'm also confused. It works correctly in the sample but not in an empty android app with Kotlin as default (bot not kotlin-dsl).

ThanosFisherman commented 3 years ago

Oh so you are having issues when you include WifiUtils dependency on a third party project?

eliaslecomte commented 3 years ago

Yes.

ThanosFisherman commented 3 years ago

@eliaslecomte I released a new version 1.6.4 let me know if Elvis resolves correctly now. :)

eliaslecomte commented 3 years ago

Thanks for the prompt action! It seems to work correctly now. I still had an error but that was due to having both kotlin-stdlib-jdk8 & kotlin-stdlib in my project. Resolved that by switching to kotlin-stdlib-jdk8.

ThanosFisherman commented 3 years ago

Kotlin-stdlib supports Java 6 and above. I use kotlin-stdlib-jdk8 in my projects which includes both kotlin-stdlib and kotlin-stdlib-jdk7 as well.

So yeah you only need to include kotlin-stdlib-jdk8 in your project.

Closing this for now.