Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [kotlin]

Kotlin is a cross-platform, statically typed, general-purpose high-level programming language with type inference. This tag is often used alongside additional tags for the different targets (JVM, JavaScript, native, etc.) and libraries/frameworks (Android, Spring, etc.) used by Kotlin developers, if the question relates specifically to those topics.

0 votes
1 answer
14 views

Execution of Gradle Tasks and find out why are they executed

I'm currently doing a Udemy Course to learn Kotlin and I've a Question about Gradle and Tasks. I've tried HILT and had to add kapt to my Project (empty project with jetpack-compose). My app/build....
John Doe's user avatar
  • 135
0 votes
0 answers
39 views

Difficulties upgrading old project to Android 14

I am experiencing tremendous difficulties upgrading a project to Android 14. A little background into the project. The project currently cannot be upgraded past Java 15 , API Level 33 and Gradle 7.0.2 ...
Julian Silvestri's user avatar
1 vote
0 answers
32 views

Android: OnNewIntent overrides nothing

After recent updates to several libraries in my gradle, when I built my project, it gives me these two errors: 1. 'OnNewIntent' overrides nothing 2. 'dispatchKeyEvent' overrides nothing I see that ...
M. Usman Khan's user avatar
0 votes
1 answer
15 views

Could not get unknown property 'kotlin_version' Flutter packages

after updating Flutter I'm getting this error with almost every package I add to the project. For this example we'll use the permission_handler package. FAILURE: Build failed with an exception. * ...
Yasine Romdhane's user avatar
0 votes
0 answers
20 views

AIDE project initialization shows up with errors

When I try to sync the project, I get: java.lang.IllegalArgumentException: Unsupported class file major version 65 Caused by: BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_'...
Dragonite Brian 1024's user avatar
0 votes
0 answers
29 views

How can I open another window from the same app in android?

I want to open another window from my own app when I start a new activity like Meta Messenger does when someone calls. I uploaded my screenshot. I tried this to open a new window like Messenger does ...
SK94's user avatar
  • 11
0 votes
1 answer
9 views

How can I use MockK to return a particular value from a constructor?

I'm writing some Kotlin tests, and I want to mock the return value of a particular method of an object that's constructed. Right now I have every{ anyConstructed<FooMaker>.execute(fooId) } ...
Dan's user avatar
  • 12.6k
0 votes
0 answers
9 views

Issue of default scripting plugin getting disabled

Hey I'm getting and error like this when i'm trying to run my app in android studio warning: default scripting plugin is disabled: The provided plugin org.jetbrains.kotlin.scripting.compiler.plugin....
Mathew's user avatar
  • 1
0 votes
0 answers
13 views

Is there any way to get information about a hardware keyboard connected to an Android device?

I've looked everywhere but can't find an answer specifically for hardware keyboards. I've tried checking the devices list from UsbManager but it comes up empty. I am able to detect whether a hardware ...
Itamar Bitton's user avatar
1 vote
0 answers
15 views

How to handle a DTO in both polymorphic and non-polymorphic endpoints with Jackson?

I work with SpringBoot 3.2 and kotlin. I have a usecase for a polymorphic api which I do with some jackson annotations. This already works: @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = ...
Christian's user avatar
  • 850
0 votes
1 answer
24 views

How to detect SIM state change in Android

I am trying to detect changes in SIM state (in dual sim scenario - single SIM active/inactive, both SIM active/inactive) from Broadcast receiver in Android. I googled to find solution, but they are ...
Saral's user avatar
  • 5
0 votes
0 answers
25 views

how to scroll to the bottom in richtextfx TextArea

I'm trying to create a text area that whenever a text is added, it will scroll to the bottom. With the help of ChatGPT and all the documentation I could find, I ended up with this, but it doesn't work....
ModdyFire's user avatar
  • 735
0 votes
0 answers
26 views

How to add INR currency Format with decimal places with max length 8 Digit and 2 decimal value

developers I'm developing Amount to Words convert with INR currency format with max length 8 and 2 decimal values I've achieved this in USA currency format but when I tried with INR it's not accepting ...
Mustafa Shaikh's user avatar
-2 votes
0 answers
9 views

Unresolved reference: card_details

class CustomAdapter( var context: Context, var id: List , var tagId: List , var tagName: List, var logTime: List, var value: List ) : RecyclerView.Adapter<CustomAdapter.MyViewHolder>() { ...
AnushaRam Banisetti's user avatar
0 votes
1 answer
68 views

OutlinedTextfield start a call

I need some help with Android development. We have an application (using Jetpack), which has an input field that is an OutlinedTextField. The client has requested that if a valid phone number is ...
Viktor Szabados's user avatar

15 30 50 per page