'receiver type mismatch' with Fragment and Anko toast

后端 未结 2 651
陌清茗
陌清茗 2021-01-23 01:53

I am trying to use Jetbrains\' Anko library to easily display an Android toast message in my app.

Here is the relevant code snippet:

val message : CharSe         


        
2条回答
  •  天命终不由人
    2021-01-23 02:17

    Since the error says none are applicable you've probably imported a different Fragment class than the one defined by Android/Support Library.

    Check your imports.

提交回复
热议问题