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
  • s

    Slackbot

    05/22/2018, 3:23 PM
    This message was deleted.
    p
    t
    2 replies · 3 participants
  • t

    Tyler

    05/22/2018, 3:58 PM
    why is that the case?
    g
    1 reply · 2 participants
  • a

    azri

    05/23/2018, 2:54 AM
    Hi. Anyone here facing the problem where the kotlinx synthetic references frequently become unresolvable in Android Studio 3.1.2? I find myself having to click sync gradle every now & then. Also happens to my team members.
    🙋‍♂️ 4
    a
    12 replies · 2 participants
  • k

    Kulwinder Singh

    05/23/2018, 3:48 AM
    if it's not fixed after sync you can try invalidate cache and restart
    a
    3 replies · 2 participants
  • m

    memphis

    05/23/2018, 9:20 AM
    How to return an Observable from a Completable? I’ve tried this but I couldn’t get mObservableData on subscription
    return data.flatMapCompletable{...}.andThen(mObservableData)
    g
    a
    +1
    64 replies · 4 participants
  • j

    Jorge Riveiro

    05/23/2018, 10:33 AM
    Hi everyone, i try create a chat in Android but i need a library to create a nice chat. My problem is that i cant find a library that allows me to create the chat and that is compatible with Android 27. Does anyone know that i can use? Thanks!!
    :stackoverflow: 4
    :google: 2
    a
    d
    +2
    6 replies · 5 participants
  • s

    shivaramaki

    05/24/2018, 9:39 AM
    I m using kotlin Fuel , when i make a service call using fuel i get the 404 exception but if i try to access them via browser i get the response
    e
    4 replies · 2 participants
  • t

    Tyler

    05/24/2018, 3:32 PM
    So I just used wrote the line
    val a = this
    in a function, and android studio tells me that this is a 'ticket', but I can't find anything referring to tickets on the Kotlin docs, or the Android docs, can someone tell me what it is? The only thing that appears with a return value when typing a. is a suggestion to call the function itself.
    g
    1 reply · 2 participants
  • n

    nickk

    05/24/2018, 4:17 PM
    While my project compiles fine, the Android Studio IDE (3.1.2) started to behave very strangely. It says
    AppCompatActivity
    cannot be resolved or “Unnecessary non-null check for [ERROR TYPE]“. Everyrthing that should be imported from
    kotlinx.android.sythetic
    appears in red. Any ideas? I cannot understand what triggered this. I am trying to use some code of my own from an .aar file, but this seemed to work fine. (Invalidate caches etc did not fix anything)
    l
    k
    4 replies · 3 participants
  • s

    smilecs

    05/25/2018, 7:48 AM
    just wondering if the parcelize on kotlin extensions is no longer in experimental
    g
    j
    3 replies · 3 participants
  • m

    monotonewang

    05/25/2018, 7:54 AM
    where is kotlin gsonFromat
    g
    1 reply · 2 participants
  • a

    arekolek

    05/25/2018, 1:11 PM
    foo.any { it.toLowerCase() == bar.toLowerCase() }
    😛
    🇳🇴 1
    👍 1
    o
    k
    2 replies · 3 participants
  • a

    adam-mcneilly

    05/26/2018, 3:37 PM
    https://kotlinlang.org/docs/reference/java-interop.html#getclass
    t
    2 replies · 2 participants
  • d

    damian

    05/26/2018, 5:11 PM
    It's telling you that "`V` is nullable, therefore
    viewModel
    could be null, which means we can't necessarily get its class". You probably want the upper bound on
    V
    to be non-nullable - change the class header to
    class ViewModelProviderFactory<V : Any>
    ✅ 2
    👍 1
    💯 1
    t
    1 reply · 2 participants
  • l

    lawlorslaw

    05/27/2018, 8:52 PM
    can i access the main function from within a file in the
    java
    directory? if so, how do i do that?
    a
    4 replies · 2 participants
  • a

    abhinav42

    05/28/2018, 2:18 AM
    hey y'all can I get some help with redux (using kotlin)
    1 reply · 1 participant
  • i

    iex

    05/28/2018, 6:22 AM
    I tried declaring the field as transient, with
    @delegate:Transient
    - still the same
    g
    2 replies · 2 participants
  • i

    iex

    05/28/2018, 6:23 AM
    the fields are also declared explicitly as optionals, e.g.
    @delegate:Transient
    val uri: String? by lazy { foo() }
    g
    1 reply · 2 participants
  • n

    Niebin

    05/28/2018, 8:02 AM
    the error is occored on the 19 line kotlin.KotlinNullPointerException
    g
    2 replies · 2 participants
  • s

    Slackbot

    05/28/2018, 8:05 AM
    This message was deleted.
    n
    1 reply · 2 participants
  • r

    rkeazor

    05/28/2018, 8:05 AM
    lol alot is going ion in that one method lol. but I think more than likely the viewpager isn’t ready
    n
    1 reply · 2 participants
  • n

    Niebin

    05/28/2018, 8:28 AM
    have someone know it ?
    d
    4 replies · 2 participants
  • a

    arekolek

    05/28/2018, 3:01 PM
    You keep saying
    Captor
    but it looks like you mean
    Matcher
    (your snippet uses a matcher even)
    m
    1 reply · 2 participants
  • t

    Tyler

    05/28/2018, 3:30 PM
    Hi, I've been using Volley to send HTTP requests to my back-end. However this is causing the application to react slowly since it has to wait for the response in order to actually do anything. I want to make a query when the app first loads and use the data at a later point instead, but I'm unsure how I would go about that. (presumably setting some global variable or smthn) any advice?
    m
    g
    3 replies · 3 participants
  • k

    kartikpatodi

    05/28/2018, 9:30 PM
    I just started converting my app to Kotlin and used androidx with jettifier But it doesn't seem to work and gines an
    Error: entry
    error when try to run on emulator or phone via adb? Currently using Canary 15 Dependencies •Picasso •FastAndroidNetworking When i enable both androidx and jettifier in gradle properties file it gives the above mentioned error And when i use only the androidx then
    support-v4 aldready exists
    is the error (I think it is due to Picasso) Any ideas? PS: Naive android developer
    a
    3 replies · 2 participants
  • n

    Niebin

    05/29/2018, 1:20 AM
    I have a problem when I call the "vp_fragments!!.adapter = tradeFragAdapter" It occur "java.lang.IllegalStateException: Fragment already added: HomeCNYFrag{38e11c #1 id=0x7f09037f android😒witcher:2131297151:0}" but its good in java code .Anyone have a idea to solve this problem,
    r
    2 replies · 2 participants
  • w

    waqas

    05/29/2018, 3:32 PM
    One solution is change api to accept lambda instead of String msg like this
    fun debug(tag: String, msg: () -> Any)
    , but how will that API look like for java consumers 🤔
    d
    4 replies · 2 participants
  • s

    Slackbot

    05/30/2018, 4:52 AM
    This message was deleted.
    h
    h
    3 replies · 3 participants
  • r

    Rasmus Franke

    05/30/2018, 7:43 AM
    Hey guys, trying to apply a consistent style guide for our team using Android studio and https://android.github.io/kotlin-guides/style.html seems more "official" than the included jetbrains one. But is there an importable style xml anywhere that matches it?
    g
    6 replies · 2 participants
  • r

    Rasmus Franke

    05/30/2018, 8:56 AM
    they are pretty different from Wharton's
    g
    3 replies · 2 participants
Powered by Linen
Title
r

Rasmus Franke

05/30/2018, 8:56 AM
they are pretty different from Wharton's
g

gildor

05/30/2018, 1:39 PM
What is "pretty different"?
r

Rasmus Franke

05/30/2018, 1:59 PM
Wildcard imports for one
g

gildor

05/30/2018, 11:21 PM
Wildcard just doesn't restricted by Kotlin style guide, but also not forced too, so no contradiction there
View count: 1