错误信息如下:
03-08 22:54:04.204: E/InvProxy(7082): NativeObject.execMethod startActivity method ; params=[{"type":"object","value":"JSB271457448844203"}]java.lang.reflect.InvocationTargetException
代码如下:
var main = plus.android.runtimeMainActivity();
var Intent = plus.android.importClass("android.content.Intent");
var MainActivity= plus.android.importClass("io.dcloud.MainActivity");
var mIntent = new Intent(main,"io.dcloud.MainActivity");
main.startActivity(mIntent);
dfsdafsdf (作者)
我修改了之后还是一样报错
2016-03-12 17:33
dfsdafsdf (作者)
var main = plus.android.runtimeMainActivity();
var Intent = plus.android.importClass("android.content.Intent");
var MainActivity= plus.android.importClass("io.dcloud.MainActivity");
var mIntent = new Intent(main,MainActivity);
main.startActivity(mIntent);
var main = plus.android.runtimeMainActivity();
var Intent = plus.android.importClass("android.content.Intent");
var MainActivity= plus.android.importClass("io.dcloud.MainActivity");
var mIntent = new Intent(main,MainActivity.class);
main.startActivity(mIntent);
错误如下:
03-12 17:38:34.401: E/InvProxy(4620): NativeObject.execMethod __Instance android.content.Intent method ; params=[{"type":"object","value":"Invocation1112421264"},{"type":"block","value":"plus261457775514406"}]java.lang.reflect.InvocationTargetException
2016-03-12 17:40