java.lang.runtimeexception
2014-12-07 16:43
183 查看
一般出现这个问题主要是没有在项目的androidManifest.xml里注册使用activity,主要就是这句: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.tomato/com.example.alarmtest.AppStart}: java.lang.ClassNotFoundException: com.example.alarmtest.AppStart
2
上面它已经就说,你没有实例化com.example.tomato/com.example.alarmtest.AppStart,tomato是项目名字,AppStart是没有实例化的activity。这就明白了,检查这下,注册
<activity android:name="com.example.tomato.AppStart"/>。
3
但有时你发觉你已经注册,这时你要仔细检查,看看是不是包名写错了,仔细排查错误。就能解决了。
2
上面它已经就说,你没有实例化com.example.tomato/com.example.alarmtest.AppStart,tomato是项目名字,AppStart是没有实例化的activity。这就明白了,检查这下,注册
<activity android:name="com.example.tomato.AppStart"/>。
3
但有时你发觉你已经注册,这时你要仔细检查,看看是不是包名写错了,仔细排查错误。就能解决了。
相关文章推荐
- Struts2上传文件异常: java.lang.RuntimeException: Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta
- 关于Eclipse出现java.lang.RuntimeException: Widget disposed too early! 的解决办法
- struts2启动报java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- keytool错误:java.lang.RuntimeException用法错误,and不是合法的命令
- java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
- struts2.2.1 严重: Dispatcher initialization failed java.lang.RuntimeException
- struts 2.2.1做例子时报异常:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 解决
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- jgroups gossipRouter 报错 java.lang.RuntimeException: class for magic number -1 not found
- java.lang.Excetion,java.lang.RuntimeException,java.lang.Error有什么区别?
- 严重: Dispatcher initialization failed java.lang.RuntimeException
- (Eclipse on linux 启动过程中报错)java.lang.RuntimeException: Widget disposed too early!
- struts2.2.1中关于严重: Dispatcher initialization failed java.lang.RuntimeException
- Java.lang.RuntimeException: No application id has been found.
- Got an exception - java.lang.RuntimeException: Unable to get class information for @throws tag 'XXXException'.
- 运行mapreduce程序时出现异常java.lang.RuntimeException: java.lang.ClassNotFoundException的原因
- 关于Eclipse出现java.lang.RuntimeException: Widget disposed too early! 的解决办法
- webx3项目把修改的二方库加入项目中重新报Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/select'
- 项目启动异常:Exception: java.lang.RuntimeException: XPathFactory#newInstance()
- [Struts2]严重: Dispatcher initialization failed java.lang.RuntimeException