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

    dan.the.man

    11/02/2018, 2:58 PM
    What are people doing to synchronize an arraylist with Kotlin?
    l
    • 2
    • 1
  • j

    Juan

    11/02/2018, 7:13 PM
    How can I send a get http request?
    :stackoverflow: 8
    :google: 10
    d
    s
    +3
    • 6
    • 5
  • g

    ghedeon

    11/03/2018, 5:40 PM
    Not kotlin related, any consensus on BottomNavigation implementation? With ViewPager or without? Provided examples, where they create a new fragment on every tab click are pretty detached from reality.
    :kotlin-flag: 2
    o
    r
    • 3
    • 4
  • k

    kenkyee

    11/04/2018, 2:19 AM
    It works for me
    i
    • 2
    • 2
  • s

    Shashank Gupta

    11/04/2018, 4:32 AM
    Hi, I have a query: in case of multi-threading, why subscribeOn() does not work for PublishSubject?
    :stackoverflow: 3
    r
    p
    • 3
    • 2
  • m

    MaTriXy

    11/04/2018, 3:25 PM
    Question about
    MatchGroupCollection
    and
    getMatchResultNamedGroup
    On which Android version is it supported if any?
    :stackoverflow: 1
    d
    d
    • 3
    • 4
  • i

    itnoles

    11/04/2018, 11:49 PM
    l
    h
    • 3
    • 9
  • g

    gsala

    11/05/2018, 11:37 AM
    is
    @Parcelize
    still experimental?
    g
    p
    +4
    • 7
    • 19
  • b

    Ben Piatt

    11/05/2018, 9:13 PM
    Not really a Kotlin question, but more of an Android filesystem question: Is there a way to access last accessed time for a file on Android? For example, activating ‘atime’ tracking. On Linux filesystems, one can generally use stat or lstat to get the value: long lastAccessTime = Os.lstat(file.getAbsolutePath()).st_atime; but it seems that if the OS doesn’t actually track it, it will just return a default value
    :stackoverflow: 6
    :google: 7
    n
    • 2
    • 1
  • t

    timothy.paetz

    11/06/2018, 3:05 AM
    Google forced me to update dependencies in order to get the build to sync. Oh how I love google for forcing this on me...
    r
    • 2
    • 1
  • s

    Slackbot

    11/06/2018, 7:36 AM
    This message was deleted.
    s
    • 2
    • 1
  • b

    BMG

    11/06/2018, 12:59 PM
    I’m not sure if this is the right channel to ask but let me give it a try. Apks built with Kotlin 1.3.0 are failing in dex2oatd class and method verification while building AOSP ROM. Looks like there is some issue with newly introduced unsigned types or inline classes in AOSP build. But we are not using both of those features. Even though APKs are built and working fine, they are failing in dex2oatd verification in AOSP ROM build. Error is,
    dex2oatd F art/compiler/driver/compiler_driver.cc:661] Had a hard failure verifying all classes, and was asked to abort in such situations. Please check the log.
    dex2oatd Fdex2oatd I art/runtime/verifier/method_verifier.cc:333] Verification error in int kotlin.UShort.compareTo(java.lang.Object)
    dex2oatd I  art/runtime/verifier/method_verifier.cc:333] int kotlin.UShort.compareTo(java.lang.Object) failed to verify: int kotlin.UShort.compareTo(java.lang.Object): [0x6] invoke-super/virtual can't be used on private method int kotlin.UShort.compareTo-xj2QHRw(short)
    dex2oatd I art/runtime/verifier/method_verifier.cc:333] 
     art/runtime/runtime.cc:366]Runtime aborting...
    
    dex2oatd W art/runtime/class_linker.cc:3119] Verification failed on class kotlin.UShort in /system/priv-app/app.apk:classes2.dex because: Verifier rejected class kotlin.UShort due to bad method int kotlin.UShort.compareTo(java.lang.Object)
    Any idea why this might happen? Everything works fine till Kotlin 1.2.70
    a
    • 2
    • 1
  • j

    jurajsolarml

    11/07/2018, 11:47 AM
    Hello, please help .I'm writing bugs when installing. How should I proceed? I tried unistall and admin interface the same error 😞 (Kotlin,AS 3.2.1) Thank You
    t
    e
    • 3
    • 4
  • j

    Jakub

    11/07/2018, 8:48 PM
    I’m not really good at network security aspects of Android. Could you recommend any source of knowledge / course for dummies explaining stuff like SSL / TLS, Certificate pinning, KeyStore, etc.?
    :google: 3
    :stackoverflow: 2
    👍 1
    j
    • 2
    • 1
  • n

    neuber

    11/08/2018, 3:56 PM
    Can anyone help me
    m
    n
    +2
    • 5
    • 18
  • c

    ClaudiuB

    11/09/2018, 5:49 AM
    When should I use
    context!!
    versus
    context?
    in my Fragments? I'm thinking using
    context!!
    in my lifecycle methods and
    context?.let{}
    where I get callbacks
    g
    d
    +4
    • 7
    • 32
  • h

    hmole

    11/09/2018, 4:41 PM
    Does anyone know a convenient way to get current selected flavor inside gradle script?
    l
    • 2
    • 2
  • s

    Sergey Shnifer

    11/09/2018, 7:25 PM
    Hello! I just started to learn both Kotlin and Android with "Kotlin for Android developments". Could you advice some basic and easy to read book about Android environment? ( i have some general programming experience)
    i
    • 2
    • 1
  • c

    ClaudiuB

    11/12/2018, 5:11 AM
    Can Android libraries made with kotlin be used in Java projects? And do things like extension functions carry through in your kotlin projects using the library?
    g
    • 2
    • 1
  • u

    ursus

    11/12/2018, 5:56 AM
    Hi guys, whats rx equivalent of android handler.post? i.e I have a object that has it own single threaded scheduler on which it has a queue loop. bla bla sometimes recursion happens, I need to post a runnable to the end of the queue
    a
    • 2
    • 1
  • a

    Alex

    11/12/2018, 11:36 AM
    Did someone get kotlin scratch files running in android studio? I am getting this error:
    Cannot access script base class 'kotlin.script.templates.standard.ScriptTemplateWithArgs'. Check your module classpath for missing or conflicting dependencies
    Seems like I misconfigured. I also cannot switch to the Scratchfiles view as described for intellij here https://www.jetbrains.com/help/idea/2016.3/scratches.html
    a
    • 2
    • 2
  • c

    christianbecker

    11/12/2018, 12:01 PM
    Hey, I have a hard time using
    Parcelize
    from the Kotlin Android Extensions with Gradle KTS. I just created a minimal sample project, that highlights the error: https://github.com/ChristianBecker/parcelize_kts • If I use
    app/build.gradle
    everything works fine • If I use
    app/build.gradle.kts
    (by un-commenting line 4 in
    settings.gradle.kts
    ) the Kotlin Compiler is unable to find
    Parcelize
    on the classpath and fails the build:
    e: […]/ParcelizeModel.kt: (4, 24): Unresolved reference: parcel
    e: […]/ParcelizeModel.kt: (6, 2): Unresolved reference: Parcelize
    e: […]/ParcelizeModel.kt: (7, 6): Class 'ParcelizeModel' is not abstract and does not implement abstract member public abstract fun writeToParcel(p0: Parcel!, p1: Int): Unit defined in android.os.Parcelable
    Is this the right channel, or should I post this in #gradle, or somewhere else? (Sorry for copy-pasting, I just wanted to extend the scope)
    i
    • 2
    • 2
  • a

    arekolek

    11/12/2018, 3:29 PM
    When browsing the documentation, how do you switch between the docs for Java and the docs for Kotlin? For example: • https://developer.android.com/reference/androidx/lifecycle/package-summary • https://developer.android.com/reference/kotlin/androidx/lifecycle/package-summary Other than going to address bar and typing in or deleting kotlin in the right place
    l
    c
    • 3
    • 7
  • j

    jw

    11/12/2018, 4:44 PM
    If you use R8 you don't need to do anything
    c
    • 2
    • 3
  • d

    dan.the.man

    11/12/2018, 4:52 PM
    Does the Kotlin Repl work with Android studio 3.2?
    i
    r
    • 3
    • 3
  • p

    Paul Woitaschek

    11/12/2018, 9:34 PM
    I'm using moshi's generated adapters and I don't want to run kapt while developing because of build times. However when testing, I want to run kapt on my sources. Else I'll test an artificial situation which is different from my production code.
    s
    e
    • 3
    • 4
  • a

    Alan Evans

    11/12/2018, 9:54 PM
    I would achieve this by modularizing the moshi classes into their own module. Such that only changes to that module will cause the moshi kapt to run again. Advantage, your tests and release build times will also be faster, unlike any hack solution that only makes debug builds faster.
    p
    g
    • 3
    • 8
  • f

    febs

    11/13/2018, 9:10 PM
    Trying to debug my first trivial app made with Kotlin with Android Studio. No matter if I tap "step over", I still end up in the Java source code of the Android framework. Is that normal? Apologies if this is not strictly Kotlin related.
    m
    a
    e
    • 4
    • 14
  • s

    Slackbot

    11/14/2018, 1:14 PM
    This message was deleted.
    e
    j
    • 3
    • 3
  • s

    Sam

    11/14/2018, 2:40 PM
    Is there a place to file kotlin android extension bugs?
    g
    • 2
    • 1
Powered by Linen
Title
s

Sam

11/14/2018, 2:40 PM
Is there a place to file kotlin android extension bugs?
g

gildor

11/14/2018, 4:45 PM
kotl.in/issue
👍 1
View count: 1