coroutines icon indicating copy to clipboard operation
coroutines copied to clipboard

Gradle build failing with No value for xpath: main/output/classesDir

Open ivanr opened this issue 5 years ago • 1 comments

I was able to use runtime instrumentation in a quick PoC, but I couldn't get the Gradle plugin, with several different versions of Gradle. The error message is "No value for xpath: main/output/classesDir".

My code is https://github.com/ivanr/poc-conio. The code assumes runtime instrumentation. To replicate the error, please uncomment the plugin configuration.

Thanks.

ivanr avatar Mar 24 '20 11:03 ivanr

The place where this is failing is https://github.com/offbynull/coroutines/blob/master/gradle-plugin/src/main/java/com/offbynull/coroutines/gradleplugin/CoroutinesPlugin.java#L110 . It's trying to figure out where Gradle is putting the output classes.

I don't have the time to debug this. You can look into it if you want -- either the Gradle plugin is making certain assumptions it shouldn't be or the Gradle compiling phase changed around. This plugin was written a while ago.

offbynull avatar Mar 24 '20 13:03 offbynull