问题:
threadid=1: thread exiting with uncaught exception (group=0x41143930)
E/AndroidRuntime(22451): FATAL EXCEPTION: main
E/AndroidRuntime(22451): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.iflytek.mscdemo/com.iflytek.mscdemo.IatDemoActivk
E/AndroidRuntime(22451): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
E/AndroidRuntime(22451): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
E/AndroidRuntime(22451): at android.app.ActivityThread.access$600(ActivityThread.java:141)
E/AndroidRuntime(22451): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
E/AndroidRuntime(22451): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(22451): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(22451): at android.app.ActivityThread.main(ActivityThread.java:5039)
E/AndroidRuntime(22451): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(22451): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(22451): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
E/AndroidRuntime(22451): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
E/AndroidRuntime(22451): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(22451): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.iflytek.mscdemo.IatDemoActivity" on path: /data/app/com.ik
E/AndroidRuntime(22451): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
E/AndroidRuntime(22451): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
E/AndroidRuntime(22451): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
E/AndroidRuntime(22451): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
E/AndroidRuntime(22451): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
E/AndroidRuntime(22451): ... 11 more
解决方法:
1,在AndroidManifest.xml中类名前加点;
android:name=".IatDemoActivity"
2,在congig build path中添加删除private dependence文件夹;
3,在order and export中选中相应的jar包,并up;