Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build config error, missing aspectpath entry/incorrect classpath #121

Open
jeffcharles opened this issue Jan 30, 2016 · 5 comments
Open

Comments

@jeffcharles
Copy link

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).

@JakeWharton
Copy link
Owner

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 notifications@github.com
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.

@jeffcharles
Copy link
Author

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

@okmanideep
Copy link

@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?)

@rfgamaral
Copy link

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

@hiteshandroid
Copy link

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 notifications@github.com
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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants