Category "kotlin"

Kotlin Flows map

I have an issue regarding kotlin flow merging. See below fun. suspend fun method(filter: String): Flow<List<Model>> { // Search. val models: List&l

Android Databinding Cannot find a setter for * that accepts parameter type *

Am trying to declare a variable in databinding layout it's type is array of integer but I getting an error when building the project Cannot find a setter for &

Getter for defaultDisplay: Display!' is deprecated. Deprecated in Java

I need the width of the screen. But recently found Android defaultDisplay deprecacted with message: Getter for defaultDisplay: Display!' is deprecated. Deprecat

Can we integrate POLQA (perceptual objective listening quality assessment), to Check Voice Quality of Call?

I have requirement to Check Voice quality Rate out of 5 , 5 indicate excellent and 1 is bad. i have research POLQA can do it. but can not find any reference for

sentry android install error Failed to resolve: androidx.lifecycle:lifecycle-common-java8:2.4.0

i want to add sentry 5.6.0 to my android project but always give error on gradle build buildscript { repositories { mavenCentral() } } plugins

After fixing "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8" Android studio emulator still doesn't work

I got an error "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8" I change it in IDE settings and JAVA_HOME environment variabl

How to trigger other CardView element in recyclerview than clicked?

I have a method in adapter using recyclerview I basically display some elements of cardViews. How to trigger method on other element where usually I use cardVie

How to implement In app Update for Android production bundle in Play Store

I have implemented In App Update in my app, its working fine in on both apk and bundle in Internal Testing but its not working when I Upload the production bund

Kotlin noArg plugin not recognised by IntelliJ

I am not sure if I've missed a config or stumbled upon a bug. I am using IntelliJ to build a Kotlin Spring Boot application with JPA and would like to use Kotli

Layout inspector not showing composables tree

When I use Layout Inspector in a running compose app on a device, I do not obtain the composables tree but the view system tree. How to see the composables tree

Why Vert.x blocks event loop thread when using Oracle Reactive Client

I try to user Vert.x Reactive Oracle Client version 4.2.6 to avoid blocking threads in event loop. I decided to test a really long query: GlobalScope.launch(ver

Why am I getting a JsonDecodingException exception in kotlinx.serialization?

I'm trying to create a custom deserializer using kotlinx.serialization but when I deerialize a JSON payload with null parameters, an exception kotlinx.serializa

com.android.build.gradle.LibraryExtension_Decorated cannot be cast to (.....).BaseExtension

Objective :
I have developed Test for CodeCoveragePluginForAndroidConnectedTest . Steps to reproduce error : ./gradlew clean build A problem occurred eval

Notify data change on spinner select

I can't seem to get my driver to update through my app. I have tried but with no luck. I have a possible solution but don't know what the adapter is that needs

material-1.5.0-alpha03\res\values-v31\values-v31.xml:3:5-94: AAPT: error: resource android:color/system_neutral1_1000 not found

<?xml version="1.0" encoding="utf-8"?> <resources> <color name="m3_ref_palette_dynamic_neutral0">@android:color/system_neutral1_1000</c

How to make Dialog re-measure when a child size changes dynamically?

I implemented a simple dialog with Jetpack Compose on Android. I am trying to show a caution message when isRehearsal is true. The variable isRehearsal is toggl

Is it possible to access internal class with reflection in Kotlin?

Is it possible to access fields of internal class with reflection in Kotlin? I need to change the object of the third-party library's internal class.

Can a Kotlin Object be used as a Spring bean?

Kotlin allows for the definition of singleton objects. In dependency injection (DI) frameworks like Spring or CDI, the life cycle of beans can be defined as sin

not able to use ai.djl.modality.cv.util.BufferedImageUtils in my application

I am new to AI technology .I dded every DJL which are required to my project . But when I go to use ai.djl.modality.cv.util.BufferedImageUtils. I am not able t

Compose's "AndroidView"'s factory method doesn't recall when "remember" value change

I've an AndroidView on my UI and I'm creating a custom view class using factory scope. And I've remember value above my android view which is changing by user a