博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Android Studio Errors
阅读量:4328 次
发布时间:2019-06-06

本文共 446 字,大约阅读时间需要 1 分钟。

1.The import org.apache.http.client;

tip: cannot be resolved;

resolve: 

add this line in build.gradle android { useLibrary 'org.apache.http.legacy' }

2.Can't create handler inside thread that has not called Looper.prepare()

tip:Can't create handler inside thread that has not called Looper.prepare()

resolve:

new Thread() {

  public void run() {

    Looper.prepare();

    //...

    Looper.loop();

  }

}.start();

转载于:https://www.cnblogs.com/jamkier/p/ASErrors.html

你可能感兴趣的文章
万方数据知识平台 TFHpple +Xpath解析
查看>>
Hive实现oracle的Minus函数
查看>>
秒杀多线程第四篇 一个经典的多线程同步问题
查看>>
RocketMQ配置
查看>>
vs code调试console程序报错--preLaunchTask“build”
查看>>
蚂蚁金服井贤栋:用技术联手金融机构,形成服务小微的生态合力
查看>>
端口号大全
查看>>
机器学习基石笔记2——在何时可以使用机器学习(2)
查看>>
POJ 3740 Easy Finding (DLX模板)
查看>>
MySQL 处理重复数据
查看>>
关于typedef的用法总结(转)
查看>>
【strtok()】——分割字符串
查看>>
Linux下安装rabbitmq
查看>>
曹德旺
查看>>
【转】判断点在多边形内(matlab)
查看>>
java基础之集合:List Set Map的概述以及使用场景
查看>>
Python 线程 进程 协程
查看>>
iOS语言中的KVO机制
查看>>
excel第一次打开报错 向程序发送命令时出错 多种解决办法含终极解决方法
查看>>
响应式web设计之CSS3 Media Queries
查看>>