Variable is accessed from within inner class ,need to be declared final
解决的办法就是,在这个变量前面加上“final”,让其变为一个常量
内部类中不能引用本地变量,需要声明为常量
猜你喜欢
转载自blog.csdn.net/guyu96/article/details/82492030
今日推荐
周排行