Android studio:我收到以下错误“java.util.NoSuchElementException".但是,我无法跟踪错误 [英] Android studio: I am getting the following error "java.util.NoSuchElementException".However, I can't trace the error

查看:24
本文介绍了Android studio:我收到以下错误“java.util.NoSuchElementException".但是,我无法跟踪错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误

java.util.NoSuchElementException

java.util.NoSuchElementException

当我点击它以显示更多信息时,它是这样说的.

When I click on it to reveal more information, this is what it says.

导致:java.util.NoSuchElementException

Caused by: java.util.NoSuchElementException

与之前的错误不同,它不会显示错误的来源.我该如何解决这个问题?我正在查看我的所有文件,似乎没有任何错误.任何提示或建议表示赞赏.

Unlike previous errors, it doesn't show where the error is coming from. How do I fix this issue? I am looking through all my files and nothing seems to be giving me an error. Any tips or suggestions are appreciated.

推荐答案

@Izabela 是对的.但是,就我而言,我导航到 File -> Settings -> Build,Execution,Deployment -> Instant Run 并通过简单地取消选中最上面的复选框(默认情况下启用)来禁用它.它对我来说非常适合(直到现在).我在 Ubuntu 16.04 LTS 上运行 Android Studio 3.0.1.

@Izabela is right. However, in my case, I navigated to File -> Settings -> Build,Execution,Deployment -> Instant Run and disabled it by simply unchecking the topmost checkbox (which was enabled by default). Its working perfectly for me (till now). I am running Android Studio 3.0.1 on Ubuntu 16.04 LTS.

这篇关于Android studio:我收到以下错误“java.util.NoSuchElementException".但是,我无法跟踪错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆