80,349
社区成员
发帖
与我相关
我的任务
分享
setContentView(R.layout.activity_main);
getMenuInflater().inflate(R.menu.main, menu);
if (id == R.id.action_settings) {
return true;
}
。。这个是oncreate里的方法吧,返回值不会是boolean型,也就是不用用return true;。直接return;就可以
第二个看下是不是要去project>properties>java build path>libraries>add jars>appcompat_v7>libs把包添加进来
第三个:
http://stackoverflow.com/questions/26474298/android-parsing-data-for-android-21-failed
需要升级到jdk1.8或者1.7
而且还要记得还要更改默认jdk路径,或者删除原有的。。免得一些加载错误