Hi guys! I’m having a strange behaviour with AS: `...
# android
g
Hi guys! I’m having a strange behaviour with AS:
Copy code
Android Studio Arctic Fox | 2020.3.1 Canary 12
Build #AI-203.7148.57.2031.7226969, built on March 22, 2021
Runtime version: 11.0.8+10-b944.6842174 x86_64
VM: OpenJDK 64-Bit Server VM by N/A
macOS 10.16
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 4
Registry: ide.windowSystem.autoShowProcessPopup=true, external.system.auto.import.disabled=true, debugger.watches.in.variables=false, ide.images.show.chessboard=true
Non-Bundled Plugins: com.intellij.marketplace, mobi.hsz.idea.gitignore, com.atlassian.bitbucket.references, com.thoughtworks.gauge, com.google.mad-scorecard, com.jetbrains.kmm, com.squareup.sqldelight
If I have a class that has it dependencies by field injection:
Copy code
private val logger: Kermit by inject()
I cannot attach the debugger, any break point shows this icon: 🚫 (the gray one) If it’s constructor injection it attaches ok 🤔 I’m using Koin because this is a KMM project and the code is in the commonModule. Any ideia? Thanks.
d
My gut reaction is to check that your build is not minified by R8.
c
I don't have much KMM experience, but when I recently tried a KMM template project from jb on github it completely failed on canary 12, but worked in current beta 6.
g
(i’m just using Canary because of Compose)
I’m running debug with
Copy code
isMinifyEnabled = false
🤔
i’ve tried with
Copy code
isUseProguard = false
with no luck either
Well I don’t know why - I’l try to get in touch with Koin folks - but since i’ve replaced field by constructor injection, debugger was back. I’ve also tried with AS 4.1.3 and had the same problem 🤔