You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To clarify, this isn't an issue with Travis CI; this is an issue that has to do with the lint gradle task. However, this comes up in Travis CI because it likely uses some form of ./gradlew build under the hood, which would invoke the lint gradle task. This also precludes using ./gradlew build from the command line in the FTC SDK.
Any call to the lint task will cause this error however (in this case caused by running ./gradlew lint:
> Task :FtcRobotController:lint FAILED
Ran lint on variant debug: 34 issues found
Ran lint on variant release: 34 issues found
Wrote HTML report to file:///home/dansman805/robotics/temp-ftc-sdk/FtcRobotController/build/reports/lint-results.html
Wrote XML report to file:///home/dansman805/robotics/temp-ftc-sdk/FtcRobotController/build/reports/lint-results.xml
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':FtcRobotController:lint'.
> Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
lintOptions {
abortOnError false
}
}
...
The first 3 errors (out of 5) were:
/home/dansman805/robotics/temp-ftc-sdk/FtcRobotController/src/main/res/menu/ftc_robot_controller.xml:39: Error: Should use app:showAsAction with the appcompat library with xmlns:app="http://schemas.android.com/apk/res-auto" [AppCompatResource]
android:showAsAction="never"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/dansman805/robotics/temp-ftc-sdk/FtcRobotController/src/main/res/menu/ftc_robot_controller.xml:44: Error: Should use app:showAsAction with the appcompat library with xmlns:app="http://schemas.android.com/apk/res-auto" [AppCompatResource]
android:showAsAction="never"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/dansman805/robotics/temp-ftc-sdk/FtcRobotController/src/main/res/menu/ftc_robot_controller.xml:50: Error: Should use app:showAsAction with the appcompat library with xmlns:app="http://schemas.android.com/apk/res-auto" [AppCompatResource]
android:showAsAction="never"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Steps for reproduction:
cd into the sdk's directory from the command line
run ./gradlew lint (or ./gradlew build!)
Note: this was run on Fedora, however I doubt OS would matter here
Now of course, this isn't really an issue if you don't call ./gradlew lint, however this also occurs when you run ./gradlew build, which is the most convienient way to build from the command line and how CI would likely go about doing things.
This can either be fixed by fixing the actual lint errors, or by adding
android {
lintOptions {
abortOnError false
}
}
to the build.gradle of the affected modules.
Of course, actually fixing the lint errors would seem to be the preferred course of action.
Reacted by Jackson Isenberg, Noah and Sebastian Erives
Activity
abidingabi commentedon Sep 25, 2020
To clarify, this isn't an issue with Travis CI; this is an issue that has to do with the
lintgradle task. However, this comes up in Travis CI because it likely uses some form of./gradlew buildunder the hood, which would invoke the lint gradle task. This also precludes using./gradlew buildfrom the command line in the FTC SDK.Any call to the
linttask will cause this error however (in this case caused by running./gradlew lint:Steps for reproduction:
cdinto the sdk's directory from the command line./gradlew lint(or./gradlew build!)Note: this was run on Fedora, however I doubt OS would matter here
Now of course, this isn't really an issue if you don't call
./gradlew lint, however this also occurs when you run./gradlew build, which is the most convienient way to build from the command line and how CI would likely go about doing things.This can either be fixed by fixing the actual lint errors, or by adding
android { lintOptions { abortOnError false } }to the build.gradle of the affected modules.
Of course, actually fixing the lint errors would seem to be the preferred course of action.
shaunsingh commentedon Dec 6, 2020
adding
android { lintOptions { abortOnError false } }still results in the same lint errors,
however, running
./gradlew build -x lintseemed to work for meMerge pull request #4 from 13201Hazmat/Noah-Roadrunner_integration
alan412 commentedon Sep 20, 2021
This error is still there in 7.0
cbrewsky commentedon Sep 25, 2021
Can confirm, still here in 7.0...
Windwoes commentedon Oct 3, 2021
This will be fixed in the next release
FF-62 Disregard lint errors (FIRST-Tech-Challenge/FtcRobotController#4)
Windwoes commentedon Jan 17, 2022
Fixed in 7.1
02/05/22
Merge pull request FIRST-Tech-Challenge#4 from derryfieldftc/AS-mecanum
Merge pull request FIRST-Tech-Challenge#4 from narehhovsepyan/work/nh
pre-comp 2 FIRST-Tech-Challenge#4: working auton (MAJOR fixes)? + Tel…
7 remaining items
arm link FIRST-Tech-Challenge#4 test 1
Fix: sync up with season2526 #4
Merge pull request #4 from ryalisuchir/master
Fix: sync up with season2526 #4
Merge pull request #4 from lucas-watkins/main
Merge pull request FIRST-Tech-Challenge#4 from jasoncross/codex/refac…
LM1 - 11/2/2025
Create Mecanum Test FIRST-Tech-Challenge#4
Merge pull request FIRST-Tech-Challenge#4 from Robotic-Conspiracy/dri…
(god i cooked so hard on this one)
Telemetry injection refactor: inject once, flush once
Merge branch 'telemetry-refactor'
Add Susan Zuo attribution comments to telemetry refactor
Merge pull request FIRST-Tech-Challenge#4 from RustyCrabs25950/liangb…
Merge pull request FIRST-Tech-Challenge#4