Closed naturalwarren closed 8 years ago
Looks like you have a corrupt jar file. Maybe try cleaning and rebuilding.
Didn't help. Even did a gw clean --refresh-dependencies
Seemed to be an intermittent problem related to my local setup. Had a friend build my branch and it worked for him.
I think this may be related to using Android Studio and a gradle terminal at the same time. Upon closing Android Studio the problem resolved itself.
I'm seeing this again now too, with IntelliJ. Not really sure what the deal is unless the dependency downloader in the IDE is somehow corrupting jars
Specifically, the stacktrace indicates
Caused by: java.io.FileNotFoundException: JAR entry META-INF/services/com.google.auto.value.extension.AutoValueExtension not found in /Users/pandanomic/dev/java/contributing/auto-value-moshi/auto-value-moshi/build/libs/auto-value-moshi-0.4.3-SNAPSHOT.jar
Yet when I dig into that jar, it's there. 100% reproducible on https://github.com/rharter/auto-value-moshi when running ./gradlew compileJava
It seems to work the first time, and then fail forever after. Happens when I do a local maven installation of the artifact as well
I'm getting this as well. After I stop the gradle daemon it seems to work.
I don't know what to suggest. I don't think there's anything we can do on the AutoValue side.
@eamonnmcmanus yeah I'm not sure. Just wanted to surface that extra bit of information in case it's useful.
Restarting the Gradle daemon also seemed to fix this (at least temporarily) for me. Pretty annoying but at least we can work around it.
Never seen this issue on any other projects, only now while I'm hacking on auto-value-gson extension.
@naturalwarren When you close Android Studio it will forcefully stop all running Gradle daemons, so essentially you had the same workaround as ./gradlew --stop
Seeing this when creating an extension. Can anyone help discern what's wrong?