Skip to main content

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.

kotlin
1 vote
1 answer
10 views

How to beautifully update a JPA object using Kotlin

I come from a Java background. I'm having a bit of a dilemma, OrderDetail needs an Order before saving it and I need Order needs OrderDetail as well. I thought the best approach was first creating the ...
user9132502's user avatar
1 vote
0 answers
9 views

How to upload large files in KMM using ktor?

I am looking for solution to upload large files(1 GB or more) in KMM using Ktor. If i use ByteArray its not efficient and produces out of memory issue. Is There any way in ktor to upload files using ...
Jagdish Jangir's user avatar
0 votes
1 answer
21 views

How to make the height of Row with painter Modifier depend on the content inside Compose kotlin

i have a code: Row( modifier = Modifier .fillMaxWidth() .background(Color.Black) .paint( painter = painterResource(resource = Res.drawable.toolbar_background), ...
onesector's user avatar
  • 410
0 votes
2 answers
22 views

animation transition from fragment to activity

i want to make animation transition between fragment and activity, there is no errors but the animation does not work, the intent work without animation. i tried this code // Start ChechoutActivity ...
Ammar Momani's user avatar
1 vote
1 answer
35 views

Unresolved reference after try/catch added

I have the following code I'm trying to debug and want to add a try/catch block to see why it is crashing. When I add that though, it gives me an unresolved reference a few lines down, as noted in the ...
user443654's user avatar
0 votes
1 answer
19 views

How to make a floating NavigationView in Android

I want to replicate the menu that Google has in its applications, but I don't know if there is a component like NavigationView and DrawerLayout that allows this menu to be made but that is not fixed ...
caflorezv's user avatar
0 votes
0 answers
13 views

the unresolved reference error caused by the fact that the plugins were not created

i am coding a sudoku application in the kotlin language, but as an example, one of the old versions of the kotlin language found in the youtube video I watched gives an error even if I write the exact ...
saliha's user avatar
  • 1
0 votes
0 answers
6 views

Authorization in graphql-kotlin-ktor-server with directive and datafetcher

I would like to use a GraphQLDirective to facilitate authorization while using graphql-kotlin-ktor-server. This question is about the approach that I am currently planning to use. Is this a good idea? ...
Pete's user avatar
  • 51
0 votes
0 answers
9 views

Solution Incompatibility between the geolocation library and kotlin in flutter

When trying to work with the new versions of the geolocation or location packages it gives me the following error: [!] Your project requires a newer version of the Kotlin Gradle plugin. │ │ Find the ...
Joel Pulla's user avatar
0 votes
0 answers
28 views

FAB being outside of small screens [closed]

Im currently developing an android app and Im having problems with a FAB (floating action button). For screens over 6" in shows but for screens below 6" (I have 5.8 as my personal for ...
Eli Heli's user avatar
0 votes
0 answers
8 views

Koin - using scopes in isloated context when building a library with koin

I am using koin in an SDK, i create an isolated koin context as explained in the docs, however, i want to allow the SDK consumer to turn the SDK off, effectively clearing all classes created by the ...
Ziv Kesten's user avatar
  • 1,223
0 votes
0 answers
8 views

com.google.firebase.auth.FirebaseAuthInvalidCredentialsException: The sms code has expired. Please re-send the verification code to try again

I am building a simple authentication app that authenticates the users through email/password and then through Phone. The layout is simple - User logs in with email/password in Login Activity and is ...
Sourav_039_CSE's user avatar
1 vote
1 answer
20 views

Android 14 - Foreground service type for Activity Recognition

When targeting android 14, we should provide at least one foregroundServiceType for each service in manifest - https://developer.android.com/about/versions/14/behavior-changes-14#fgs-types Which ...
alexC's user avatar
  • 157
0 votes
0 answers
12 views

OpenAPI Swagger with kotlin inheritence

How to deal with inheritence with Kotlin for Swagger targetted objects? Just wondering if there is a way to do something like @Schema(description = "Child.") class Child( aName: String ):...
Pipo's user avatar
  • 4,943
0 votes
0 answers
12 views

Cannot invoke "com.android.tools.r8.graph.i0.a(com.android.tools.r8.graph.y)

I am getting the below error when trying to build a release app bundle. java.lang.NullPointerException: Cannot invoke "com.android.tools.r8.graph.i0.a(com.android.tools.r8.graph.y)" because ...
Mehul Kanzariya's user avatar

15 30 50 per page
1
2 3 4 5
6418