引用包 com.test.package1 中 TestMethod 类的 test()方法时,先实例化一个 TestMethod 类的对象,再用对象引用方法。
AS报错解决方法:Non-static method '*' cannot be referenced from a static context
最新推荐文章于 2024-01-04 11:05:12 发布
引用包 com.test.package1 中 TestMethod 类的 test()方法时,先实例化一个 TestMethod 类的对象,再用对象引用方法。