java 出现No enclosing instance of type TestButton is accessible. Must qualify the allocation with an e

来源:互联网 发布:2016淘宝免费开店流程 编辑:程序博客网 时间:2024/05/19 11:38

静态变量问题。


静态方法无法调用动态类。


最快速的解决方法是将动态类的public class改为public static class.

1 0
原创粉丝点击