https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
android
  • a

    anthonyandroid

    08/03/2017, 7:48 AM
    using kotlin 1.1.3-2 today and when building my project the Android Studio start to complain:
    kotlin.jvm.internal.FunctionReference.<init>(ILjava/lang/Object;)V
    any way to fix?
    k
    f
    3 replies · 3 participants
  • d

    denis.shakinov

    08/03/2017, 8:11 AM
    1.1.3-2 is the last stable version, why shoudn’t anyone use it?
    ➕ 1
    d
    k
    2 replies · 3 participants
  • s

    scruffyfox

    08/03/2017, 1:28 PM
    anyone here used
    ViewModel
    with
    AsyncTask
    to update UI and handle config-changes?
    b
    n
    5 replies · 3 participants
  • b

    bajicdusko

    08/05/2017, 6:31 PM
    Hey people, after each clean of the project I’m getting a dozen of ‘unresolved reference` errors pointing to
    apply plugin: 'kotlin'
    library-module in android studio. After second build everything is ok, and each following build, however building after clean produces errors. I gotta feeling that classes are not generated at compile time, however, android studio does not show any error in the editor and “unresolved” classes can be navigated without problems. There is one question on SO with similar problem, but apparently, new version fixed this: https://stackoverflow.com/questions/35798993/unresolved-reference-kotlin-needs-2-builds-after-clean-to-pick-up-code-when-usi I’m using
    apply plugin: 'kotlin-kapt'
    for dagger, parceler and requery processing.
    ext.kotlin_version = '1.1.3-2
    com.android.tools.build:gradle:3.0.0-alpha9
    AS 3 Cannary 9
    r
    2 replies · 2 participants
  • p

    Paul Woitaschek

    08/07/2017, 7:10 AM
    I found a closed bugreport but it seems it's happening again: https://youtrack.jetbrains.com/issue/KT-12015
    o
    v
    +1
    5 replies · 4 participants
  • v

    v79

    08/07/2017, 5:06 PM
    I was beginning to think Jake was heading to JetBrains.
    s
    1 reply · 2 participants
  • k

    karelpeeters

    08/07/2017, 5:53 PM
    Pardon my ignorance, but who is Jake Wharton? It looks like he did some presentations about Kotlin, but could someone explain?
    :trollface: 12
    😂 8
    d
    s
    +1
    4 replies · 4 participants
  • j

    jw

    08/07/2017, 5:54 PM
    He's me!
    😂 17
    👍 26
    😅 6
    a
    r
    2 replies · 3 participants
  • c

    codeslubber

    08/08/2017, 3:25 AM
    are there any good android/coroutine examples floating around…?
    p
    2 replies · 2 participants
  • d

    dalexander

    08/08/2017, 3:02 PM
    That’s sort of the basic idea, but it can start to get pretty complicated when you need to restore state, but there are some libraries out there that already help with that kind of application structure. Conductor by Blueline Labs is one example.
    n
    1 reply · 2 participants
  • j

    juliocbcotta

    08/08/2017, 8:41 PM
    🤔 humm… looks interesting but I think it will not solve my problem… I need to validate stuff… like if the email EditText has a valid email and in case of error set the error in the TextInputLayout…
    k
    d
    2 replies · 3 participants
  • r

    rkeazor

    08/09/2017, 12:37 PM
    Hey guys, if there are any Android devs who are looking for work at a awesome company , with good pay and compensation. Slack Me! If your around Washington DC/ Maryland/VA or able to relocate preferable
    o
    1 reply · 2 participants
  • l

    lpirro

    08/09/2017, 3:58 PM
    Kotlin + RxJava + Architecture Components: https://github.com/googlesamples/android-architecture-components/tree/master/BasicRxJavaSampleKotlin
    k
    1 reply · 2 participants
  • b

    bill1550

    08/09/2017, 9:36 PM
    A upgraded AS to 3.0 Beta 1 and my Kotilin plugin to 1.2-M2-release-Studio3.0-1 and changed my Kotlin version in gradle to 1.2-M2. However, I get an event saying "Outdated Kotlin Runtime, you version of Kotlin runtime in 'kotlin-stdlib-1.2-M1"..." . Any idea what other config I need to update?
    o
    y
    2 replies · 3 participants
  • s

    scruffyfox

    08/10/2017, 10:39 AM
    i think it has something to do with
    addToBackStack
    because if i change the code so its always replacing the fragment (overridden the
    onBackPressed
    method) then its fine, real weird
    s
    3 replies · 2 participants
  • a

    alouanemed

    08/10/2017, 1:22 PM
    Do I have to change something in order for butterknife work with kotlin ? I am getting this err : Caused by: kotlin.UninitializedPropertyAccessException: lateinit property introIndicator0 has not been initialized
    @BindView( R.id.imageview_welcome_intro_indicator_0) lateinit var introIndicator0: ImageView
    k
    r
    +1
    13 replies · 4 participants
  • m

    Marc

    08/10/2017, 1:23 PM
    someone facing issues with the new AS3 beta 1 ?
    m
    a
    +1
    6 replies · 4 participants
  • a

    alouanemed

    08/10/2017, 1:51 PM
    should I be using : generateStubs = true ?
    k
    2 replies · 2 participants
  • s

    stasbar

    08/10/2017, 4:45 PM
    Hello guys. Does Kotlin support lazy init variable with arguments ? In other words is it possible to simplify this construct ?
    object Utils {
            private var testDevices: Array<String>? = null
    
            private fun getTestDevices(context: Context): Array<String> {
                return testDevices ?: context.resources.getStringArray(R.array.testDevices)
            }
        }
    r
    2 replies · 2 participants
  • r

    rkratnesh852

    08/11/2017, 7:00 AM
    yes i can access it thanks andrey but if any one have like ebook or usefull other pdf then it will be good for offline mode.
    k
    3 replies · 2 participants
  • b

    bdeg

    08/11/2017, 10:26 AM
    Does anyone know a workaround for Instrumentation test with Kotlin and realm? I have issue running android test with Kotlin https://issuetracker.google.com/issues/62152896 https://github.com/realm/realm-java/issues/4662
    v
    3 replies · 2 participants
  • s

    smilecs

    08/11/2017, 3:41 PM
    please quick question can i bind an IntentService to an Activity?
    d
    2 replies · 2 participants
  • o

    ossama

    08/11/2017, 4:00 PM
    Help me here please I am using the MVP architecture, the fragments are used as the View component of the MVP. What about my activities ? What should they stand for in the MVP ?
    r
    r
    18 replies · 3 participants
  • r

    ra1nmak3r

    08/11/2017, 10:13 PM
    Hey ya, I have some resources that I'd like to put in my application. They are like 500 items and every item has 3 properties (a, b, c). My question is: should I use Room (SQLITE) or Xml Resources? I want to know which one is better in performance/storage. Anyway, they will need to be a local resource.
    r
    3 replies · 2 participants
  • r

    ra1nmak3r

    08/11/2017, 11:03 PM
    I thought I might ask here because of the Android tag. Thanks and sorry.
    a
    2 replies · 2 participants
  • j

    jw

    08/11/2017, 11:05 PM
    We tend to stick to Android topics related directly or indirectly to Kotlin as otherwise the channel would devolve into basically just a general Android chat which quickly becomes overwhelming.
    👍 11
    s
    1 reply · 2 participants
  • b

    bdeg

    08/12/2017, 4:15 PM
    Hi guys, i have issue running androidTest with kotlin, i switched from android studio 3.0 to 2.3.3 i have this error message: Test running failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException' Empty test suite. i tried everything i could find on the internet about this error message but nope. here is my gradle file
    r
    1 reply · 2 participants
  • a

    audhil

    08/13/2017, 2:23 PM
    ext.kotlin_version = '1.1.3-2'
    classpath 'com.android.tools.build:gradle:2.3.3'
    
    and
    
    kapt "com.android.databinding:compiler:2.3.0"
        compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
    r
    v
    2 replies · 3 participants
  • a

    adams2

    08/13/2017, 9:30 PM
    how do I do multiple queries in a single transaction with Room?
    a
    3 replies · 2 participants
  • a

    adams2

    08/13/2017, 10:38 PM
    where do you keep your dagger components when using kotlin? member of your Application class? standalone var?
    g
    m
    2 replies · 3 participants
Powered by Linen
Title
a

adams2

08/13/2017, 10:38 PM
where do you keep your dagger components when using kotlin? member of your Application class? standalone var?
g

gildor

08/14/2017, 1:07 AM
Member of Application class looks much more clear for me, instead global state
👍 2
m

myanmarking

08/14/2017, 12:21 PM
i have a separate library module for that, and don’t expose graph to dependents. everything is injected view AndroidInjection
View count: 1