hugo icon indicating copy to clipboard operation
hugo copied to clipboard

build config error, missing aspectpath entry/incorrect classpath

Open jeffcharles opened this issue 9 years ago • 5 comments

When I try to add Hugo to my build, I get the following during the :app:compileDebugJavaWithJavac task:

build config error: skipping missing, empty or corrupt aspectpath entry: /Users/jeff/projects/VisitorDetector/app/build/tmp/kotlin-classes/debug
incorrect classpath: /Users/jeff/projects/VisitorDetector/app/build/tmp/kotlin-classes/debug
advice defined in hugo.weaving.internal.Hugo has not been applied [Xlint:adviceDidNotMatch]

and I don't get any of the logging output from Hugo.

Any idea as to what could be going wrong?

The code I'm trying to build with ./gradlew build is at https://github.com/jeffcharles/visitor-detector/tree/add-hugo (specifically the add-hugo branch).

jeffcharles avatar Jan 30 '16 03:01 jeffcharles

Pretty sure it's as simple as the fact that the plugin just can't handle the Kotlin plugin. Right now it hooks into the JavaCompile tasks so Kotlin sources will never be processed (hence the did not match warning). Changing this to a Gradle transform instead of a hacky plugin that hooks into tasks will fix this.

On Fri, Jan 29, 2016 at 10:18 PM Jeffrey Charles [email protected] wrote:

When I try to add Hugo to my build, I get the following during the :app:compileDebugJavaWithJavac task:

build config error: skipping missing, empty or corrupt aspectpath entry: /Users/jeff/projects/VisitorDetector/app/build/tmp/kotlin-classes/debug incorrect classpath: /Users/jeff/projects/VisitorDetector/app/build/tmp/kotlin-classes/debug advice defined in hugo.weaving.internal.Hugo has not been applied [Xlint:adviceDidNotMatch]

and I don't get any of the logging output from Hugo.

Any idea as to what could be going wrong?

The code I'm trying to build with ./gradlew build is at https://github.com/jeffcharles/visitor-detector/tree/add-hugo (specifically the add-hugo branch).

— Reply to this email directly or view it on GitHub https://github.com/JakeWharton/hugo/issues/121.

JakeWharton avatar Jan 30 '16 03:01 JakeWharton

Fair enough. Might be worth calling out that Hugo doesn't support non-Java Android languages for now in the README.

jeffcharles avatar Jan 30 '16 03:01 jeffcharles

@JakeWharton Any intention of

Changing this to a Gradle transform instead of a hacky plugin that hooks into tasks

? (is kotlin support in the pipeline?)

okmanideep avatar Mar 08 '16 15:03 okmanideep

I'm also getting this and I'm not using Kotlin at all:

:app:compileDebugJavaWithJavac advice defined in hugo.weaving.internal.Hugo has not been applied Xlint:adviceDidNotMatch :app:assembleDebug

rfgamaral avatar Jun 15 '16 11:06 rfgamaral

Pretty sure it's as simple as the fact that the plugin just can't handle the Kotlin plugin. Right now it hooks into the JavaCompile tasks so Kotlin sources will never be processed (hence the did not match warning). Changing this to a Gradle transform instead of a hacky plugin that hooks into tasks will fix this.

On Fri, Jan 29, 2016 at 10:18 PM Jeffrey Charles [email protected] wrote:

When I try to add Hugo to my build, I get the following during the :app:compileDebugJavaWithJavac task: build config error: skipping missing, empty or corrupt aspectpath entry: /Users/jeff/projects/VisitorDetector/app/build/tmp/kotlin-classes/debug incorrect classpath: /Users/jeff/projects/VisitorDetector/app/build/tmp/kotlin-classes/debug advice defined in hugo.weaving.internal.Hugo has not been applied [Xlint:adviceDidNotMatch] and I don't get any of the logging output from Hugo. Any idea as to what could be going wrong? The code I'm trying to build with ./gradlew build is at https://github.com/jeffcharles/visitor-detector/tree/add-hugo (specifically the add-hugo branch). — Reply to this email directly or view it on GitHub #121.

@JakeWharton. We are currently migrating our android projects to Kotlin. Is the support for Kotlin to be released soon ?

hiteshandroid avatar Aug 06 '19 11:08 hiteshandroid