Use this tag to specifically ask question regarding the Kotlin versions 1.4
Questions tagged [kotlin1.4]
7 questions
3
votes
1 answer
Can I use property syntax for a Java setter without a corresponding getter?
I have a Java class with a setter, but no getter for a property.
class Person {
private String name;
public void setName(String name) { this.name = name; }
}
I'd like to use .name= to assign to it from Kotlin
fun example() {
val p = Person()
…

Ryan Haining
- 35,360
- 15
- 114
- 174
2
votes
0 answers
What is a Jetpack Compose @Composable function compiled to?
I am exploring Android's new declarative UI framework, Jetpack Compose. After learning the basics, I am interested in how it's implemented, in which I am mostly interested in how a @Composable function is compiled. From some speech videos I learned…

Shreck Ye
- 1,591
- 2
- 16
- 32
1
vote
1 answer
When deploying, I have a :react-native-screens:compileReleaseKotlin FAILED apparently due to versioning
When I build my android app, I get this error message:
Task :react-native-screens:compileReleaseKotlin FAILED
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress…

Armandovegas
- 11
- 1
1
vote
0 answers
Generics compile errors in Kotlin 1.4 vs 1.3
I have the following code (here is the link to the Kotlin Playground):
import kotlinx.coroutines.*
sealed class CallResult {
data class Success(val data: T) : CallResult()
data class Failure(val error: String) :…

frangulyan
- 3,580
- 4
- 36
- 64
0
votes
1 answer
Error running React Native 62.3 app with react-native-reanimated 1.13.2
UPDATE: there was a library trying to use React Native 64 or newer, and the EventDispatcher.java file changed a lot from 63.5 to 64+. That was the cause of expecting an Interface while i was running a class file.
Last week a project I have was…

Luis Jiménez
- 21
- 3
0
votes
0 answers
Storing a lambda expression in a variable removes inline optimization
I am looking into optimizing the size of the call stack by using inline functions.
If you execute the following code:
inline fun function2( action: () -> Unit) {
action()
}
fun function1() {
function2{ printCurrentStack() }
}
fun…

Dimitar Spasovski
- 2,023
- 9
- 29
- 45
0
votes
1 answer
Kotlin 1.4.20 gradle kts issue in IntelliJ
I am facing constant issues with my build.gradle.kts where the whole thing is basically red since I migrated to kotlin 1.4.20. Also, the gradle version is 6.7.1.
Any one face similar issues or is it just me? any workarounds?
when run through the…

MozenRath
- 9,652
- 13
- 61
- 104