getContext() doesn't exist

前端 未结 4 1753
Happy的楠姐
Happy的楠姐 2021-02-20 12:29

So I have been going through the Android Developer training on the official site and there is a point where they want us to finally instantiate our database.

So they te

4条回答
  •  粉色の甜心
    2021-02-20 13:00

    In your code you have used geContext() change it to getContext() or getApplicationContext() or if calling the object from inside an activity simply pass this

提交回复
热议问题