`

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

     
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics