LoginSignup
0
0

More than 3 years have passed since last update.

AndroidStudioでKotlin Multiplatform Projectの開発時に、breakpointで止まらない場合がある

Last updated at Posted at 2020-06-27

エラーメッセージ

「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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0