https://kotlinlang.org logo
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
  • e

    Erinel

    03/21/2018, 3:42 PM
    Hi, has anyone tried to make headless testing with espresso without using Jenkins, Bamboo, etc. for continuous integration?
    t
    r
    • 3
    • 3
  • n

    Nishant Dande

    03/21/2018, 9:08 PM
    Hi Guys, Is there any 3d model rendering engine or framework available for Kotlin like scenekit for iOS
    c
    r
    • 3
    • 3
  • h

    hiennguyen1001

    03/23/2018, 4:11 AM
    Hello guys, How to convert an ArrayList java to a List Kotlin? Please help me!
    g
    • 2
    • 1
  • e

    edwardwongtl

    03/23/2018, 4:17 AM
    Nothing need to do, just a simple casting is enough
    h
    • 2
    • 4
  • n

    natiginfo

    03/24/2018, 11:26 AM
    Hi! I have question regarding to memory leaks. As you know when we use fragments, we should release view references onDestroyView() method. In Java, I just use null. I wonder how we can achieve this in Kotlin? Is there specific tips for preventing memory leaks on Android when we use Kotlin? It'd be great if there's explanation for Fragment case. Thanks beforehand!
    r
    • 2
    • 1
  • p

    pal0810

    03/25/2018, 1:38 PM
    can anyone recommend me a fast track course for android using kotlin. ps: wanna build an online laundry platform
    g
    • 2
    • 1
  • f

    fmcauley

    03/25/2018, 8:06 PM
    http://androidsnacks.com
    g
    • 2
    • 1
  • j

    Joe

    03/26/2018, 10:22 AM
    I am using Moshi to deserialize json from our server but I have come across an issue I’m sure has a solution, I just can’t see it. Over the socket, we are send json that, at the top level, has three fields:
    {
        "data_type": "<actual_data_type>",
        "data_id": "<actual_data_id>",
        "data": <data_object>
    }
    The issue is that the
    data
    can actually be several different objects based on what
    data_type
    is can I’m not sure how to pass that information into the adaptor for
    Data
    . I’ve tried a couple different things, but it just gets closer and closer to me parsing the whole thing myself, which seems to defeat the point. Is there a way to pass information from one adaptor to another?
    e
    • 2
    • 2
  • j

    joseph_ivie

    03/26/2018, 9:56 PM
    Does anyone here really use Anko, or is it just me? I've been curious about that for a while.
    r
    j
    • 3
    • 3
  • d

    Daniel Morgan

    03/26/2018, 10:22 PM
    any kotlin android books, for complete android dev beginners?
    s
    • 2
    • 2
  • j

    joseph_ivie

    03/27/2018, 3:16 AM
    On a side note, has anyone used Intel's Multi OS Engine? It looks like it could be pretty nice. I've been thinking about making a cross-platform view DSL for it.
    s
    • 2
    • 5
  • c

    Cihan Soylular

    03/27/2018, 1:56 PM
    Guys did you done before News Application with Kotlin? I have JSON for this but i need a little bit help
    g
    • 2
    • 1
  • m

    mannodermaus

    03/27/2018, 2:15 PM
    Haven’t verified against alpha 8 yet, but that validation is tracked in another ticket
    j
    • 2
    • 6
  • k

    kenkyee

    03/28/2018, 11:17 AM
    It's an extra lint warning. You should have your Java version set to 8 anyways with android studio 3
    j
    • 2
    • 1
  • m

    m3mphisdev

    03/28/2018, 2:18 PM
    When I apply plugin
    apply plugin: 'kotlin-kapt'
    I get this error 3rd-party Gradle plug-ins may be the cause
    j
    • 2
    • 1
  • d

    dimsuz

    03/28/2018, 3:28 PM
    Android Studio 3.1. now prints this warning:
    Configuration 'compile' is obsolete and has been replaced with 'implementation'.
    But
    git grep compile
    in my whole source tree gives 0 results. So I assume this is some gradle plugin contributing those outdated statements. Is there any way to quickly spot which one (without manually removing them one-by-one?)
    l
    m
    • 3
    • 3
  • k

    kenkyee

    03/29/2018, 10:55 AM
    Probably should upgrade your android studio to 3.1.
    c
    • 2
    • 1
  • r

    romane

    03/29/2018, 3:28 PM
    Guys, I have a problem with synthetic properties generation here. I moved some layouts to the debug source set, however the kotlin plugin won't generate the synthetic properties for the debug build type, ex: it only generates kotlix.android.synthetic...main and not kotlix.android.synthetic...debug Any help really appreciated.
    d
    • 2
    • 2
  • g

    gildor

    03/30/2018, 3:20 AM
    Anko coroutines? There is very basic usage of coroutines in Anko itself. Maybe you mean kotlinx.coroutines? A lot of people played. Personally don’t see any big pain points, maybe testing tools for Rx2 are more mature, Anyway, maybe better to ask in #coroutines
    k
    • 2
    • 5
  • v

    Viral

    03/30/2018, 5:26 AM
    Hello all what is the difference between <Any> and <*> for generics
    g
    s
    • 3
    • 2
  • s

    Scott

    03/30/2018, 7:13 AM
    Hi all, Kotlin documentation can’t use html tags? like ul or li and so on
    l
    • 2
    • 2
  • o

    o.semen

    03/30/2018, 1:05 PM
    so I figured out that at runtime
    toolbarLayout
    is toolbar I’m looking for but it is a
    View
    as included might be any view… but how can I get it as
    Toolbar
    without casting ?
    l
    • 2
    • 7
  • o

    oday

    03/31/2018, 5:47 PM
    hey guys, what do you use as a logging/crashes service?
    l
    k
    • 3
    • 2
  • t

    Tarun

    04/02/2018, 6:38 AM
    ohkk, I was assuming it will be done automatically as compile time error somehow interprets that it will be done via compiler...🤔 Thanks for the heads-up...👍
    g
    • 2
    • 3
  • d

    Davor

    04/03/2018, 10:41 AM
    Does anyone know if dagger2 can return functions from modules? I have a function type
    (DachshundTabLayout) -> AnimatedIndicatorInterface
    that i provide in my module and should be able to get from my component but compiler throws an error saying that the type
    Function1<? super com.kekstudio.dachshundtablayout.DachshundTabLayout,? extends com.kekstudio.dachshundtablayout.indicators.AnimatedIndicatorInterface>
    cannot be provided without an @Provides annottated method
    m
    • 2
    • 2
  • r

    rkeazor

    04/03/2018, 7:22 PM
    hey can android kotlin extensions be mocked?
  • b

    BillKarv

    04/03/2018, 10:05 PM
    hello guys, do you know a good example - tutorial of mvp implementation in android + kotlin + dagger 2 ?
    d
    u
    • 3
    • 3
  • m

    Manjee

    04/04/2018, 2:43 AM
    I would like to create a mind map app using Kotllyn. What should I study? Can I study android canvas?
    g
    • 2
    • 6
  • g

    ghosalmartin

    04/04/2018, 4:42 PM
    cause someones passed it to a fragment which is crashing when it the activity is being recreated
    g
    • 2
    • 1
  • j

    jakubgruber

    04/05/2018, 7:34 AM
    Sorry for bothering. Found another problem:
    java.lang.ClassNotFoundException: com.sun.tools.javac.util.Context
    g
    • 2
    • 2
Powered by Linen
Title
j

jakubgruber

04/05/2018, 7:34 AM
Sorry for bothering. Found another problem:
java.lang.ClassNotFoundException: com.sun.tools.javac.util.Context
g

gildor

04/05/2018, 7:42 AM
Looks like your problem: https://stackoverflow.com/questions/43902679/compilereleasekotlin-fails-with-java-lang-classnotfoundexception-com-sun-tools
j

jakubgruber

04/05/2018, 8:01 AM
Thank you for your effort. I switched to Oracle Java and it throws reasonable exception in Room configuration. It should be possible to solve now. 🙂
View count: 3