android启动程序崩溃,android studio 配置好后 程序编译没有报错 但是运行app 程序崩溃...

这个是logcat出错部分 求大神指点

10-22 05:10:01.785 2706-2725/com.example.ys_iww.bigclass E/AVUncaughtExceptionHandler﹕ AVUncaughtExceptionHandler caught a NoClassDefFoundError exception

10-22 05:10:01.791 2706-2732/com.example.ys_iww.bigclass E/AVUncaughtExceptionHandler﹕ AVUncaughtExceptionHandler caught a NoClassDefFoundError exception

10-22 05:10:01.818 2706-2721/com.example.ys_iww.bigclass E/AVUncaughtExceptionHandler﹕ AVUncaughtExceptionHandler caught a NoClassDefFoundError exception

--------- beginning of crash

10-22 05:10:01.835 2706-2725/com.example.ys_iww.bigclass E/AndroidRuntime﹕ FATAL EXCEPTION: com.avos.avoscloud.AnalyticsRequestController

Process: com.example.ys_iww.bigclass, PID: 2706

java.lang.NoClassDefFoundError: Failed resolution of: Lokio/Buffer;

at com.squareup.okhttp.internal.Platform.concatLengthPrefixed(Platform.java:362)

at com.squareup.okhttp.internal.Platform$Android.configureTlsExtensions(Platform.java:210)

at com.squareup.okhttp.Connection.connectTls(Connection.java:230)

at com.squareup.okhttp.Connection.connectSocket(Connection.java:199)

at com.squareup.okhttp.Connection.connect(Connection.java:172)

at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:367)

at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)

at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:328)

at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:245)

at com.squareup.okhttp.Call.getResponse(Call.java:267)

at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:224)

at com.avos.avoscloud.PaasClient$RequestStatisticInterceptor.intercept(PaasClient.java:922)

at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:221)

at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:195)

at com.squareup.okhttp.Call.execute(Call.java:79)

at com.avos.avoscloud.PaasClient$AVHttpClient.execute(PaasClient.java:900)

at com.avos.avoscloud.PaasClient.postObject(PaasClient.java:554)

at com.avos.avoscloud.PaasClient.postObject(PaasClient.java:535)

at com.avos.avoscloud.PaasClient.handleArchivedRequest(PaasClient.java:672)

at com.avos.avoscloud.PaasClient.handleArchivedRequest(PaasClient.java:622)

at com.avos.avoscloud.PaasClient.handleAllArchivedRequest(PaasClient.java:695)

at com.avos.avoscloud.AnalyticsImpl.sendArchivedRequests(AnalyticsImpl.java:486)

at com.avos.avoscloud.AnalyticsImpl.saveSessionsToServer(AnalyticsImpl.java:364)

at com.avos.avoscloud.AnalyticsImpl.report(AnalyticsImpl.java:307)

at com.avos.avoscloud.AnalyticsImpl.sendRequest(AnalyticsImpl.java:492)

at com.avos.avoscloud.BasicAnalyticsRequestDispatcher$1.handleMessage(BasicAnalyticsRequestDispatcher.java:22)

at android.os.Handler.dispatchMessage(Handler.java:102)

at android.os.Looper.loop(Looper.java:148)

at android.os.HandlerThread.run(HandlerThread.java:61)

Caused by: java.lang.ClassNotFoundException: Didn't find class "okio.Buffer" on path: DexPathList[[zip file "/data/app/com.example.ys_iww.bigclass-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.ys_iww.bigclass-1/lib/x86, /vendor/lib, /system/lib]]

at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

at com.squareup.okhttp.internal.Platform.concatLengthPrefixed(Platform.java:362)

at com.squareup.okhttp.internal.Platform$Android.configureTlsExtensions(Platform.java:210)

at com.squareup.okhttp.Connection.connectTls(Connection.java:230)

at com.squareup.okhttp.Connection.connectSocket(Connection.java:199)

at com.squareup.okhttp.Connection.connect(Connection.java:172)

at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:367)

at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)

at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:328)

at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:245)

at com.squareup.okhttp.Call.getResponse(Call.java:267)

at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:224)

at com.avos.avoscloud.PaasClient$RequestStatisticInterceptor.intercept(PaasClient.java:922)

at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:221)

at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:195)

at com.squareup.okhttp.Call.execute(Call.java:79)

at com.avos.avoscloud.PaasClient$AVHttpClient.execute(PaasClient.java:900)

at com.avos.avoscloud.PaasClient.postObject(PaasClient.java:554)

at com.avos.avoscloud.PaasClient.postObject(PaasClient.java:535)

at com.avos.avoscloud.PaasClient.handleArchivedRequest(PaasClient.java:672)

at com.avos.avoscloud.PaasClient.handleArchivedRequest(PaasClient.java:622)

at com.avos.avoscloud.PaasClient.handleAllArchivedRequest(PaasClient.java:695)

at com.avos.avoscloud.AnalyticsImpl.sendArchivedRequests(AnalyticsImpl.java:486)

at com.avos.avoscloud.AnalyticsImpl.saveSessionsToServer(AnalyticsImpl.java:364)

at com.avos.avoscloud.AnalyticsImpl.report(AnalyticsImpl.java:307)

at com.avos.avoscloud.AnalyticsImpl.sendRequest(AnalyticsImpl.java:492)

at com.avos.avoscloud.BasicAnalyticsRequestDispatcher$1.handleMessage(BasicAnalyticsRequestDispatcher.java:22)

at android.os.Handler.dispatchMessage(Handler.java:102)

at android.os.Looper.loop(Looper.java:148)

at android.os.HandlerThread.run(HandlerThread.java:61)

Suppressed: java.lang.ClassNotFoundException: okio.Buffer

at java.lang.Class.classForName(Native Method)

at java.lang.BootClassLoader.findClass(ClassLoader.java:781)

at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)

at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

... 30 more

Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

  • 0
    点赞
  • 0
    收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:游动-白 设计师:我叫白小胖 返回首页
评论
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值