I am trying to add Kotlin sources of an AAR in Android Studio 3.3.2. It doesn't work when I select "Choose Sources..." and choose the corresponding source.jar. Android Studio only displays "Attaching..." but nothing happens, as seen in the screenshot below.
Either there is a Bug in Android Studio since I can see a NoSuchElementException in the logs or the source.jar is not as needed. Any hint's to solve the issue are welcome.
Here is the exception:
java.util.NoSuchElementException
at java.util.Collections$EmptyIterator.next(Collections.java:4189)
at org.jetbrains.plugins.gradle.util.GradleAttachSourcesProvider.getSourceFile(GradleAttachSourcesProvider.java:160)
at org.jetbrains.plugins.gradle.util.GradleAttachSourcesProvider.access$100(GradleAttachSourcesProvider.java:59)
at org.jetbrains.plugins.gradle.util.GradleAttachSourcesProvider$1$1.onSuccess(GradleAttachSourcesProvider.java:126)