标签:android style blog http color io java ar strong
问题说明:
AndroidRuntime(1705): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.activitytest/com.example.activitytest.SecondActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f070001 type #0x12 is not valid
解决办法:
根据Resource ID #0x7f070001 type #0x12 is not valid 提示,去R.java 文件中检查是否定义该对象,
如果已经定义,则检查com.example.activitytest.SecondActivity类
发现语句写错了,改为:setContentView(R.layout.second_layout);解决问题
android编程常见问题- Resource ID #0x7f070001 type #0x12 is not valid
标签:android style blog http color io java ar strong
原文地址:http://www.cnblogs.com/nzyjlr/p/3991014.html