LoginSignup
0
1

More than 5 years have passed since last update.

“Not enough information to infer parameter T” with Kotlin and Android"

Last updated at Posted at 2017-08-05

findViewByIdしたら、エラーになった

以下はエラー

val profileImageVIew = findViewById(R.id.profile_image_view) as ImageView

下記に修正

val profileImageVIew = findViewById<ImageView>(R.id.profile_image_view)

原因

API level 26 だと上記の書き方じゃないといけないらしい

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