Kotlin の Android Extensions でワーニング
Kotlin の Android Extensions を使うと findViewById から解放されて気持ち良くなれるのだけど、気が付いたら View の id の部分にこんなワーニングが出てる。
Use properties from the build variant packages
気持ち悪いので調べてみたら
http://stackoverflow.com/questions/34107344/what-does-the-warning-use-properties-from-the-build-variant-packages-mean/34117173
ということだそうだ。
特に build bariants を増やしたりしていないので今回は main を指定すれば良いのかな。
というわけで、オリジナルの import の部分
import kotlinx.android.synthetic.activity_panorama.*
これを下記の様に修正してワーニングは消えました!
import kotlinx.android.synthetic.main.activity_panorama.*