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

    Guilherme Lima Pereira

    05/05/2021, 8:42 PM
    Hi everyone! Yesterday AGP 4.2.0 was released and JDK 11 it’s now bundled with it. I just updated to AGP 4.2.0 and I’m now trying to get the project to work with JDK 11. It’s compiling perfectly, but I’m having issues on unit tests when comparing two formatted strings to currency (
    NumberFormat.getCurrencyInstance
    ). Learning about some changes from JDK 8 to JDK 11, I found that on JDK 9 they’ve enhanced some things related to Locale. One of the things is the usage of CLDR. The issue with
    CLDR
    is that is uses
    NBSP
    instead of normal whitespace. The problem with
    NBSP
    is that is not straightforward for the developers to add it during unit tests. I tried to solve it by adding
    -Djava.locale.providers=COMPAT
    on
    gradle.properties
    (
    org.gradle.jvmargs
    ), but it keeps using
    NBSP
    😢 Does anyone has suffered with it or have any idea how to address this issue?
    e
    m
    • 3
    • 25
  • l

    louiscad

    05/06/2021, 10:23 AM
    Hello, what do you think about the AndroidX DataStore API? What do you like, and what do you dislike? If you don't use it, is there any reason for that besides lack of time to focus on it? Curious about other's points of view on that.
    😒uspend: 1
    j
    p
    +2
    • 5
    • 32
  • c

    Chris Fillmore

    05/06/2021, 2:41 PM
    Hi everyone, I’m curious what the correct approach is when implementing
    LifecycleObserver
    . The Kotlin examples here use `@OnLifecycleEvent`: https://developer.android.com/topic/libraries/architecture/lifecycle#lc However, this page (Java examples) says that annotations will be deprecated: https://developer.android.com/reference/kotlin/androidx/lifecycle/Lifecycle , and instead I should implement
    DefaultLifecycleObserver
    What is the correct practice here? Thank you!
    j
    • 2
    • 2
  • a

    Adam Powell

    05/06/2021, 2:43 PM
    Use either DefaultLifecycleObserver if you want individual methods or LifecycleEventObserver if you want one method with event enums as the messages
    c
    • 2
    • 1
  • b

    baxter

    05/07/2021, 4:07 AM
    A teammate just told me he was having a problem with
    collect { }
    . His issue was that the AS was expecting him to add the
    @InternalCoroutinesApi
    annotation, and it also required he add in the
    FlowCollector
    object implementation directly. At first I didn't know what happened, until he showed me the source code of the
    collect
    function he was calling. Turned out it was the
    collect
    function from the
    Flow.kt
    file. I asked if he had the option to do the auto-import for the extension function
    collect
    , but he didn't. I tried just typing out the
    collect
    function out without auto-complete, and saw this happening on my machine as well. This confused my teammate who is learning Coroutines and Flows, but I'm curious if anyone else has run into this either personally or with teammates.
    ➕ 2
    e
    j
    • 3
    • 10
  • b

    Belmin Began

    05/07/2021, 12:37 PM
    Hello guys I’m new to this and trying to learn as much as I can but I’ve hit an obstacle and can’t seem to get around it. Problem is that I wanted to import something but it is just giving a reference error that is unknown and it is hard to find any answer on the internet. So any insight on what am I doing wrong with it would be much appreciated.
    k
    • 2
    • 2
  • m

    Mark

    05/07/2021, 2:40 PM
    When collecting a flow using an activity lifecycleScope, I’ve noticed that using the default
    CoroutineStart.Default
    , doesn’t work sometimes when using an empty buffer
    Channel
    and
    receiveAsFlow
    (where an event is being offered instead of sent).
    CoroutineStart.Undispatched
    does seem to work however. I’m assuming this is because the launched coroutine needs to have executed the collect coroutine before an event is offered to the channel, in order to receive it. So, is using
    CoroutineStart.Undispatched
    the correct approach, or should I be using a buffered channel instead?
    a
    • 2
    • 4
  • a

    Anshulupadhyay03

    05/08/2021, 10:09 AM
    Hi Everyone, I am writing unit test cases in my android app which is following multi module clean architecture. I have created a shared test module to share common test logic to share across all the test classes in all the other modules. This shared test module is android lib module. I am have no problem sharing common test logic with app module which is also android module . But i am not able to resolve the references of the shared test module classes in data module(which is a java/kotlin module) during the runtime. For testing, i created another android lib module and tried to access shared test logic and it worked but i am not able to resolve the classes with non android lb modules. I have stackover question also where i have explained the problem in a detailed way please refer https://stackoverflow.com/questions/67383020/shared-test-classes-in-multimdule-android-project
    m
    • 2
    • 8
  • r

    Remon Shehata

    05/09/2021, 2:05 PM
    is there a way to calculate the size of JSON in bytes using Kotlin?
    n
    s
    c
    • 4
    • 6
  • g

    Gabriele Rugani

    05/09/2021, 8:34 PM
    HI ! And we are here with a beautiful gradle warning:
    Runtime JAR files in the classpath should have the same version. These
    files were found in the classpath:
    and
    w: Consider providing an explicit dependency on kotlin-reflect 1.5 to
    prevent strange errorsw: Some runtime JAR files in the classpath have
    an incompatible version. Consider removing them from the classpath
    By inspecting the dependendencies: one library use 1.3 , one 1.4 and so on , and for last but not least I have just update my project to 1.5 version .. Sure I can bring back the version to 1.4, but there are other library set to 1.3. In which way kotlin-reflect could resolves the issue ? I provided an esplicit dependency on kotlin-reflect, but the warning still there.. Also some google's libraries However is not already updated to 1.5.0, for instance:
    --- com.android.tools.analytics-library:tracker:27.2.0
     
     | | +--- com.android.tools:annotations:27.2.0
     
     | | +--- com.android.tools:common:27.2.0 (*)
     
     | | +--- com.android.tools.analytics-library:protos:27.2.0 (*)
     
     | | +--- com.android.tools.analytics-library:shared:27.2.0 (*)
     
     | | +--- com.google.protobuf:protobuf-java:3.10.0
     
    | | +--- com.google.guava:guava:28.1-jre (*)
     
     | | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31 (*)
    What could happen if I would use different libraries with different kotlin version ? Do you update your project's kotlin language's version only when all the imported libraries are updated ? For instance this is the dependendencies of the old lifecycle-livedata-ktx:2.2.0, in an official libraries there are two different version of kotlin-stlib 1.3.5 and 1.4:
    | | | | \--- androidx.lifecycle:lifecycle-livedata-ktx:2.2.0
    | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.50 -> 1.5.0 (*)
    | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0 -> 1.4.1
    | | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.4.1
    | | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.0 -> 1.5.0 (*)
    | | | | | \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.0 -> 1.5.0
    | | | | +--- androidx.lifecycle:lifecycle-livedata:2.2.0 (*)
    | | | | \--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.2.0
    | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.50 -> 1.5.0 (*)
    | | | | \--- androidx.lifecycle:lifecycle-livedata-core:2.2.0 (*)
    Please forgive all these questions
    🧵 4
    :thread-please: 2
    a
    • 2
    • 7
  • r

    rkeazor

    05/10/2021, 2:24 AM
    hey is this dependency still needed after upgrading to Kotlin 1.5
    org.jetbrains.kotlin:kotlin-stdlib-jdk7
    :no_red: 3
    ➕ 2
    a
    • 2
    • 2
  • e

    Equilat

    05/10/2021, 7:57 AM
    Hello guys. I would like to style my composables in Jetpack Compose using a similar mechanic to Swift UI’s styling like in this example.
    struct DefaultButton: View {
       
       var body: some View {
         Button("Button"){}
           .buttonStyle(ButtonDefaultStyle())
       }
    }
    My style is in an external class.
    struct ButtonDefaultStyle: ButtonStyle {
       func makeBody(configuration: Configuration) -> some View {
         configuration.label
           .frame(width: 100, height: 40)
           .foregroundColor(Color( colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)))
           .background(configuration.isPressed ? Color( colorLiteral(red: 0.1254901961, green: 0.4666666667, blue: 0.4235294118, alpha: 1)) : Color( colorLiteral(red: 0.1411764706, green: 0.6784313725, blue: 0.5529411765, alpha: 1)))
           .clipShape(RoundedRectangle(cornerRadius: 50))
           .font(Font.custom("EuclidSquare-Medium", size: 16))
       }
    }
    The best would be to be able to override a style by another style or by an attribute (Button().{}.style1(...).style2(...).color(...)... Is there a way to do something similar in Compose ? If not, did I misunderstood Compose philosophy or is it just something currently lacking ?
    a
    j
    • 3
    • 5
  • l

    L.C

    05/10/2021, 12:41 PM
    Hello everyone, I was wondering if anyone hit the same problem with me after updating AGP version to 4.2.0 and Kotlin Gradle plugin to 1.5.0. It complains about “Unresolved reference: toUShort”. What is the right way to convert Integer value to UShort?
    u
     and 
    U
     tag unsigned literals does not seems to work for me as well. It said “Type of the constant expression cannot be resolved. Please make sure you have the required dependencies for unsigned types in the classpath”. Hope to get a hint, thanks in advance!
    k
    • 2
    • 2
  • j

    jaran

    05/10/2021, 12:50 PM
    Hi! Trying to add Compose to an existing project as described here: https://developer.android.com/jetpack/compose/setup#add-compose Adding the Kotlin Android plugin as described on the documentation above:
    plugins {
      id 'org.jetbrains.kotlin.android' version '1.4.30'
    }
    gives me the following error:
    a
    k
    • 3
    • 7
  • m

    Mohan Babu Malairaj

    05/10/2021, 4:36 PM
    Hi, I have a library with a fragment and viewmodel and using that fragment in my app and created view model using ViewModelProviders.of(fragmentId).get(ViewModelName::class.name) I decided to remove ViewModelProviders but now when i use ViewModelProvider class, I am not able to pass on the fragment and also if i create view model using ViewModelProvider then there is no communication between ViewModel and Fragment exist in the library. Please let me know how this can be resolved using ViewModelProvider.
    :not-kotlin: 3
    i
    • 2
    • 2
  • e

    eygraber

    05/10/2021, 10:12 PM
    I'm adding testing to a large project that I'm working on, but it's been 5-6 years since I last worked with Android test frameworks. The project is 100% kotlin w/ coroutines. From my research it looks like I should be using Espresso for automation testing, and junit for unit testing (with Robolectric as sparingly as possible for unit tests that require interaction with Android). Anyone have any suggestions for patterns, libraries, or docs/blogs that would help get started with this?
    :not-kotlin: 1
    c
    a
    • 3
    • 4
  • u

    ursus

    05/11/2021, 12:20 AM
    Ever since AS 4.2 I get this Is this relevant or a bug?
    r
    m
    • 3
    • 5
  • k

    kokeroulis

    05/11/2021, 2:33 PM
    I was using the android studio advanced profiling to measure something. I have noticed that the
    system
    storage is now
    25GB
    while yesterday it was
    14GB
    . Do you know if its possible to find any remaining trace files and remove them? This is a real device, pixel 4.
    :not-kotlin: 2
    u
    • 2
    • 4
  • c

    Chetan Tuteja

    05/12/2021, 7:02 AM
    Does anybody here use KotlinxSerialization with Retrofit?
    w
    • 2
    • 9
  • v

    Vitaliy Zarubin

    05/12/2021, 10:07 AM
    Please tell me where to find a list of all Jetpack Compose material elements (Text(), Column() Divider() etc). Is there such a document?
    a
    • 2
    • 5
  • s

    Sushruth Nagaraj

    05/12/2021, 12:25 PM
    Hello guys, I'm getting this error when I'm trying to build a new project in Android Studio 4.2 A problem occurred configuring root project 'YouHaveClass'. Could not resolve all artifacts for configuration ':classpath'. > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html How can I resolve this?
    u
    • 2
    • 8
  • u

    ursus

    05/12/2021, 11:31 PM
    What the hell happened to AS 4.2? Change signature doesnt work. Random red underlines which actually compile fine. Clicking X to close causes glitches and exist way later. Feels slower as well ...
    m
    • 2
    • 1
  • c

    Chetan Tuteja

    05/13/2021, 6:54 AM
    Does anybody here still Kotlin Synthetic extensions to access views or has everyone shifted to viewbinding? Like if someone had old projects, how did you go around migrating them?
    s
    e
    k
    • 4
    • 33
  • s

    solidogen

    05/13/2021, 7:34 AM
    Designer of my project uses new iPhone dimensions for screen mocks, like 19:9. Yet most of older Android phones which users will use still have 16:9 and bottom content usually has to be put into a scrollview not to be cut off. It doesn’t seem like a great choice, what am I supposed to do? Do I change margins based on screen height, force everything smaller, or something else?
    c
    • 2
    • 5
  • s

    Sushruth Nagaraj

    05/13/2021, 8:12 AM
    How to resolve net::ERR_UNKNOWN_URL_SCHEME in a webview app? How to use intents?
    :not-kotlin: 1
    v
    t
    • 3
    • 5
  • t

    Tower Guidev2

    05/13/2021, 9:27 AM
    Hi, Im working on developing an Android application based on MVI architecture. Ive attempted to model User Interactions as Action, Reactions and Consequences and come up with the following interfaces and sealed classes
    :thread-please: 2
    z
    • 2
    • 7
  • k

    Karan Sharma

    05/13/2021, 11:44 AM
    The view model has 3 live data coming in from 3 different api calls. Now, I want to display all the data together as different cards in a list in the recycler view. What would be the best way to do this ? https://stackoverflow.com/questions/67518481/how-to-convert-3-or-more-livedata-into-a-single-flow-in-android
    🦜 1
    l
    • 2
    • 3
  • n

    natario1

    05/13/2021, 3:10 PM
    Starting Kotlin 1.5.0, using the following fun interface:
    internal fun interface Action<T: Any> {
        val id: String get() = hashCode().toString()
        fun execute(): Result<T>
    }
    fails on Android with:
    com.android.tools.r8.errors.b: Method name '<get-id>' in class '...$reload$1$1$2' cannot be represented in dex format.
    Does anyone know if this is a Kotlin or R8 issue?
    e
    • 2
    • 4
  • s

    Sushruth Nagaraj

    05/13/2021, 6:48 PM
    How to implement this in Kotlin?
    c
    r
    e
    • 4
    • 9
  • c

    Chetan Tuteja

    05/14/2021, 6:54 AM
    Just found onActivityResult was deprecated. Wondering how this will impact some libraries.
    :not-kotlin: 6
    g
    • 2
    • 21
Powered by Linen
Title
c

Chetan Tuteja

05/14/2021, 6:54 AM
Just found onActivityResult was deprecated. Wondering how this will impact some libraries.
:not-kotlin: 6
g

gildor

05/14/2021, 7:16 AM
How the fact of deprecation should impact libraries? Though, new Activity result API makes it a lot easier to integrate libraries
c

Chetan Tuteja

05/14/2021, 7:17 AM
I meant for already existing libraries, that use this somewhere internally?
BTW @gildor, I had a really stupid question. If I were to update my Kotlin plugin version to the latest and my old code base is using Kotlin synthetics still, what will happen, will it support it or not? Or should I not bother updating? I want to know what will happens to app already deployed and launched that are using synthetics when we use newer versions of Kotlin because migration might not always be an option for large scale projects.
g

gildor

05/14/2021, 7:48 AM
existing libraries, that use this somewhere internally
It’s deprecated, not removed, so nothing will change
what will happen, will it support it or not?
They are not supported
c

Chetan Tuteja

05/14/2021, 7:49 AM
So am I stuck with the current version of Kotlin on my system if I have to maintain an old app already launched but is using synthetics?
g

gildor

05/14/2021, 7:49 AM
I would update, it’s anyway your technical debt, but you decide of course
at some point you may get situatuion that you have to update Kotlin for some reason
c

Chetan Tuteja

05/14/2021, 7:51 AM
We are already moving onto ViewBinding for newer projects, but as you said the debt for older projects is too much considering like if the app has at least 30+ screens. Migration is not easy in that regard.
g

gildor

05/14/2021, 7:51 AM
Honestly I’m not sure, did synthetics are removed or not in 1.5, but they are deprecated and supported
c

Chetan Tuteja

05/14/2021, 7:53 AM
Yeah deprecation notice has been out since 1.4 but one cannot just migrate that simply. So that is what I was wondering, if they will support the older code in newer versions or not.
g

gildor

05/14/2021, 7:54 AM
It can be dropped in any major release, there is 1 version of deprecation required
It probably still work, because it’s a separate plugin, but not sure about support of higher versions of kotlin
android-kotlin-extensions
 will be removed in a future Kotlin release during or after September 2021
so probably Kotlin 1.6
c

Chetan Tuteja

05/14/2021, 7:56 AM
I am currently on version 1.4.21 even though I know 1.5 is out, and I have not upgraded only in the fear that lot of my current projects which were built a long ago before this deprecation notice arrived and are using synthetics.
g

gildor

05/14/2021, 7:57 AM
just update and check 😄
c

Chetan Tuteja

05/14/2021, 7:57 AM
Is downgrading an option?
g

gildor

05/14/2021, 7:57 AM
why not? it’s just a version of Kotlin plugin in gradle
c

Chetan Tuteja

05/14/2021, 7:59 AM
Right, that was stupid of me. So if my version is defined as this and even though the plugin version is higher. This project should still work on 1.4.21 correct?
ext.kotlin_version = '1.4.21'
g

gildor

05/14/2021, 8:00 AM
I don’t know how you use this gradle extension, but probably yes, just check official doc how to apply kotlin plugin
View count: 9