为什么不能启动Activity呢?启动代码:try {sta
aide吧
全部回复
仅看楼主
level 9
AdMiN😄
楼主
为什么不能启动Activity呢?
启动代码:try {startActivity(new Intent(MainActivity.this,ActivityM.class));} catch(Exception e) {dm.throwException(e.toString());}
2018年06月25日 09点06分
1
level 13
凹凸曼大小怪77
看起来没错,你在xml写完整包名试看
2018年06月25日 11点06分
2
AdMiN😄
完整包名是这样写的吧,可还是出现异常啊
2018年06月25日 11点06分
飞到后来8
那个复写的onCreate错了
2018年06月26日 00点06分
飞到后来8
@AdMiN😄
onCreate方法的public改成protected
2018年06月26日 00点06分
AdMiN😄
@飞到后来8
并没有用,我有重写检查
2018年06月26日 00点06分
level 9
AdMiN😄
楼主
2018年06月25日 11点06分
3
level 9
AdMiN😄
楼主
都没人嘛,还是这太诡异了?
2018年06月25日 14点06分
5
level 12
茫茫绿草原
不是有人说了吗?onCreat不能用public修饰,不然报错
2018年06月26日 13点06分
6
初始状态0
可以用public,Java允许子类扩大方法访问权限。还有你onCreate拼错了
2018年06月27日 05点06分
level 11
初始状态0
AndroidManifest.xml25行:
activity打错,打成acticity了
2018年06月27日 05点06分
7
飞到后来8
好眼力
2018年06月28日 07点06分
AdMiN😄
可能我需要换个眼镜
2018年06月29日 10点06分
level 12
残页🍭
楼上正解
2018年06月27日 05点06分
8
level 14
重量级😱
楼上正解
2018年06月27日 06点06分
9
level 9
AdMiN😄
楼主
此帖终结
2018年06月29日 13点06分
10
1