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

LintError should be ignored by default because we're not writing Java #2362

Closed
sdebruyn opened this issue Oct 31, 2018 · 0 comments
Closed
Labels
Area: App+Library Build Issues when building Library projects or Application projects. bug Component does not function as intended.
Milestone

Comments

@sdebruyn
Copy link
Contributor

Steps to Reproduce

Exactly the same as #2360

Expected Behavior

No error messages about missing .class files because I'm clearly not writing Java code that compiles to .class files.

Actual Behavior

Errors of type LintError in the log because there were no .class files found.

Version Information

Exactly the same as #2360

Log File

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1017,2): error XA0103: No .class files were found in project "jl", so none of the classfile based checks could be run. Does the project need to be built first? [LintError] [/Users/vagrant/git/src/MyApppp/Droid/MyCustomer.MyProject.MyAppDroid.csproj]
@dellis1972 dellis1972 added bug Component does not function as intended. Area: App+Library Build Issues when building Library projects or Application projects. labels Nov 1, 2018
@dellis1972 dellis1972 added this to the d16-0 milestone Nov 1, 2018
dellis1972 added a commit to dellis1972/xamarin-android that referenced this issue Nov 2, 2018
Fixes dotnet#2360, dotnet#2361, dotnet#2362, dotnet#2363

When running the `Lint` checks on an application we
provide a path to a `project` directory. This is
currently the `$(IntermediateOutputPath)`. The problem
with this is that it also includes the `lp` directory.
The `lp` directory contains ALL the resources and
Manifest files for the library projects. As a result
if you are referencing support packages ALL of those
items are checked too.

It turns out that most of the Manifest files shipped
with the libraries are not complete or will cause
`lint` errors or warnings.

So what we need to do is point the `lint` check at
the `$(IntermediateOutputPath)android`. This will restrict
the checks to the files which the Build system
produces (the java code, and the final app manifest).

This PR includes an updated unit test which tests all
the issues raised in the bug reports.
@ghost ghost locked as resolved and limited conversation to collaborators Jun 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area: App+Library Build Issues when building Library projects or Application projects. bug Component does not function as intended.
Projects
None yet
Development

No branches or pull requests

2 participants