kotlin Questions

1

This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug. I am trying to resolv...

4

I want to try out the Kotlin Multiplatform Mobile (KMM) in Android studio. I have installed the Plugin and when I try to add configuration for IOS, nothing shows up. I just have an IOS option but n...
Madelene asked 29/9, 2020 at 4:28

3

Solved

I have an Android app with 9 buttons. This app runs on 2.36 and is the only app on the device (or at least the only app we let the user use - we ship the device with our code preinstalled as part o...
Bannerman asked 9/9, 2014 at 15:16

5

Solved

I downloaded android studio latest version Hedgehog, and I found it strange that there is no longer an option to select JAVA languages on the new project screen. Is this a bug? did I do something w...
Mineralize asked 10/2 at 12:26

3

I've been spending way too much time trying to solve this problem. So the code that I posted below does work in terms of downloading a file, but the problem is, the flow has a very unexpected behav...
Intervalometer asked 30/11, 2020 at 23:41

3

I'm struggling with adding native ads in my flutter project . My project is using Kotlin for android so I follow the documentation of google_mobile_ads but it keeps showing me these errors after I ...
Uncircumcised asked 5/7, 2021 at 4:34

3

Solved

I have a repository that creates a flow where I emit the result of a suspending Retrofit method. This works in the app, but I would like to run tests on the code. I am using kotlinx-coroutines-test...
Pettish asked 4/4, 2022 at 1:33

1

Solved

I'm trying to implement a custom progress indicator in Jetpack Compose that looks like the attached image. A rounded square with a custom icon inside. When the loading starts, there should be a pro...

2

Solved

Android Studio is giving a warning saying: "Kotlin version that is used for building with Gradle (1.3.10) differs from the one bundled into the IDE plugin (1.3.41)". How can i change the Kotlin ve...
Bromal asked 26/7, 2019 at 23:30

3

I have a simple Jetpack Compose application that uses the Navigation Component. My UI is comprised of the following composables (redacted UI to be concise): NavHost: @Composable fun NavHost( nav...

2

Solved

I have generated some models using the Open API tool on one of our backend APIs with Swagger. I got the following as the enum definition: @Serializable enum class ClientBackgroundState(val value: k...
Audraaudras asked 30/5, 2022 at 11:37

3

Solved

I'm trying to using backticks ` in the definition of my instrumented tests. I don't understand why compiler complains about a strange error: Caused by: com.android.tools.r8.internal.Jj: com.android...
Wallboard asked 27/2, 2023 at 9:36

3

I have a Composable which needs to fetch some data from my local Room Database when called. When I navigate to another Composable and then navigate back it should fetch the data again. I fetch the ...

2

Solved

I'm following the docs as stated her https://insert-koin.io/docs/reference/koin-android/viewmodel/#viewmodel-and-injection-parameters The only difference is my viewmodel has 2 (besides Koin injecte...
Affettuoso asked 23/12, 2021 at 9:19

2

Solved

I've upgraded from Kotlin 1.7 to Kotlin 1.9 in my KMM project. though I have Gradle 7.6 AGP 7.4.2 After the upgrade lintAnalyzeDebug task reports error on every dependency: Module was compiled with...
Synaesthesia asked 14/7, 2023 at 17:44

3

I need to use NIST P-256 elliptic curves to encrypt and decrypt data. Now that I have generated the key pair, but how do I use them to encrypt and decrypt? The official website only says how to us...
Kush asked 18/7, 2019 at 5:22

1

Solved

Why does the following code print 0? class X { fun f() { val x = 0 val a = object { val x = 1 fun g() { println(x) } } a.g() } } fun main() { val x = X() x.f() } Why the inner propert...
Tope asked 12/9 at 10:32

2

Solved

I have an Immersive application that's hiding the system bar using the Compose accompanist library in system navigation val systemUiController: SystemUiController = rememberSystemUiController() sy...
Kiangsi asked 16/11, 2022 at 18:30

4

I just want to see the output from a few simple println(...) in my Kotlin mulitplatform commonTest code. My build.gradle.kts looks a little like: import org.jetbrains.kotlin.gradle.plugin.mpp.Kotl...
Nichollenicholls asked 19/2, 2020 at 22:1

8

Let's say I have a List in Kotlin like: val lst = MutableList<Int>() If I want the last item, I can do lst.last(), but what about the second to last?
Whicker asked 14/12, 2019 at 2:28

2

Solved

I am able to do SwipeToDismiss but I want to restore the swiped LazyColumn item back to its original state. I don't want to remove swiped item but want to restore it to its original state. I am abl...
Wigley asked 28/1, 2022 at 5:44

6

Solved

I'm looking for the most "clean" way to implement the following logic: I have N methods, everyone returns Flow<Result<SOME_TYPE>> (type are different) I want to chain these m...
Mccusker asked 11/10, 2020 at 12:16

2

What is the right way to create an aspect around Kotlin suspended function? From my observation, Micrometer's @Timed aspect does work with them, but shows incorrect result - looks like it measures...
Retro asked 29/12, 2018 at 22:11

3

Solved

Why is it that border modifier is not applied when used with .apply { }? val selected = remember { mutableStateOf(true) } val selectableModifier = Modifier .padding(horizontal = 5.dp, vertical = ...
Eskimoaleut asked 26/8, 2021 at 6:46

1

I have a problem with Kotlin files in android studio. when the file is too large (for example more than 2000 lines), the android studio is not responding and actually, it freezes when I try to work...
Karlykarlyn asked 29/6, 2019 at 18:47

© 2022 - 2024 — McMap. All rights reserved.