java.util.NoSuchElementException

head of empty list

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web93

  • via GitHub by pfn
    ,
  • Stack trace

    • java.util.NoSuchElementException: head of empty list at scala.collection.immutable.Nil$.head(List.scala:337) at scala.collection.immutable.Nil$.head(List.scala:334) at android.Dependencies$AarLibrary.moduleID$lzycompute(dependencies.scala:89) at android.Dependencies$AarLibrary.moduleID(dependencies.scala:87) at android.Dependencies$LibEquals.hashCode(dependencies.scala:136) at scala.collection.mutable.FlatHashTable$HashUtils$class.elemHashCode(FlatHashTable.scala:391) at scala.collection.mutable.HashSet.elemHashCode(HashSet.scala:41) at scala.collection.mutable.FlatHashTable$class.findEntryImpl(FlatHashTable.scala:123) at scala.collection.mutable.FlatHashTable$class.containsEntry(FlatHashTable.scala:119) at scala.collection.mutable.HashSet.containsEntry(HashSet.scala:41) at scala.collection.mutable.HashSet.contains(HashSet.scala:58) at scala.collection.GenSetLike$class.apply(GenSetLike.scala:43) at scala.collection.mutable.AbstractSet.apply(Set.scala:45) at scala.collection.SeqLike$$anonfun$distinct$1.apply(SeqLike.scala:494) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.SeqLike$class.distinct(SeqLike.scala:493) at scala.collection.AbstractSeq.distinct(Seq.scala:40) at android.Dependencies$LibrarySeqOps.distinctLibs(dependencies.scala:146) at android.Resources$.collectdeps(resources.scala:323) at android.Resources$.doCollectResources(resources.scala:68) at android.Tasks$$anonfun$40$$anonfun$apply$45.apply(tasks.scala:489) at android.Tasks$$anonfun$40$$anonfun$apply$45.apply(tasks.scala:488) at android.Tasks$$anonfun$withCachedRes$1.apply(tasks.scala:847) at android.Tasks$$anonfun$withCachedRes$1.apply(tasks.scala:845) at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:253) at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:253) at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:267) at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:263) at sbt.Difference.apply(Tracked.scala:224) at sbt.Difference.apply(Tracked.scala:206) at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:263) at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:262) at sbt.Difference.apply(Tracked.scala:224) at sbt.Difference.apply(Tracked.scala:200) at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:262) at sbt.FileFunction$$anonfun$cached$2.apply(Tracked.scala:260) at android.Tasks$.withCachedRes(tasks.scala:848) at android.Tasks$$anonfun$40.apply(tasks.scala:488) at android.Tasks$$anonfun$40.apply(tasks.scala:476) at scala.Function8$$anonfun$tupled$1.apply(Function8.scala:35) at scala.Function8$$anonfun$tupled$1.apply(Function8.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) at sbt.std.Transform$$anon$4.work(System.scala:63) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) at sbt.Execute.work(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159) at sbt.CompletionService$$anon$2.call(CompletionService.scala:28) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    HandemelindoHandemelindo
    4 times, last one
    bandocabandoca
    3 times, last one
    rprp
    2 times, last one
    harshgharshg
    Once,
    jokesterjokester
    2 times, last one
    2 more bugmates