https://kotlinlang.org logo
Title
a

ansman

07/25/2019, 2:29 PM
It does seem to be a tooling issue so perhaps it should be reported to the Android team
m

mbonnin

07/25/2019, 2:30 PM
Can you somehow reproduce it ?
a

ansman

07/25/2019, 2:31 PM
It’s very sporadic. When I get it happens until I shuffle things around in the build scripts
m

mbonnin

07/25/2019, 2:31 PM
But is it bound to an apk? Like once you have it, it happens forever on that same apk ?
a

ansman

07/25/2019, 2:31 PM
Yeah, exactly
It does seem like the service loader file isn’t packaged in the APK for those builds
m

mbonnin

07/25/2019, 2:33 PM
That's weird. It's going to be hard to investigate if there's no way to reproduce it. Maybe if you come up with a few command lines that can reproduce the problem ?
a

ansman

07/25/2019, 2:33 PM
Yeah, I wish I could reproduce it
m

mbonnin

07/25/2019, 2:33 PM
Actually, does it happen if you build from the command line ? That might be an idea/Android Studio thing as well
a

ansman

07/25/2019, 2:34 PM
Yes, it happens for our release builds too which are built from the command line
It does seem to be fixed if I switch my
implementation
to
api
I just did a super clean, removing cache. Let’s see if it happens still
It does only happen for me
Fingers crossed that this solved the issue
🤞 1
p

Paul Woitaschek

09/09/2019, 10:12 AM
@ansman How did you actually fix this? Having this with android plugin 3.6.0-alpha10 & coroutines 1.3.1 right now
a

ansman

09/09/2019, 12:38 PM
I fixed it by clearing the build cache
👍 1