Hey guys,
I am updating kotlin from 1.6.10 to 1.7.10 in my project and now when I try to sync gradle it fails with:
Copy code
A problem occurred configuring project ':android'.
> Failed to notify project evaluation listener.
> Could not create task ':android:compileDebugAndroidTestKotlin'.
> Cannot invoke "String.trim()" because "in" is null
> KotlinJvmAndroidCompilation with name 'debugAndroidTest' not found.
If I try the same with kotlin 1.6.10 it works fine. Any ideas?
🤔 1
🤨 1
q
qian
09/14/2022, 6:02 PM
Can you locate the piece of code that triggers this error? If so, can you share the code snippet?
qian
09/14/2022, 6:04 PM
It seems some of your test code has been causing this error
r
Radoslaw Juszczyk
09/15/2022, 7:23 AM
I am using IntelliJ IDEA 2022.2.1 (Community Edition)
to create New Project...
where I select Compose Multiplatform
with confiugration:Multiple Platforms
then in the generated project, I go to:
gradle.properties file and change:
Copy code
//kotlin.version=1.6.10
kotlin.version=1.7.10
Then trying to Load Gradle Changes
fails with that error:
Copy code
Cannot invoke "String.trim()" because "in" is null
q
qian
09/15/2022, 8:57 AM
It’s a bit hard to diagnose without the whole configurations, if you can share a minimal sample project with the code in question that would help.