今天用android studio在模拟器上运行程序总是出错,模拟器能起来,但程序一直安装运行不了,查看错误日志发现如下错误:

10:49    Emulator: [5228:9620:0808/104900.536:ERROR:ssl_client_socket_impl.cc(1050)] handshake failed; returned -1, SSL error code 1, net_error -10310:49    Emulator: [5228:9620:0808/104900.613:ERROR:ssl_client_socket_impl.cc(1050)] handshake failed; returned -1, SSL error code 1, net_error -10310:49    Emulator: [5228:9620:0808/104919.819:ERROR:ssl_client_socket_impl.cc(1050)] handshake failed; returned -1, SSL error code 1, net_error -10310:49    Emulator: emulator: INFO: QtLogger.cpp:68: Critical: Uncaught ReferenceError: $ is not defined (qrc:/html/js/location-loader.js:1, (null))10:49 Emulator: [5228:9620:0808/104919.824:ERROR:ssl_client_socket_impl.cc(1050)] handshake failed; returned -1, SSL error code 1, net_error -10310:49    Emulator: emulator: INFO: QtLogger.cpp:68: Critical: Uncaught ReferenceError: $ is not defined (qrc:/html/js/location-loader.js:1, (null))

如图:

根据网上的方法试了很多,比如重启模拟器,配置变量等方法都未成功,最后看了一个帖子,问题得以解决,解决方法如下:
进入SDK中的platform-tools文件夹下打开cmd,我这里的路径为:E:\software\rj\bianji\Android\SDK\platform-tools,进入后输入cmd后按回车
即打开cmd窗口:

重启adb,输入如下命令:
adb kill-server
adb devices

Emulator: emulator: INFO: QtLogger.cpp:68: Critical: Uncaught ReferenceError: $ is not defined (qrc:相关推荐

  1. Android Studio模拟器打不开Emulator: emulator: ERROR: x86_64 emulation currently requires hardware accelera

    Emulator: emulator: ERROR: x86_64 emulation currently requires hardware accelera Emulator: Process f ...

  2. 引入JQuery提示:Uncaught ReferenceError: $ is not defined

    在使用jQuery的时候,发现有如下报错: Uncaught ReferenceError: $ is not defined  (anonymous function) 出现这个报错的原因: 1.j ...

  3. Uncaught ReferenceError: is not defined at HTMLAnchorElement.onclick

    原因: 字符串没有添加引号造成的 Uncaught ReferenceError: is not defined at HTMLAnchorElement.onclick var msg= " ...

  4. jQuery报错:Uncaught ReferenceError: $ is not defined在使用jQuery的时候,发现有如下报错:...

    Uncaught ReferenceError: $ is not defined  (anonymous function) 出现这个报错的原因: 1.jQuery库文件的路径不对,检查文件路径是否 ...

  5. net::ERR_CONNECTION_REFUS拒绝连接错误和Uncaught ReferenceError: $ is not defined记录

    错误信息 Uncaught ReferenceError: $ is not defined 进不去ajax的方法 解决: 尝试了换ip,改路径.改参数头等方法,后面发现是有些文件没被编译到, tar ...

  6. Emulator: emulator: ERROR: x86_64 emulation currently requires hardware acceleration!

    今天在运行程序的时候出现ERROR: x86_64 emulation currently requires hardware acceleration!这个问题,通过多次尝试发现按照如下步骤可以解决 ...

  7. 解决Uncaught ReferenceError: $ is not defined报错

    最可能的是引用的各个js的调用顺序有误,重新调整其引用顺序看看能否解决? 或者在你引用js时,路径出错,不是你项目中正确的文件路径. 还有一个原因是你的js中有某些值是不存在的. 除了以上这个具体的错 ...

  8. CORS Uncaught ReferenceError: is not defined

    CORS 跨域描述 Cross-Origin Resource Sharing (CORS)跨域资源共享.所谓跨域指A页面想获取B页面资源,如果两者的协议.域名.端口或者子域名不同,如A是ip地址,B ...

  9. 错误 uncaught referenceerror is not defined 已经解决

    React项目场景: 解决前: package.json "dependencies": {"@babel/runtime": "^7.13.7&qu ...

最新文章

  1. Facebook 重金挖不到,ASP.NET 之父,微软大神“红衣教主”传奇
  2. 【web安全】Spring Boot eureka xstream 反序列化
  3. 实收资本、资本公积、盈余公积的含义和区别
  4. vs2015 linux jni,使用Visual C++ 跨平台移动技术调试JNI Android 应用程序
  5. Linq to Sql 动态条件另类实现方法
  6. tar只解压tar包中某个文件
  7. Qt工作笔记-QHash与QMap查找速度粗略比较实战
  8. 斐波那契数列前n项和 c++_蹲在马桶看算法(Day8—LeetCode之NO.509 斐波那契数列)...
  9. PIR 宣布被营利性机构收购,.org 顶级域名注册费用或上涨
  10. 魔力Python--if __name__ == '__main__' 的理解
  11. 彻底与高通谈崩?苹果被爆计划自研5G调制解调器
  12. ubuntu14.04下修改python默认版本
  13. Qt——P14 Lambda表达式
  14. 量子计算机钻石,科学家在钻石内构建量子计算机
  15. Hbase下载与安装部署(一)- 独立式
  16. 高德地图:热力图、点位基础使用
  17. 如何通过搜索计算机共享打印机驱动程序,怎么解决连接共享打印机时“找不到驱动程序”...
  18. BRCA1、BRCA2基因突变的检测方法与流程
  19. collapsar(collapsar网名什么意思)
  20. 简单实现dom4j解析xml

热门文章

  1. vue引入jquery的方法
  2. Windows下使用pip时出现TSL/SSL错误解决方案
  3. AT8637S(PHS/EN输入接口单通道0.8A低压H桥IC)
  4. MySQL如何配置环境
  5. 安装完PLSQL遇到Initialization error错误解决办法
  6. 怎么查看服务器的性能,查看服务器进程性能查看
  7. js 或者vue中for循环去掉最后一个逗号
  8. centos 硬盘挂载
  9. 资格考试_第四章_证券投资基金的监督
  10. 曾扬言 机器人合法公民_简直荒谬!这个机器人被授予合法公民身份,并公开嘲笑马斯克!...