我有一个工作得很好的应用程序,但有时候我在程序中添加了一些类和代码,导致我的应用程序崩溃。在我logcat错误是这样的:如何解决FATAL EXCEPTION:pool-4-thread-1错误?

FATAL EXCEPTION: pool-4-thread-1

,并在我的代码是这样的:

reader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream(),"UTF-8"));

为了这个,我不能提高我的应用程序。

我的logcat:

8871-8929/com.example.first E/AndroidRuntime﹕ FATAL EXCEPTION: pool-4-thread-1

java.lang.NoClassDefFoundError: okio.Okio

at com.squareup.okhttp.internal.http.HttpConnection.(HttpConnection.java:90)

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

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.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:438)

at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:389)

at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:233)

的build.gradle:

dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])

compile 'com.android.support:support-v4:23.1.+'

compile 'com.google.android.gms:play-services:3.2.+'

compile 'net.hockeyapp.android:HockeySDK:3.6.+'

compile 'com.googlecode.mp4parser:isoparser:1.0.+'

compile 'com.android.support:appcompat-v7:23.1.0'

compile 'com.android.support:design:23.1.1'

compile 'com.android.support:cardview-v7:23.1.0'

compile 'com.android.support:recyclerview-v7:23.0.1'

compile 'com.github.bumptech.glide:glide:+'

compile 'com.nineoldandroids:library:2.4.+'

compile 'com.koushikdutta.ion:ion:2.+'

compile 'de.greenrobot:eventbus:2.4.0'

compile 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3'

compile 'com.theartofdev.edmodo:android-image-cropper:1.0.+'

compile 'com.squareup.picasso:picasso:2.5.2'

compile 'com.squareup.okhttp:okhttp-urlconnection:2.7.5'

compile 'com.github.rahatarmanahmed:circularprogressview:2.4.0'

compile 'com.makeramen:roundedimageview:2.1.2'

compile 'com.squareup.okio:okio:1.6.0'

}

2016-05-01

android

+0

参考添加完整的logcat错误 –

+0

是什么OKHTTP的版本? –

java fatal exception_如何解决FATAL EXCEPTION:pool-4-thread-1错误?相关推荐

  1. Error: Could not create the Java Virtual Machine.Error: A fatal exception has occurred. Progra

    本人学化学的小白,自学JAVA.本来电脑第一次本来装JDK17的时候,应该是装成功了,后来eclipse出了点问题,我以为是JDK17的问题,就卸载重装, 结果就悲剧了. 每次重装都有问题,win命令 ...

  2. Kafka启动出现Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Pr

    kafka启动时,出现报错! [root@Spark1 bin]# cat nohup.out Unrecognized VM option 'UseCompressedOops' Error: Co ...

  3. idea Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Progra

    问题描述 idea中启动工程报错:idea Error: Could not create the Java Virtual Machine. Error: A fatal exception has ...

  4. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program wil

    启动时报错 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Progr ...

  5. 【日常Exception】第二十四回:nested exception is java.lang.NoClassDefFoundError: redis/clients/jedis/util/Pool

    热门系列: 程序人生,精彩抢先看 日常异常,是否也有你似曾相识的那一个 1.问题 近期遇到的一个异常问题如题所示,下面是完整的异常内容,原景重现: PropertyAccessException 1: ...

  6. 成功解决Fatal error in launcher: Unable to create process using ‘“f:\program files\python\python36\pytho

    成功解决Fatal error in launcher: Unable to create process using '"f:\program files\python\python36\ ...

  7. ADS错误(Fatal)L6002U解决方法

    ADS编译错误: Fatal L6002U:Could not open file:.....解决办法 使用ADS1.2编译文件时,出现错误报告Error:(Fatal) L6002U:could n ...

  8. 成功解决Fatal error in launcher: Unable to create process using ‘“…python.exe“ “…jupyter.exe“ notebook‘

    成功解决Fatal error in launcher: Unable to create process using '"f:\program files\python\python36\ ...

  9. 解决:Exception in thread “main“ java.io.IOException: Failed on local exception: com.google.protobuf

    集群上提交运行jar包程序,出现如下错误: Exception in thread "main" java.io.IOException: Failed on local exce ...

最新文章

  1. 快速构建Windows 8风格应用15-ShareContract构建
  2. Shell中的while语句
  3. iOS培训章节——C++函数的重载
  4. Burp破解安装(1.7和2.0)
  5. TVM:使用Tensor Expression (TE)来处理算子
  6. 华晨集团债务违约65亿 宝马中国:华晨宝马运营不受影响
  7. matlab中solver函数_Matlab中微分方程的模型
  8. JAVA基础——异常详解
  9. ios项目 swift 定义常量 其他文件引用_面试应该注意的Swift知识点
  10. java常用api-字符串
  11. Inverting Generative Adversarial Renderer for Face Reconstruction
  12. python调用微信截图_Python调用微信截图工具
  13. 少年:Scala 学一下
  14. 医院门诊透视的生活万花筒
  15. 将cmder安装到windows xp上
  16. hdu 1001 Sum Problem
  17. vscode设置中文字体
  18. opentelemetry+python+jaeger链路追踪相关使用备注
  19. [javaee高级] 设计模式面试题
  20. python自动抓取网管软件的数据_python实现scrapy爬虫每天定时抓取数据的示例代码...

热门文章

  1. pip安装torch错误ERROR: Could not find a version that satisfies the requirement torch及解决办法
  2. 【技术分享】华为叶涛:数据库事务处理的原理与实例剖析
  3. 大家一起做测试的,凭什么你现在拿20k,我却还只有10k?...
  4. windows下应用程序的快捷方式管理
  5. Android ktx使用
  6. Kinect虚拟试衣
  7. 应用层获取UDP下上下行速率
  8. 重新理解4PS营销理论对市场的指导思路
  9. Youtube-dl 和 ffmpeg 常用命令
  10. php开发电子发票接口,EasyAPI发票管理加油站电子发票解决方案