Stuck with @SuppressLint(“NewApi”) (developer.android.com/training/basics/firstapp/starting-activity)

后端 未结 7 1045
醉话见心
醉话见心 2021-01-17 09:54

I\'m a begginer with Android and currently stuck with the lession: http://developer.android.com/training/basics/firstapp/starting-activity.html

In the part C

7条回答
  •  醉酒成梦
    2021-01-17 10:34

    It works, if you set the line @SuppressLint("NewApi") above the class declaration! (In this lesson, this line is positioned within onCreate, and that doesn't work!)

提交回复
热议问题