I updated android gradle plugin and android studio...
# squarelibraries
c
I updated android gradle plugin and android studio from alpha/canary 3 to alpha/canary 7. No other changes. Now after doing all sorts of nuking/restarting I'm left with these errors messages. I'm assuming there's no reason why okhttp and moshi wouldn't work with agp alpha 7 (released today)? I'm doing some more research on the android bugtracker to see if this is worth reporting, but figured id chime in here to see if anyone else upgraded to agp alpha 7 today. This error is actually in a java/kotlin lib. nothing android related in it. Edit: Should have mentioned my code actually still builds fine. just the IDE with these error messages.
Heres my build file. Fairly straightforward?
Copy code
plugins {
  id("java-library")
  id("kotlin")
}

java {
  sourceCompatibility = JavaVersion.VERSION_1_8
  targetCompatibility = JavaVersion.VERSION_1_8
}

dependencies {
  implementation("com.squareup.retrofit2:retrofit:2.9.0")
  implementation("com.squareup.retrofit2:converter-moshi:2.9.0")
  implementation("com.squareup.moshi:moshi-kotlin:1.13.0")
  implementation("com.squareup.moshi:moshi-adapters:1.13.0")
  implementation("com.slack.eithernet:eithernet:1.2.0")

  testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0")
  testImplementation("com.squareup.okhttp3:logging-interceptor:4.9.3")
  testImplementation("com.squareup.okhttp3:mockwebserver:4.9.3")
  testImplementation("junit:junit:4.13.2")
  testImplementation("com.google.truth:truth:1.1.3")
}
e
Canary 6+ came with a lot of weird bugs (so nice of it to get pushed out right before the holidays). I'd check to make sure the JDK is set correctly for the project (in the IDE settings). I think it's in
Settings -> Build, Execution, Deployment -> Build Tools -> Gradle -> Gradle JDK
c
glad to hear others had some issues. but yeah, it had me scratching my head. seems like dependency resolution in the ide is messed up. esp since everything builds fine and its just the IDE having issues.