02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: java.lang.ClassNotFoundException: com.tencent.stat.StatConfig
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at java.lang.Class.classForName(Native Method)
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at java.lang.Class.forName(Class.java:308)
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at java.lang.Class.forName(Class.java:272)
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at com.tencent.connect.a.a.c(ProGuard:55)
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at com.tencent.connect.auth.c.<init>(ProGuard:43)
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at com.tencent.connect.auth.c.a(ProGuard:78)
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at com.tencent.tauth.Tencent.<init>(ProGuard:52)
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at com.tencent.tauth.Tencent.createInstance(ProGuard:60)
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at com.botu.img.MyApp.onCreate(MyApp.java:56)
02-07 21:33:24.827 9127-9127/com.botu.img W/System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at android.app.ActivityThread.access$1500(ActivityThread.java:144)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at android.os.Looper.loop(Looper.java:135)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5221)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at java.lang.reflect.Method.invoke(Native Method)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tencent.stat.StatConfig" on path: DexPathList[[zip file "/data/app/com.botu.img-1/base.apk"],nativeLibraryDirectories=[/data/app/com.botu.img-1/lib/x86, /vendor/lib, /system/lib]]
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: ... 20 more
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: Suppressed: java.lang.ClassNotFoundException: com.tencent.stat.StatConfig
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at java.lang.Class.classForName(Native Method)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: ... 21 more
02-07 21:33:24.828 9127-9127/com.botu.img W/System.err: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
解决办法:
1.查看是否导入QQ的包open_sdk_r5756_lite.jar,导入后是否引用。
2.上面步骤没问题的话就查看是否是其他原因引起的。我的就是因为控件引用id错了导致报了这个错误