Kotlin version that is used for building with Gradle (1.3.50) differs from the one bundled into the IDE plugin (1.5.0-release-764)

Answered
Android Studio 4.2 Stable built: AI-202.7660.26.42.7322048 use kotlinc 1.5.0-release-764

IDE plugin (1.5.0-release-764)
does not seem to be publicly accessible (503) and can not be reached (504)

How can I deal with this problem? I do not know how and what to do, gradlew lint will fail


buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
0
12 comments

Hello,

For my work environment Gradle works normally with the same IDE and Kotlin versions.

gradlew lint will fail

Please provide a complete error output or a couple of screenshots showing the problem. A project sample also would be helpful.

The files can be uploaded at https://uploads.jetbrains.com (do not forget to specify the UploadID)

1

thanks, Egor, I will provide you with more detail as soon as possible, next time I post 

0

 

Hello Egor,

here a 'demo' of what is happening as far as gradlew lint is concerned

Upload id: 2021_05_10_2vkmkNApMoWMQEmP (files: demo_igor.pdf and 5 more)

Thanks

 

 

0

This is a bug that will be fixed in Kotlin 1.5.10: https://youtrack.jetbrains.com/issue/KTIJ-11590

0

Thank you @alexey and @egor for your concerns. When will kotlin 1.5.10  be release? Because on the stable Android version we can do nothing except from waiting... 🤔 Anyway thank you so much for this clarification and transparency

0

We'll release 1.5.10 in a few weeks.

1

The release has been done! Thanks a lot. Unfortunately, gradlew lint is still not working.

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Upload id: 2021_05_27_BeLJmRT9v3Us9xHF (files: DelegatingMethodAccessoImpl_class.txt and 3 more)

  • gradlew lint result
  • gradlew lint --stacktrace
  • DelegatingMethodAccessoImpl.class
  • NativeMethodAccessorImpl.class

I am on PC Windows, open jdk 16

I post here as some files are :

recreated from a .class file by IntelliJ IDEA

I really do not know what to do.

Thanks for any guidance

 

0

Hi, looks like this is an Android bug, can you please file a bug report to https://source.android.com/setup/contribute/report-bugs

0

https://issuetracker.google.com/issues/189350498

hope something will be done, it was working so well before those updates

0

meanwhile, I have a question:  are you making JDK 11.011 the one to use and why?

0

Hi, 

I encountered an error while installing a Flutter Package => audioplayers: ^0.19.1

Error:

Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. 
The binary version of its metadata is 1.5.1, expected version is 1.1.15.

After trying to find solution for 3 consecutive days I am now encountering this error

Error 2:

Android Studio is using the following JDK location when running Gradle: 
// C:\Program Files\Android\Android Studio\jre // Using different JDK locations
on different processes might cause Gradle to spawn multiple daemons, for example,
by executing Gradle tasks from a terminal while using Android Studio.
// More info... // Select a JDK from the File System
// Do not show this warning again (a minute ago)

 

Kotlin version that is used for building with Gradle (1.5.10) differs from the 
one bundled into the IDE plugin (1.5.21)
Inspection info: This inspection reports that different IDE and Gradle plugin
versions are used. This can cause inconsistencies between IDE and Gradle builds
in error reporting or code behaviour.

 

JCenter Maven repository is no longer receiving updates: newer library versions 
may be available elsewhere

I am totally at a loss.. Don't know what to do.

Please help.

Debasis Sil

 

0

Try https://stackoverflow.com/a/67470309/992380 and update your Kotlin Gradle plugin to match the IDE plugin (1.5.21)

0

Please sign in to leave a comment.