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-studio
  • b

    Brady Aiello

    12/12/2020, 12:11 AM
    Just upgraded to Arctic Fox, changed my
    JAVA_HOME
    to 11, made sure AS is using 11 as the runtime, and tried changing it gradle.properties as well, and I'm still getting this:
    > Failed to apply plugin 'com.android.internal.application'.
    > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
    You can try some of the following options:
    - changing the IDE settings.
    - changing the JAVA_HOME environment variable.
    - changing `org.gradle.java.home` in `gradle.properties`.
    I can build just fine from the terminal. Anyone solve this issue?
    • 1
    • 1
  • k

    Kenneth Leong

    12/14/2020, 4:30 AM
    hi, I am not sure if its an Android studio issue or an intellij issue or even a gradle issue, i converted my groovy gradle build scripts to kotlin gradle dsl,  but now in my gradle tool window, i do not see any gradle tasks, only the dependencies of each module are shown. is this expected? Running 
    ./gradlew tasks
     i am able to see the list of tasks for my project though. I mm currently using gradle 6.5 with android studio 4.1.1, kotlin version 1.4.21
    s
    • 2
    • 2
  • r

    Rafs

    12/15/2020, 5:43 PM
    Is there anyway of using similar keyboard shortcuts on android studio without having to manually edit all of them one after the other?
    g
    • 2
    • 2
  • w

    WukongRework.exe

    12/19/2020, 8:17 PM
    Android Studio won't recognize my language version is 1.4 and the compileKotlin block errors in gradle. I am trying to do a non-suspending lambda conversion to a suspend lambda without marking the function as suspend
    build.gradle
    j
    • 2
    • 10
  • j

    Javier

    12/24/2020, 2:01 AM
    Someone is having problems related to run some Gradle tasks in Android Studio terminal, for example, having a failing test, run gradlew test, it fails, fix the test, run again gradlew test and it is like it is cached somewhere and it is reusing the previous code so it fails? I have to restart the IDE to fix this problem.
    a
    a
    • 3
    • 4
  • y

    Yashar

    01/04/2021, 9:09 PM
    Just realized that IntelliJ now supports the Apple silicone. Do we have a good timeline of when the AS would support it as well?
    s
    s
    m
    • 4
    • 14
  • f

    František Comorek

    01/06/2021, 10:44 AM
    Hello, I am new to android studio. Experimenting with Kotlin Multiplatform Mobile. When I try to run iOS simulator I get following error:
    Unsupported Xcode version 10.1, minimal supported version is 11.0.
    Is there a way how to set up the android studio to use lower Xcode version? Updating Xcode is not an option for me.
    u
    • 2
    • 5
  • l

    Lilly

    01/26/2021, 1:26 PM
    Hi, Android Studio does not recognize my device while calling
    adb devices
    does. I tried the common troubleshooting but nothing helped. Does someone have an idea?
    l
    • 2
    • 2
  • r

    Roar Gronmo

    01/27/2021, 9:51 PM
    NOTE!! Please be careful after updating AS2020.3.1.x to AS2020.3.1.5 and want to install the suggested Kotlin update (1.4.21 to 1.4.30 RC IJ"somewhat"), it rendered the shared 2020.3 store unusable, and you get this "Missing essential plugin: org.jetbrains.android Please reinstall Android Studio from scratch". It won't help. You need to delete (or at least rename) the path "C:\Users\[your_user_name]\AppData\Local\Google\AndroidStudioPreview2020.3" before you do any installation. Do NOT copy your settings from there when you install from scratch (you just inherit the errors). You need to rebuild your settings, (if you haven't exported your settings sometimes) (as i didn't)... The kotlin plugin seems the one to blaim. I strongly eager AS/IJ engeneers to make a "repair" tool when this type of errors plugin related errors occures.
    • 1
    • 3
  • m

    magnumrocha

    01/28/2021, 6:41 PM
    does anyone having problem after update Android Studio Arctic Fox Canary 5 (2020.3.1.5) ?
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    lateinit property variantName has not been initialized
    My setup: Android Studio Arctic Fox Canary 5 (2020.3.1.5) Android Gradle Plugin 7.0.0-alpha05 Gradle 6.8.1
    r
    • 2
    • 3
  • m

    Mikołaj Kąkol

    01/30/2021, 5:09 PM
    hi, is there way to prevent Arctic Fox from opening files in
    split
    mode?
    r
    • 2
    • 2
  • l

    Lilly

    01/31/2021, 1:10 AM
    Can someone help me with this error, after updating to Arctic Fox alpha05 and JvmTarget 11. Edit: I ghet this message only when I set source and targetCompatibility to Version 11:
    compileOptions {
            sourceCompatibility JavaVersion.VERSION_11
            targetCompatibility JavaVersion.VERSION_11
        }
    Shouldn't we do this? 🤔
    z
    • 2
    • 2
  • j

    Jeff

    02/01/2021, 12:55 PM
    Has anyone come across this while updating to canary 5? Missing essential plugin:   org.jetbrains.android Please reinstall Android Studio from scratch.
    l
    r
    • 3
    • 11
  • n

    Nicholas Doglio

    02/03/2021, 9:39 PM
    Is there a way from Android Studio to figure out what version of IntelliJ it’s forked from?
    m
    • 2
    • 2
  • j

    Jeff

    02/05/2021, 8:17 AM
    In Artic Fox Canary 5, all my build.gradle.kts files are highlighted in red with the message: Cannot access 'java.lang.Object' which is a supertype of 'org.gradle.api.artifacts.dsl.RepositoryHandler'. Check your module classpath for missing or conflicting dependencies I am able to run my app well though.
    j
    l
    • 3
    • 8
  • d

    Daniel

    02/05/2021, 8:55 PM
    has anyone gotten the explicitApi flag to work in android gradle modules?
    ✋ 1
    j
    z
    k
    • 4
    • 8
  • l

    Lilly

    02/09/2021, 3:17 AM
    What is wrong when every line in *.gradle.kts files is marked red? This occured first with Arctic Fox Canary 5 so I tried AS 4.2 Beta 4 but it's still present. The build runs successfully. Should I buy a new computer?
    j
    • 2
    • 2
  • v

    Vivek Sharma

    02/12/2021, 3:16 PM
    I am not able to open or see any Database Inspector option in View -> tools in Android Studio Canary 6, I guess this is latest
    d
    r
    • 3
    • 8
  • g

    Geert

    02/15/2021, 12:18 PM
    I am getting errors that all my Jetpack Compose functions are not working untill version 1.3.40, but currently I have 1,3.21 and when I update I get this error. Also checking for Kotlin Plugin Updates gives no result. P.S. I upgraded to arctic fox 6 today,
    l
    • 2
    • 1
  • v

    Vivek Sharma

    02/16/2021, 11:40 AM
    I have valorant game installed, but whenever I launch android emulator, I always get this warning, even after checking dont show again, any idea or solution? or this can be solved in further updates Is this the right channel to ask question regarding this?
    🇳🇴 1
    • 1
    • 1
  • b

    Bradleycorn

    02/16/2021, 2:36 PM
    is it just me, or are inspections broken in the latest AS Canary? The IDE will routinely fail to update as I type to let me know when there are errors, unused variables, etc. ... Take this code block for example ... It has several problems (
    isActive
    is undefined, there are missing
    }
    , I'm trying to launch a coroutine when I have no scope, etc), yet there are no red underlines, etc ...
    v
    • 2
    • 1
  • c

    Cicero

    02/18/2021, 6:19 PM
    Srsly I’m getting a little desperate here. This glitch is impairing my work and I don’t even know how to report it. How do I disable this weird “tab” window view? I need to restart android studio more than 5x a day, it’s not the arctic fox version as I have 4 versions of AS and they all have the same issue. I feel it could be bigSur, this never happened before bigSur but it’s not an option to downgrade macos - Dialogs are displayed as tabs in Android Studio IDE then the IDE becomes unresponsive - Stack Overflow
    m
    • 2
    • 3
  • k

    Kenneth Leong

    02/25/2021, 9:00 AM
    I cannot see my gradle tasks in the Android Studio gradle tool window when i use kotlin gradle dsl for my build scripts on macOS Big Sur. Groovy works ok. My other device on Catalina is working ok. is it only me? Android Studio 4.1.2 btw
    c
    • 2
    • 4
  • k

    knthmn

    03/01/2021, 7:21 AM
    This is driving me crazy, when I have two tabs opened side by side, the cursor sometimes jumps to the other tab for no reason. I have even reset the settings. Using 2020.3.1 canary 8
    r
    • 2
    • 2
  • s

    Samir Basnet

    03/01/2021, 4:50 PM
    Android Studio is slow as hell, especially after switching from Java to Kotlin it freezes a lot, autocomplete is slowwww and overall performance is badddddd
    ➕ 2
    r
    • 2
    • 5
  • n

    note8g2018

    03/03/2021, 10:09 AM
    Please tell Google to update the code lab for jetpack compose https://developer.android.com/courses/pathways/compose It is not working now Because the code is old and there are many huge changes in the framework jetpack compose Google should update the code
    j
    • 2
    • 1
  • m

    Marko Novakovic

    03/04/2021, 9:13 PM
    what
    IDE max heap size
    is optimal for Macbook Pro 16 with 32GB of RAM? currently am on
    2048 MB
    and I got message
    Low memory The IDE is running low on memory and this might affect performance. Please consider increasing available heap.
    will bumping it to
    4096 MB
    be too much?
    j
    r
    • 3
    • 5
  • j

    Jeff

    03/13/2021, 6:34 PM
    Hey. I don't seem to find Database Inspector in Artic Fox.. anyone?
    ➕ 1
    • 1
    • 1
  • j

    John O'Reilly

    03/27/2021, 4:30 PM
    Seeing issue after updating to Canary 12 where tasks aren't shown in Gradle view. Anyone else seeing this?
    ➕ 1
    d
    c
    c
    • 4
    • 4
  • r

    rocketraman

    03/29/2021, 6:38 PM
    I'm using Canary to support Compose, and I can't Debug -- the app simply waits for the debugger, and Studio waits for the app. Anyone else run into this? When I was using the Studio plugin in IDEA for the same project, I had no issues.
    s
    r
    • 3
    • 6
Powered by Linen
Title
r

rocketraman

03/29/2021, 6:38 PM
I'm using Canary to support Compose, and I can't Debug -- the app simply waits for the debugger, and Studio waits for the app. Anyone else run into this? When I was using the Studio plugin in IDEA for the same project, I had no issues.
s

Sanendak

03/29/2021, 8:30 PM
1. Just create breakpoint and change suspend to all 2. Run app in debug mode 3. Done! In future you may use default "Thread" option
r

rocketraman

03/29/2021, 9:25 PM
Eh? The issue is that the debugger cannot connect to the app.
Here is a screenshot to show the behavior:
r

rudolf.hladik

03/31/2021, 7:46 AM
Same happens to me if I have running more than one version of AS. Like AS Canary and AS Stable. Shutting down the other usually helps
r

rocketraman

03/31/2021, 12:50 PM
Hmm don't have two versions of studio running but I do have both idea and studio running. I'll try shutting down idea.
That was it, thank you @rudolf.hladik
View count: 2