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

Lint failure with 4.0.0-rc.1 #476

Closed
hameno opened this issue Oct 3, 2014 · 7 comments · Fixed by #528
Closed

Lint failure with 4.0.0-rc.1 #476

hameno opened this issue Oct 3, 2014 · 7 comments · Fixed by #528

Comments

@hameno
Copy link
Contributor

hameno commented Oct 3, 2014

As requested in https://groups.google.com/forum/#!topic/maven-android-developers/9MbL4DTQeeA I'm creating this issue. All information can be found in the linked thread.

Edit:

LintError: Lint Failure
src\main: No .class files were found in project "main", so none of the classfile based checks could be run. Does the project need to be built first?
Priority: 10 / 10
Category: Lint
Severity: Error
Explanation: Issues related to running lint itself, such as failure to read files, etc.
This issue type represents a problem running lint itself. Examples include failure to find bytecode for source files (which means certain detectors could not be run), parsing errors in lint configuration files, etc.
These errors are not errors in your own code, but they are shown to make it clear that some checks were not completed.

More info:

To suppress this error, use the issue id "LintError" as explained in the Suppressing Warnings and Errors section.

I pushed the branch to github (https://github.com/PSDev/LicensesDialog/tree/maven_plugin_400) and it can be reproduced by simply calling "mvn clean package".

@hameno hameno changed the title Linz failure with 4.0.0-rc.1 Lint failure with 4.0.0-rc.1 Oct 3, 2014
@hameno
Copy link
Contributor Author

hameno commented Oct 17, 2014

Any update?

@Shusshu
Copy link
Member

Shusshu commented Nov 4, 2014

I can confirm this problem. I'll look a bit to see if we can do something easily or not...

@Shusshu
Copy link
Member

Shusshu commented Nov 4, 2014

It's a problem with Lint itself.
I had a quick look at it didn't behaves as expected for me when running lint from the android sdk directly.

@hameno Could you have a try yourself?

So I see 2 possibles ways of solving the problem:

  1. Fix the way AMP calls Lint (cmd line)
  2. Use the lint dependency from maven central and change the whole code in AMP to uses the Lint classes Lint  #357

@Shusshu
Copy link
Member

Shusshu commented Nov 4, 2014

Actually if you read the error msg it is not important as it says it couldn't find any .class files thus couldn't run some lint checks but it actually did those lint check on the other folders that you can find when you open index.html

@hameno
Copy link
Contributor Author

hameno commented Feb 21, 2015

This is still not working with 4.1.1

@Shusshu
Copy link
Member

Shusshu commented Feb 21, 2015

You can put a new flag. I forgot which one but you can check the source
code. I think it's legacy something.
It will enable the lint library from maven central to be used instead of
the cmd line from the android sdk.
On 21 Feb 2015 21:15, "Philip Schiffer" [email protected] wrote:

This is still not working with 4.1.1


Reply to this email directly or view it on GitHub
#476 (comment)
.

@mosabua
Copy link
Member

mosabua commented Feb 24, 2015

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

Successfully merging a pull request may close this issue.

3 participants