Gang Of Coders
Home
About Us
Contact Us
All Kotlin Solutions on Gang of Coders
Total of 433 Kotlin Solutions
In Kotlin, how do you modify the contents of a list while iterating
List
Iterator
Kotlin
Mutable
How to do PATCH properly in strongly typed languages based on Spring - example
Spring
Rest
Spring Boot
Patch
Kotlin
How to create a fat JAR with Gradle Kotlin script?
Kotlin
Gradle
build.gradle
Executable Jar
Gradle Kotlin-Dsl
Android Room Persistence library and Kotlin
Database
Kotlin
Kapt
Android Room
Kotlin: why use Abstract classes (vs. interfaces)?
Kotlin
Abstract Class
kotlin-stdlib-jre7 is deprecated. Please use kotlin-stdlib-jdk7 instead
Android
Kotlin
Static method imports in Kotlin
Kotlin
kotlin and ArgumentCaptor - IllegalStateException
Android
Robolectric
Kotlin
How to compare two arrays in Kotlin?
Arrays
Equals
Kotlin
Android: Kotlin with Butterknife
Android
Kotlin
Butterknife
Using Kotlin class in Java: Cannot find symbol
Java
Maven
Build
Interop
Kotlin
Kotlin calling non final function in constructor works
Java
Oop
Kotlin
How to create a simple countdown timer in Kotlin?
Android
Kotlin
Countdowntimer
JCenter deprecation; impact on Gradle and Android
Java
Android
Kotlin
Gradle
build.gradle
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
Android
Android Studio
Kotlin
What is the smartest way to copy a Map in Kotlin?
Kotlin
Hashmap
Kotlin: Check if lazy val has been initialised
Kotlin
Gradle Project: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
Java
Exception
Exception Handling
Kotlin
List files recursively in Kotlin
File
Kotlin
Recursion
Directory
Unresolved reference: launch
Gradle
Kotlin
Kotlin Coroutines
Android Kotlin onItemSelectedListener for spinner not working
Android
Kotlin
Spinner
Kotlin generics Array<T> results in "Cannot use T as a reified type parameter. Use a class instead" but List<T> does not
Java
Arrays
Generics
Kotlin
Reification
Kotlin: Coroutines scope vs Coroutine context
Kotlin
Kotlin Coroutines
Building a self-executable jar with Gradle and Kotlin
Gradle
Kotlin
How can one add static methods to Java classes in Kotlin
Kotlin
Kotlin Extension
Kotlin: Why are most variables underlined in Android Studio and how do I turn that off?
Android Studio
Syntax Highlighting
Kotlin
How do I replace duplicate whitespaces in a String in Kotlin?
Kotlin
Is there a way to use the default value on a non-optional parameter when null is passed?
Kotlin
Nullable
Default Parameters
Get type of a variable in Kotlin
Kotlin
Instanceof
Kotlin Coroutines with returning value
Kotlin
kotlinx.coroutines
import kotlinx.android.synthetic.main.activity_main is not working
Android
Android Studio
Kotlin
Import
Android Gradle-Plugin
Suspend function 'callGetApi' should be called only from a coroutine or another suspend function
Android
Kotlin
Kotlin Coroutines
Coroutine
Coroutinescope
Unit testing coroutines runBlockingTest: This job has not completed yet
Android
Unit Testing
Kotlin
Kotlin Coroutines
Mockk
Jetpack Compose on Kotlin 1.5.0
Android
Kotlin
Android Jetpack-Compose
kotlin suppress warning deprecated for Android
Android
Warnings
Kotlin
How to turn a Mutable Collection into an Immutable one
Kotlin
How are coroutines implemented in JVM langs without JVM support?
Java
Scala
Jvm
Kotlin
Jvm Languages
WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'
Kotlin
Android Gradle-Plugin
Navigation popUpTo and PopUpToInclusive aren't clearing the backstack
Android
Kotlin
Navigation
Android Jetpack
Fragment Backstack
Unable to find method ''void com.android.build.api.extension.AndroidComponentsExtension$DefaultImpls.androidTest$default(com.android.build
Android
Kotlin
Constants in Kotlin -- what's a recommended way to create them?
Kotlin
Constants
Kotlin and new ActivityTestRule : The @Rule must be public
Android
Testing
Android Espresso
Kotlin
Idiomatic way to transform map in kotlin?
Hashmap
Kotlin
Kotlin : safe lambdas (no memory leak)?
Android
Lambda
Memory Leaks
Kotlin
Using default function implementation of interface in Kotlin
Kotlin
How to read an environment variable in Kotlin?
Environment Variables
Kotlin
lateinit modifier is not allowed on primitive type properties in Kotlin
Android
Kotlin
Extending data class from a sealed class in Kotlin
Kotlin
Data Class
Sealed Class
sealed class vs enum when using associated type
Enums
Kotlin
Sealed Class
How I can retrieve current fragment in NavHostFragment?
Android
Android Fragments
Kotlin
Android Architecture-Components
Android Architecture-Navigation
how to instantiate ViewModel In AndroidX?
Android
Kotlin
Viewmodel
Android Jetpack
Kotlin Android-Extensions
How does the reified keyword in Kotlin work?
Generics
Kotlin
Kotlin Reified-Type-Parameters
How to get number of possible items of an Enum?
Java
Kotlin
Enums
Return from lambdas or Kotlin: 'return' is not allowed here
Kotlin
Kotlin: "if item not in list" proper syntax
Kotlin
I can't reach any class member from a nested class in Kotlin
Class
Kotlin
Scope
Member
How to initialize a Thread in Kotlin?
Java
Multithreading
Kotlin
what is `open` keyword for fields in Kotlin?
Java
Kotlin
How to initialize an empty array list in Kotlin?
Arraylist
Kotlin
Indexoutofboundsexception
Print 0001 to 1000 in Kotlin. How to add padding to numbers?
Kotlin
Kotlin Coroutines: Channel vs Flow
Kotlin
Stream
Channel
Kotlin Coroutines
java.lang.NoSuchMethodError: No virtual method elapsedNow()D in class Lkotlin/time/TimeMark
Android
Kotlin
Koin
Product Flavor: Duplicate class found
Android
Android Gradle-Plugin
Kotlin
Android Productflavors
does Any == Object
Kotlin
Kotlin when with multiple values not working when value is an android view
Android
Kotlin
Difference between Delegates.notNull and lateinit Kotlin
Kotlin
How to create a JSONObject from String in Kotlin?
Json
Kotlin
How to log request and response bodies in Spring WebFlux
Spring Boot
Kotlin
Project Reactor
Spring Webflux
Which of coroutines (goroutines and kotlin coroutines) are faster?
Go
Kotlin
Coroutine
Goroutine
Kotlin Coroutines
Base64 support for different API levels
Android
Base64
Kotlin
Kotlin Extension Functions Databinding
Mvvm
Kotlin
Extension Function
how to avoid ConcurrentModificationException kotlin
Kotlin
What is the use case for flatMap vs map in kotlin
Collections
Kotlin
Flatmap
Is Kotlin Flow's Collect is only internal kotlinx.coroutines API?
Kotlin
Kotlin Flow
How to make primary key as autoincrement for Room Persistence lib
Android
Kotlin
Android Room
Extend data class in Kotlin
Inheritance
Kotlin
Abstract
Data Class
Difference between List and Array types in Kotlin
Arrays
List
Kotlin
Android Get Current timestamp?
Java
Android
Kotlin
Timestamp
Epoch
Parallel operations on Kotlin collections?
Parallel Processing
Kotlin
Kotlin Coroutines the right way in Android
Android
Async Await
Kotlin
Coroutine
What does ".()" mean in Kotlin?
Android
Object
Kotlin
Navigation Drawer
Higher Order-Functions
error: supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath
Android
Compilation
Kotlin
How to make an API request in Kotlin?
Android
Rest
Kotlin
In which situation val/var is necessary in Kotlin constructor parameter?
Android
Kotlin
How to Exponential Backoff retry on kotlin coroutines
Android
Kotlin
Async Await
Retrofit2
Kotlin Coroutines
Updated to Android Studio 3.0. Getting a "Kotlin not configured" error
Android
Android Studio
Kotlin
failed to find style 'cardView Style' in current theme
Android
Kotlin
Android Gradle-Plugin
Rendering
Android Support-Library
Does Kotlin support Java 11?
Gradle
Kotlin
Jvm
How to close the virtual keyboard from a Jetpack Compose TextField?
Android
Kotlin
Android Jetpack-Compose
Android Input-Method
Android Compose-Textfield
springboot Upgrade from 2.3.5.RELEASE to 2.4.1- ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
Spring Boot
Kotlin
Gradle
Spring Cloud
What is the Kotlin double-bang (!!) operator?
Kotlin
Kotlin Null-Safety
How can I generate random number in specific range in Android?
Java
Android
Kotlin
Random
How to get the current index in for each Kotlin
Android
For Loop
Kotlin
Format in Kotlin string templates
String Formatting
Kotlin
NullPointerException when trying to access views in a Kotlin fragment
Android
Kotlin
Kotlin Android-Extensions
How to create empty constructor for data class in Kotlin Android
Android
Kotlin
How can I get a random number in Kotlin?
Random
Kotlin
Jvm
startForeground fail after upgrade to Android 8.1
Android
Service
Kotlin
Android Notifications
Background Service
What do I use now that Handler() is deprecated?
Java
Android
Kotlin
Android Handler
Kotlin: how to pass a function as parameter to another?
Kotlin
Warning "Kotlin plugin version is not the same as library version" (but it is!)
Android
Android Studio
Gradle
Kotlin
Setting text in EditText Kotlin
Android
Kotlin
Android Edittext
What is the difference between launch/join and async/await in Kotlin coroutines
Asynchronous
Kotlin
Coroutine
Kotlin Coroutines
Kotlin's List missing "add", "remove", Map missing "put", etc?
Collections
Kotlin
How to call a function after delay in Kotlin?
Android
Kotlin
What's the Kotlin equivalent of Java's String[]?
Java
Kotlin
Convert Kotlin Array to Java varargs
Java
Kotlin
Interop
Kotlin Interop
How to make "inappropriate blocking method call" appropriate?
Kotlin
Okhttp
Kotlin Coroutines
Moshi
Place cursor at the end of text in EditText
Java
Android
Kotlin
Android Edittext
Keylistener
What does the suspend function mean in a Kotlin Coroutine?
Kotlin
Async Await
Suspend
Kotlin Coroutines
Accessing Kotlin extension functions from Java
Java
Kotlin
Extension Function
How to convert List to Map in Kotlin?
Dictionary
Kotlin
Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details
Android
Kotlin
Gradle
Build
Gradle Kotlin-Dsl
IllegalArgumentException: navigation destination xxx is unknown to this NavController
Android
Kotlin
Android Architecture-Navigation
Android Navigation
Android Jetpack-Navigation
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0
Android
Unit Testing
Gradle
Kotlin
Junit5
`break` and `continue` in `forEach` in Kotlin
Loops
Foreach
Lambda
Kotlin
Kotlin : Public get private set var
Kotlin
What is the equivalent of Java static methods in Kotlin?
Java
Kotlin
Static
What Java 8 Stream.collect equivalents are available in the standard Kotlin library?
Java
Kotlin
Collections
Java 8
Java Stream
Android Room - simple select query - Cannot access database on the main thread
Android
Crash
Kotlin
Android Studio-3.0
Android Room
Swift 'if let' statement equivalent in Kotlin
Kotlin
How to allow all Network connection types HTTP and HTTPS in Android (9) Pie?
Java
Android
Kotlin
Android 9.0-Pie
Android Network-Security-Config
In Kotlin, what is the idiomatic way to deal with nullable values, referencing or converting them
Nullable
Kotlin
Non Nullable
No Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator
Android
Kotlin
Jackson
Retrofit2
Unfortunately MyApp has stopped. How can I solve this?
Java
Android
Debugging
Kotlin
How to implement Builder pattern in Kotlin?
Design Patterns
Kotlin
Single exclamation mark in Kotlin
Kotlin
How to convert String to Long in Kotlin?
Kotlin
Idiomatic way of logging in Kotlin
Kotlin
Kotlin Logging
How to parse JSON in Kotlin?
Java
Json
Kotlin
How to clone or copy a list in kotlin
List
Copy
Kotlin
How to check "instanceof " class in kotlin?
Kotlin
Kotlin Extension
How can I resolve the error "The minCompileSdk (31) specified in a dependency's AAR metadata" in native Java or Kotlin?
Java
Android
Kotlin
Gradle
Error: Execution failed for task ':app:clean'. Unable to delete file
Android
Android Studio
Android Gradle-Plugin
Kotlin
Kotlin Android-Extensions
Why do we use "companion object" as a kind of replacement for Java static fields in Kotlin?
Kotlin
Kotlin Companion
Multiple variable let in Kotlin
Kotlin
Difference between fold and reduce in Kotlin, When to use which?
Kotlin
Reduce
Fold
Example of when should we use run, let, apply, also and with on Kotlin
Kotlin
Static extension methods in Kotlin
Static Methods
Kotlin
Try-with-resources in Kotlin
Kotlin
Extension Methods
Try with-Resources
What does 'by' keyword do in Kotlin?
Kotlin
How to access "Activity.this" in Kotlin?
Java
Android
Kotlin
Kotlin: Interface ... does not have constructors
Java
Kotlin
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
Android
Intellij Idea
Kotlin
Jvm
Corda
Difference between "*" and "Any" in Kotlin generics
Generics
Kotlin
Outdated Kotlin Runtime warning in Android Studio
Android
Android Studio
Kotlin
Kotlin Android-Extensions
Kotlin-android: unresolved reference databinding
Java
Android
Kotlin
Android Databinding
Kotlin with JPA: default constructor hell
Hibernate
Jpa
Default Constructor
Kotlin
The AsyncTask API is deprecated in Android 11. What are the alternatives?
Java
Android
Kotlin
Android Asynctask
Kotlin Coroutines
What is the equivalent of Java static final fields in Kotlin?
Java
Kotlin
Kotlin - Idiomatic way to remove duplicate strings from array?
Algorithm
Kotlin
RegisterResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Android
Android Studio
Gradle
Kotlin
Android Studio-3.0
Android - How to achieve setOnClickListener in Kotlin?
Android
Listener
Kotlin
How to check if a "lateinit" variable has been initialized?
Kotlin
Use of Boolean? in if expression
Kotlin
Null
warning: Kotlin runtime JAR files in the classpath should have the same version
Kotlin
How to write ternary conditional operator?
Kotlin
Conditional Operator
Is there a convenient way to create Parcelable data classes in Android with Kotlin?
Android
Parcelable
Kotlin
Kotlin addTextChangeListener lambda?
Android
Kotlin
Textview
Anko
kotlin version that is used for building with gradle (1.1.2-5) differs from the one bundled into the IDE plugin (1.1.2-4)
Android Studio
Kotlin
What does ?: do in Kotlin? (Elvis Operator)
Kotlin
Android P visibilityawareimagebutton.setVisibility can only be called from the same library group
Android
Kotlin
Android 9.0-Pie
Android Jetpack
How to iterate over hashmap in Kotlin?
Kotlin
Kotlin Extension
How to create an instance of anonymous class of abstract class in Kotlin?
Java
Abstract Class
Kotlin
Kotlin: How to work with List casts: Unchecked Cast: kotlin.collections.List<Kotlin.Any?> to kotlin.colletions.List<Waypoint>
List
Generics
Casting
Kotlin
How to read a text file from resources in Kotlin?
Kotlin
What is out keyword in kotlin
Generics
Kotlin
Kotlin secondary constructor
Syntax
Constructor
Kotlin
Android Room - Select query with LIKE
Android
Kotlin
Android Room
ListAdapter not updating item in RecyclerView
Android
Kotlin
Listadapter
when to use an inline function in Kotlin?
Function
Kotlin
Inline Functions
How to implement switch-case statement in Kotlin
Kotlin
Switch Statement
Unresolved reference: kotlinx
Android Studio
Kotlin
Kotlin Android-Extensions
Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7
Android
Kotlin
Android Gradle-Plugin
Effective Enums in Kotlin with reverse lookup?
Enums
Kotlin
MutableLiveData: Cannot invoke setValue on a background thread from Coroutine
Kotlin
Android Livedata
Kotlin Coroutines
Opening Android Settings programmatically
Android
Kotlin
Android Settings
How to use TypeToken + generics with Gson in Kotlin
Generics
Gson
Kotlin
Typetoken
How to catch many exceptions at the same time in Kotlin?
Kotlin
Exception
Kotlin asterisk operator before variable name or Spread Operator in Kotlin
Syntax
Kotlin
Difference between ArrayList<String>() and mutableListOf<String>() in Kotlin
Kotlin
"Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16"
Android
Android Studio
Kotlin
Property must be initialized or be abstract
Android
Kotlin
Kotlin Data Class from Json using GSON
Java
Json
Gson
Kotlin
Data Class
In Kotlin, how do I read the entire contents of an InputStream into a String?
Inputstream
Kotlin
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15
Android
Android Studio
Kotlin
Stripe Payments
"Not enough information to infer parameter T" with Kotlin and Android
Android
Kotlin
Android 8.0-Oreo
Difference between a class and object in Kotlin
Java
Android
Kotlin
Error : Program type already present: android.support.design.widget.CoordinatorLayout$Behavior
Android
Kotlin
Dagger 2
Android Coordinatorlayout
Are there constructor references in Kotlin?
Kotlin
Function Reference
Constructor Reference
Kotlin unresolved reference in IntelliJ
Intellij Idea
Jvm
Kotlin
Best way to null check in Kotlin?
Kotlin
Kotlin Null-Safety
Safeargs library doesnt generate direction class
Kotlin
Android Navigation
Android Jetpack
Kotlin Android start new Activity
Android
Kotlin
Android Intent
Android Activity
Test expected exceptions in Kotlin
Unit Testing
Kotlin
Testing
Exception
Junit4
Kotlin: Equivalent of getClass() for KClass
Java
Class
Kotlin
"Prefer to run the dagger processor over that class instead" in Kotlin
Android
Kotlin
Dagger
Override getter for Kotlin data class
Kotlin
How to create an instance of anonymous interface in Kotlin?
Java
Lambda
Kotlin
Anonymous
unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
Java
Android
Kotlin
Gradle
How to get current local date and time in Kotlin
Android
Datetime
Kotlin
Why can't 'kotlin.Result' be used as a return type?
Function
Kotlin
Return Type
Kotlin equivalent of Java's equalsIgnoreCase
Android
Kotlin
How to use @link and @code in kotlin kDoc
Documentation
Kotlin
Kdoc
android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify
Java
Android
Kotlin
Android Manifest
Android 12
How to make an Android device vibrate? with different frequency?
Java
Android
Kotlin
Vibration
Android Vibration
How to check permission in fragment
Java
Android
Kotlin
Android Fragments
Android Permissions
Extend and implement at the same time in Kotlin
Java
Kotlin
How can I create an array in Kotlin like in Java by just providing a size?
Java
Arrays
Arraylist
Kotlin
Kotlin - How to correctly concatenate a String
String
Kotlin
Kotlin: withContext() vs Async-await
Kotlin
Kotlin Coroutines
How to fix ERROR: No signature of method: build_ap86oam3dut3pxce3x49rdtma.android()?
Android
Android Studio
Kotlin
How to create an empty array in kotlin?
Arrays
Kotlin
Notify Observer when item is added to List of LiveData
Android
Kotlin
Android Livedata
Getters and Setters in Kotlin
Kotlin
Getter Setter
How to add an item to an ArrayList in Kotlin?
Kotlin
Kotlin Android-Extensions
What's Kotlin Backing Field For?
Android
Kotlin
Kotlin Android-Extensions
How to launch an Activity from another Application in Android
Java
Android
Kotlin
Android Intent
Create an instance of an abstract class in Kotlin
Kotlin
How to initialize List<T> in Kotlin?
List
Kotlin
Why kotlin gradle plugin cannot build with 1.8 target?
Gradle
Intellij Idea
Kotlin
Generic extending class AND implements interface in Kotlin
Generics
Kotlin
RequiresApi vs TargetApi android annotations
Android
Android Support-Library
Kotlin
Android Annotations
IntArray vs Array<Int> in Kotlin
Kotlin
Kotlin - Void vs. Unit vs. Nothing
Kotlin
Generics
Types
Functional Programming
Mark unused parameters in Kotlin
Suppress Warnings
Kotlin
Unused Variables
How to use spring annotations like @Autowired in kotlin?
Spring
Kotlin
How do I manage unit test resources in Kotlin, such as starting/stopping a database connection or an embedded elasticsearch server?
Unit Testing
Junit
Kotlin
Kotlin static methods and variables
Kotlin
How to use Data Binding and Kotlin in Android Studio 3.0.0
Android
Android Studio
Kotlin
Android Databinding
Android Studio-3.0
Cannot find symbol DataBindingComponent on Android Studio 3.2 Canary 16 Kotlin project
Android
Kotlin
Android Databinding
Can't create new Kotlin project after updating to Android Studio 4.2
Android
Android Studio
Kotlin
Android Studio-4.2
How to get generic parameter class in Kotlin
Generics
Kotlin
How to return multiple values from a function in Kotlin like we do in Swift?
Android
Kotlin
Why there are no concurrency keywords in Kotlin?
Java
Concurrency
Kotlin
Android Studio 3.0 - Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava/util/List'
Android Studio
Kotlin
ViewBinding vs Kotlin Android Extensions with synthetic views
Android
Kotlin
Kotlin Android-Extensions
Android Viewbinding
Type 'State<List<User>?>' has no method 'getValue(Nothing?, KProperty<*>)' and thus it cannot serve as a delegate
Android
Kotlin
Android Jetpack
Android Jetpack-Compose
How Kotlin coroutines are better than RxKotlin?
Kotlin
Rx Kotlin
Kotlin - Idiomatic way to check array contains value
Arrays
Kotlin
How to convert a Kotlin source file to a Java source file
Java
Kotlin
Code Conversion
Kotlin's Iterable and Sequence look exactly same. Why are two types required?
Kotlin
Iterable
Lazy Sequences
Singleton with parameter in Kotlin
Android
Kotlin
Room Persistence: Error:Entities and Pojos must have a usable public constructor
Android
Kotlin
Android Room
Android Architecture-Components
Not able to "findViewById" in Kotlin. Getting error "Type inference failed"
Android
Android Layout
Kotlin
Type Inference
How can I check for generic type in Kotlin
Generic Programming
Kotlin
Android N Java 8 features (Jack compiler) and Kotlin interop
Java
Android
Kotlin
Android Jack-and-Jill
Kotlin: Difference between object and companion object in a class
Object
Kotlin
Companion Object
Could not find method kapt() for arguments
Android
Gradle
Kotlin
Android Gradle-Plugin
Android Instant-Apps
In Kotlin can I create a range that counts backwards?
Range
Kotlin
Android Studio quick documentation always "fetching documentation"
Android Studio
Kotlin
Intellij Idea
Ide
Javadoc
Kotlin: Iterate through a JSONArray
Android
Json
Kotlin
kotlin.jvm.KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar
Kotlin
What is a "receiver" in Kotlin?
Kotlin
Listener for Done button on EditText?
Java
Android
Kotlin
How to sort based on/compare multiple values in Kotlin?
Comparable
Kotlin
Kotlin: Whats does "return@" mean?
Android
Rx Java
Kotlin
Difference between thread and coroutine in Kotlin
Kotlin
Kotlin Coroutines
What is the difference between init block and constructor in kotlin?
Kotlin
Constructor
Initialization Block
Better way to map Kotlin data objects to data objects
Java
Kotlin
Modelmapper
Cannot find setter for field - using Kotlin with Room database
Android
Kotlin
Android Room
HTTP Request in Android with Kotlin
Android
Rest
Http
Kotlin
how to access downloads folder in android?
Java
Android
Kotlin
Android Progressbar
Android Storage
How can I filter an ArrayList in Kotlin so I only have elements which match my condition?
List
Kotlin
Filtering
How to hide the soft keyboard inside a fragment?
Java
Android
Kotlin
Android Fragments
Android Softkeyboard
Is it possible to use Mockito in Kotlin?
Java
Mocking
Mockito
Kotlin
How can I convert a part of Java source file to Kotlin?
Java
Android
Android Studio
Kotlin
android.view.View.systemUiVisibility deprecated. What is the replacement?
Android
Kotlin
Static initialisation block in Kotlin
Java
Static
Kotlin
Initializer
How to clone object in Kotlin?
Kotlin
Clone
FragmentPagerAdapter deprecated
Android
Kotlin
Android Viewpager
Fragmentmanager
Fragmentpageradapter
How can I create "static" method for enum in Kotlin?
Enums
Static
Kotlin
How do you display a Toast using Kotlin on Android?
Android
Kotlin
What is the best way to define log TAG constant in Kotlin?
Java
Android
Kotlin
Constants
Existing 3-function callback to Kotlin Coroutines
Android
Kotlin
Kotlin Coroutines
Accidental override: The following declarations have the same JVM signature
Kotlin
Kotlin Android-Extensions
Kotlin Extension
Kotlin synthetic in Adapter or ViewHolder
Kotlin
Kotlin Android-Extensions
Can "experimental" Kotlin coroutines be used in production?
Kotlin
Coroutine
Kotlin Coroutines
Coroutines: runBlocking vs coroutineScope
Kotlin
Kotlin Coroutines
Close/hide the Android Soft Keyboard with Kotlin
Android
Android Softkeyboard
Kotlin
How to add a maven repository by url using kotlinscript DSL (build.gradle.kts)
Gradle
Kotlin
Gradle Kotlin-Dsl
Kotlin could not find the required JDK tools in the Java installation
Ubuntu
Gradle
Kotlin
Gradlew
Android Studio stuck at "Analyzing..."
Android Studio
Kotlin
Android Animation Alpha
Java
Android
Animation
Kotlin
Alpha
How to invoke external command from within Kotlin code?
Exec
Kotlin
Android: How to Enable/Disable Wifi or Internet Connection Programmatically
Java
Android
Kotlin
Wifi
Hotspot
How to extend a class that has multiple constructors in Kotlin?
Constructor
Kotlin
Package protected alternative in Kotlin
Visibility
Kotlin
throws Exception in a method with Kotlin
Java
Kotlin
Kotlin Extension
Is Kotlin "pass-by-value" or "pass-by-reference"?
Kotlin
How to define a non-ordinal enum in Kotlin?
Kotlin
Enums
How to convert String to Int in Kotlin?
Kotlin
Live Data: Candidate resolution will be changed soon
Android
Kotlin
Android Livedata
Property initialization using "by lazy" vs. "lateinit"
Properties
Kotlin
Private constructor in Kotlin
Java
Constructor
Kotlin
Visibility
Why and when to use @JvmStatic with companion objects?
Java
Android
Kotlin
Kotlin Companion
How to resolve error "Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7..." when building in Android Studio
Kotlin
How to get Context in Jetpack Compose
Android
Kotlin
Android Jetpack
Android Jetpack-Compose
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution > java.lang.reflect.InvocationTargetException (no error message)
Android
Kotlin
Android Room
Kotlin Coroutines
Kotlin doesn't see Java Lombok accessors?
Kotlin
Lombok
Println
Kotlin: Apply vs With
Kotlin
kotlin.TypeCastException: null cannot be cast to non-null type com.midsizemango.databasekotlin.Note
Android
Kotlin
Passing lambda instead of interface
Lambda
Kotlin
Round Double to 1 decimal place kotlin: from 0.044999 to 0.1
Java
Android
Kotlin
Rounding
MutableLiveData with initial value
Android
Kotlin
Android Livedata
Why a viewmodel factory is needed in Android?
Android
Mvvm
Kotlin
Viewmodel
Kodein
RecyclerView itemClickListener in Kotlin
Android
Android Recyclerview
Kotlin
2D Array in Kotlin
Arrays
Kotlin
Kotlin - creating a mutable list with repeating elements
List
Kotlin
No such property: scope for class: com.android.build.gradle.internal.variant.ApplicationVariantData
Android
Android Studio
Kotlin
Gradle
Android Gradle-Plugin
Spring Boot 2.5.0 generates plain.jar file. Can I remove it?
Java
Spring
Spring Boot
Kotlin
Gradle
Show soft keyboard for dialog
Java
Android
Kotlin
Android Softkeyboard
Android Sdk-2.1
What is the difference between crossinline and noinline in Kotlin?
Kotlin
Singleton class in Kotlin
Android
Kotlin
"Test events were not received" when run tests using Intellij
Testing
Intellij Idea
Kotlin
Junit
How to use @Parcelize now that kotlin-android-extensions is being deprecated?
Android
Kotlin
Annotations
Parcelable
Why is a generic typed property nullable?
Kotlin
What's the difference between !! and ? in Kotlin?
Kotlin
what does "::" mean in kotlin?
Android
Kotlin
onActivityResult() not called in new nested fragment API
Java
Android
Kotlin
Android Fragments
Android Nested-Fragment
Kotlin get type as string
Java
Kotlin
Kotlin - Most idiomatic way to convert a List to a MutableList
Android
Kotlin
Swap Function in Kotlin
Kotlin
activeNetworkInfo.type is deprecated in API level 28
Android
Kotlin
Deprecated
Android Connectivitymanager
Kotlin gradle Could not initialize class class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt
Javascript
Gradle
Kotlin
What is the purpose of Unit-returning in functions
Kotlin
Android Studio 3.1: Erroneous unresolved references in editor
Android
Android Studio
Kotlin
Android Studio-3.1
How to do bulk (multi row) inserts with JpaRepository?
Hibernate
Spring Boot
Kotlin
Spring Data-Jpa
Cockroachdb
What is the difference between "const" and "val"?
Constants
Kotlin
Kotlin Bytecode - How to analyze in IntelliJ IDEA?
Android Studio
Intellij Idea
Kotlin
Jvm Bytecode
Define multiple variables at once in Kotlin (e.g Java : String x,y,z;)
Variables
Kotlin
Kotlin Flow vs Android LiveData
Android
Kotlin
Android Livedata
Kotlin Coroutines
Kotlin Flow
MediaSessionCompat:Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent
Java
Android
Android Studio
Kotlin
Android Mediaplayer
material-1.5.0-alpha03\res\values-v31\values-v31.xml:3:5-94: AAPT: error: resource android:color/system_neutral1_1000 not found
Android
Kotlin
Android Recyclerview
Material Components-Android
Multiview
How to work with Maps in Kotlin
Maps
Kotlin
Equals method for data class in Kotlin
Arrays
Equals
Kotlin
Data Class
Kotlin custom attribute databinding
Kotlin
Android Databinding
How to set up Kotlin's byte code version in Gradle project to Java 8?
Gradle
Kotlin
Call super class constructor in Kotlin, Super is not an expression
Kotlin
Idiomatic way to generate a random alphanumeric string in Kotlin
Kotlin
Gradle Single vs Double Quotes
Kotlin
Gradle
Groovy
build.gradle
Gradle Kotlin-Dsl
Does Kotlin have a syntax for Map literals?
Dictionary
Kotlin
Literals
Why does this Kotlin method have enclosing backticks?
Kotlin
Methods
Keyword
Backticks
How could I split a String into an array in Kotlin?
Java
Arrays
String
Kotlin
Alarm Manager Example
Java
Android
Kotlin
Alarmmanager
How do I create an enum from a string in Kotlin?
Kotlin
compileKotlin block in build.gradle file throws error "Could not find method compileKotlin() for arguments [...]"
Android
Gradle
Kotlin
Kotlin - Throw Custom Exception
Exception
Kotlin
Kotlin - Wait function
Kotlin
Wait
How to save an image in Android Q using MediaStore?
Java
Android
Image
Kotlin
Mediastore
Kotlin: What is the difference between Apply and Also
Kotlin
Can I omit the interface methods I do not use in Kotlin?
Kotlin
How to add an item to a list in Kotlin?
List
Kotlin
Collections
Kotlin Android-Extensions
Can Kotlin data class have more than one constructor?
Constructor
Kotlin
Using Kotlin WHEN clause for <, <=, >=, > comparisons
Kotlin
Kotlin and idiomatic way to write, 'if not null, else...' based around mutable value
Android
Kotlin
Idioms
Jetpack Compose - Column - Gravity center
Android
Kotlin
Android Jetpack
Android Jetpack-Compose
Upgrading Android kotlin version to 1.5.0 throwing error message on build
Android
Kotlin
How to overcome "same JVM signature" error when implementing a Java interface?
Kotlin
Kotlin 'when' statement vs Java 'switch'
Java
Switch Statement
Kotlin
How to initialize an array in Kotlin with values?
Arrays
Kotlin
Smart cast to 'Type' is impossible, because 'variable' is a mutable property that could have been changed by this time
Kotlin
When should one prefer Kotlin extension functions?
Kotlin
Code Structure
How to convert Int to Hex String in Kotlin?
Numbers
Integer
Int
Hex
Kotlin
How to obtain all subclasses of a given sealed class?
Kotlin
How to combine Intent flags in Kotlin
Java
Android
Android Intent
Kotlin
Bitwise Operators
How do I use Java's bitwise operators in Kotlin?
Java
Kotlin
Bitwise Operators
Bitwise And
Bitwise Or
What is the difference between 'open' and 'public' in Kotlin?
Kotlin
Keyword
Public
How to run Kotlin class from the command line?
Kotlin
How to extend a data class with toString
Kotlin
Kotlin Extension
Data Class
Dagger 2 static provider methods in kotlin
Kotlin
Dagger 2
New Gradle Sync is not supported due to containing Kotlin modules using an unsupported plugin version
Android
Android Studio
Gradle
Kotlin
Flutter
What is the difference between var and val in Kotlin?
Kotlin
Variables
How to create an anonymous implementation of an interface?
Interface
Kotlin
kotlin data class + bean validation jsr 303
Jpa
Bean Validation
Kotlin
Spring Data-Rest
Data Class
Private getter and public setter for a Kotlin property
Java
Kotlin
Kotlin Interop
Why doesn't Kotlin allow to use lateinit with primitive types?
Initialization
Kotlin
Primitive
Unit testing Room and LiveData
Android
Unit Testing
Kotlin
Android Room
Android Architecture-Components
How I can use callback in Kotlin?
Java
Android
Xml
Kotlin
Listener
ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1
Android
Android Studio
Kotlin
Data Binding
Antlr4
How do I do a "break" or "continue" when in a functional loop within Kotlin?
Loops
Functional Programming
Break
Kotlin
Continue
Kotlin: Difference between constant in companion object and top level
Kotlin
Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException
Android
Kotlin
Sdk
Ads
How to create constructor of custom view with Kotlin
Android
Constructor
Kotlin
Dollar Sign Character in Strings
String
Templates
Kotlin
Kotlin: Use a lambda in place of a functional interface?
Java
Intellij Idea
Lambda
Kotlin
Kotlin sequence "skip" first N entries
Kotlin
Sequences
What is the difference between a normal class and a data class in Kotlin?
Kotlin
Your project requires a newer version of the Kotlin Gradle plugin. (Android Studio)
Flutter
Android Studio
Kotlin
Gradle Kotlin-Dsl
How do I initialize Kotlin's MutableList to empty MutableList?
Kotlin
Volatile properties in Kotlin?
Kotlin
How to access Kotlin companion object in Java?
Java
Kotlin
Reading console input in Kotlin
Input
Console
Stdin
Kotlin
How to convert/transform a collection to another collection by element's property?
Collections
Filter
Kotlin
Kotlin Activity cannot be extended. This type is final, so it cannot be inherited
Kotlin
Kotlin Android-Extensions
ext in buildscript can not be recognised by Gradle Kotlin DSL
Gradle
Kotlin
build.gradle
Gradle Kotlin-Dsl
isInitialized - Backing field of lateinit var is not accessible at this point
Java
Kotlin
Kotlin Lateinit
Call Kotlin suspend function in Java class
Java
Kotlin
Kotlin Coroutines
Why do I have to return Unit.INSTANCE when implementing in Java a Kotlin function that returns a Unit?
Java
Kotlin
Kotlin Interop
How can I represent a "many to many" relation with Android Room when column names are same?
Android
Kotlin
Android Room
Android Architecture-Components
Kotlin & Spring Boot @ConfigurationProperties
Spring
Spring Boot
Kotlin
Kotlin Error: Dagger does not support injection into private fields
Android
Dependency Injection
Kotlin
Dagger 2
Dagger
How to Pass custom object via intent in kotlin
Android
Android Intent
Kotlin
Kotlin Android-Extensions
Templates escaping in Kotlin multiline strings
String
Kotlin
Syntax
How do I write to a file in Kotlin?
Kotlin
File Writing
Renaming "java" directory to "kotlin" in Android Studio
Java
Android
Kotlin
Android Gradle-Plugin
What does the arrow ("->") operator do in Kotlin?
Operators
Kotlin
IllegalArgumentException: Parameter specified as non-null is null
Android
Exception
Null
Kotlin
Android vibrate is deprecated. How to use VibrationEffect in Android>= API 26?
Java
Android
Kotlin
Android 8.0-Oreo
Android Vibration
How do I run a block of code if a nullable type is null?
Kotlin
Kotlin Null-Safety
Error:Execution failed for task ':app:kaptDebugKotlin'
Android
Kotlin
Dagger 2
Extension fields in Kotlin
Kotlin
Kotlin Android print to console
Android
Printing
Kotlin
Kotlin Remove all non alphanumeric characters
Kotlin
Kotlin Android-Extensions
Boolean - Int conversion in Kotlin
Kotlin
Kotlin data class copy method not deep copying all members
Kotlin
Copy
Deep Copy
Data Class
Check your module classpath for missing or conflicting dependencies
Java
Kotlin
Intellij Idea
Jvm
Kotlin Multiplatform
Sort collection by multiple fields in Kotlin
Kotlin
Get string extra from activity Kotlin
Android
Kotlin
How do I create an enum from an Int in Kotlin?
Kotlin
Enums
Default interface methods are only supported starting with Android 7.0 (Nougat)
Android
Java 8
Kotlin
Is there a didSet/willSet analog in Kotlin?
Properties
Kotlin
Didset
Kotlin File vs Class. Whats the difference?
File
Class
Kotlin
Run single kotlin class with main function in android studio
Android
Android Studio
Kotlin
Main
How to access values from strings.xml
Android
Kotlin
ERROR : error.NonExistentClass Kotlin In multi module Dagger project
Android
Kotlin
Dagger 2
Multi Module
Using return inside a lambda?
Lambda
Kotlin
java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files
Android
Build
Continuous Integration
Kotlin
Gitlab
java.lang.IllegalArgumentException : Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull
Android
Kotlin
Illegalargumentexception
Usage of Jackson @JsonProperty annotation for kotlin data classes
Java
Json
Jackson
Kotlin
Deserialization
How to assign a null value to a function type variable in Kotlin?
Function
Function Pointers
Kotlin
Kotlin and discriminated unions (sum types)
Kotlin
Algebraic Data-Types
Discriminated Union
string array literal ? How do I code it simply?
Arrays
Kotlin