Category "kotlin"

Unresolved reference: title & Unresolved reference: overview

I've got error of Unresolved reference: overview & Unresolved reference: title after I added List<Result>, as for separating code inside folder after

How to solver error for kotlin coroutines flow?

I tried to use NetworkBoundResource for my MVVM Model and after i follow some tutorial, i'm having an error look this 10-21 14:15:04.073 31376-31376/com.example

Spock and internal kotlin function

I am having trouble with using internal kotlin functions in my Spock tests. Here's short snippet of my spock test: private def preconditions = new MonetaryPrec

How to set visibility in Kotlin?

I am new in Kotlin. I have a view that I need to show or hide in conditional ways. How can I do this in Kotlin? In Java: public void showHide(View view){

is it possible to convert aar file to android studio project?

Currently I have an aar file and need to edit the structure and functions in it. I need to convert it to a project in order for you to edit it. Is there any way

Beginning Android programming - Build your first app

After just installing the latest Android Studio (3.0.1) I started with the Build Your First App guide. I'm using Kotlin as it seems to be the suggested way to g

Get dual sim phone call logs (Call Log Is from what Sim Card)

We're creating a call log application and in a call log I want to show the user that the call log is from sim 1 or sim 2. I found this but when I try to get it,

android:autoSizeTextType in Jetpack Compose

Is there a way to adjust the text to always resize depending a fixed height ? I have a column that has a fixed height and in which the text inside should always

Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

When trying to run the Example CorDapp (GitHub CorDapp) via IntelliJ, I receive the following error: Cannot inline bytecode built with JVM target 1.8 into byte

How to get the current index in for each Kotlin

How to get the index in a for each loop? I want to print numbers for every second iteration For example for (value in collection) { if (iteration_no % 2) {

How to get the current index in for each Kotlin

How to get the index in a for each loop? I want to print numbers for every second iteration For example for (value in collection) { if (iteration_no % 2) {

Compose preview doesn't work at all - project needs to be compiled

I use Android Studio Bumblebee 2021.1.1 Patch 3 built on March 16, 2022 androidx.compose.ui:ui-tooling, androidx.compose.ui:ui-tooling-preview, androidx.compose

Flutter: Execution failed for task ':location:compileDebugKotlin'

Execution failed for task ':location:compileDebugKotlin'. build:gradle(Module:app) ext.kotlin_version = '1.6.10' repositories { maven {

Kotlin Test Coverage

Does anyone know if a good test coverage tool (preferably Gradle plugin) exists for Kotlin? I've looked into JaCoCo a bit, but it doesn't seem to reliably suppo

Compose Desktop testing - how to check if something is visible?

Given some simple content: @Composable fun MyContent() { var showThing by remember { mutableStateOf(false) } if (showThing) { Box(Modifier.testT

Kotlin code coverage in CI pipeline

Interested to find code coverage tools for kotlin that work well in a CI pipeline. use intellij built in code coverage but cant use this in CI. Thanks

How to iterate over hashmap in Kotlin?

How to iterate over HashMap in Kotlin? typealias HashMap<K, V> = HashMap<K, V> (source)

Cannot create instance of viewmodel after using Hilt in Android

Here is my AllFilesListViewModel class. class AllFilesListViewModel @ViewModelInject constructor( private val pdfItemRepository: PdfItemRepository):ViewMod

Cannot create instance of viewmodel after using Hilt in Android

Here is my AllFilesListViewModel class. class AllFilesListViewModel @ViewModelInject constructor( private val pdfItemRepository: PdfItemRepository):ViewMod

Gradle can not find firebase auth ktx library in android

As you can see below, I have encounter this error when I try to download missing files inside firebase auth.ktx library otherwise I can not reach any document