Android异常汇总

1.Activity中getResources()报空指针异常

   原因:context.getResources()

2.Android library projects cannot be launched

 
  1. 点击运行的工程右键出现Properties
  2. 点击Properties,进入

  3. 把is library 前的对勾去掉

  4. 返回自己的project,右键点击Run As 的第一项Android Application

     
 

猜你喜欢

转载自425826501.iteye.com/blog/2193924