报错提示“Cannot make a static reference to the non-static method startActivity(Intent) from the type ContextWrapper”

解决方案 »

  1.   

    可以附上出错的代码 : 
    1、你这个错误提示是:不能在静态方法中调用非静态方法,startActivity是非静态方法,所以你不能在静态访求中调用;
    2、如果你在子纯种内调用,那么需要传递一个Context过去,再调用context.startActivity()方法,启动Activity,但是也不能在静态方法中调用。
      

  2.   

    你可能看一下,你在清单文件里面注册了新Activity没有,只是一种猜测。