AndroidStudioでKotlin Multiplatform Projectの開発時に、breakpointで止まらない場合がある
エラーメッセージ
「Breakpoint does not belong to any class」
原因
以下のようなby lazy
構文を使うと、これを定義したクラス内ではbreakpointで止まらなくなる場合がある。
sample.kt
private val hoge by lazy {
"hoge"
}
対処法
by lazy
を使わない
発生した環境
- Android Studio 4.0
- Android Studio 4.1 Preview
- IntelliJ IDEA Ultimate
Author And Source
この問題について(AndroidStudioでKotlin Multiplatform Projectの開発時に、breakpointで止まらない場合がある), 我々は、より多くの情報をここで見つけました https://qiita.com/k-yamada-github/items/f793a14b6de479127de4著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .