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

查看:419
本文介绍了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是正确的。但是,就我而言,我导航到文件->设置->生成,执行,部署->即时运行,并通过取消选中最上面的复选框(默认情况下已启用)来禁用它。它对我来说一直很好(到目前为止)。我在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天全站免登陆