question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dagger-2.17 An exception occurred: java.util.NoSuchElementException

See original GitHub issue
e: [kapt] An exception occurred: java.util.NoSuchElementException
	at com.sun.tools.javac.util.List$2.next(List.java:432)
	at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:302)
	at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:254)
	at dagger.android.processor.AndroidMapKeys.mapKeyValue(AndroidMapKeys.java:75)
	at dagger.android.processor.AndroidMapKeys.lambda$annotationsAndFrameworkTypes$5(AndroidMapKeys.java:56)
	at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1321)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:54
  • Comments:38

github_iconTop GitHub Comments

32reactions
wezley98commented, Aug 8, 2018

To confirm, v2.16 works fine. Only happens when switching to v2.17

11reactions
chrisbanescommented, Sep 16, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find symbol class DataBindingComponent caused by ...
I managed to solve the error by. changing debugImplementation "com.squareup.okhttp3:logging-interceptor:3.8.0" to implementation ...
Read more >
java.util.NoSuchElementException with Dagger 2.27 - - Bountysource
Just tried upgrading our app to Dagger 2.27 and removed all JvmStatic annotations and get this internal error in compilation. Dagger expects something...
Read more >
ThermalManagerService.java - Android Code Search
"Couldn't get cooling device because of HAL error: " ... libcore/ojluni/src/main/java/java/util/NoSuchElementException.java(1 occurrence) 36: public class ...
Read more >
How to handle java.util.NoSuchElementException
This exception extends the RuntimeException class and thus belongs to those exceptions that can be thrown during the operation of the Java ......
Read more >
Android - Dagger
[ERROR] COMPILATION ERROR : [ERROR] error: java.util.concurrent.Executor cannot be provided without an @Provides-annotated method. Fix the problem by adding an ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found