Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

5.5 RobotController fails :lint on a default gradle build #262

Open
alan412 opened this issue Aug 26, 2020 · 3 comments
Open

5.5 RobotController fails :lint on a default gradle build #262

alan412 opened this issue Aug 26, 2020 · 3 comments

Comments

@alan412
Copy link

alan412 commented Aug 26, 2020

If you do a full gradle build (say from the command line or in an automated system), the menus fail lint which stops the build

2 ways to fix this:
1 - fix the errors in the menu
or
2 - put

   lintOptions{
      abortOnError false
   }

into build.gradle under FtcRobotController

As a related note, I was surprised that the build.gradle in FtcRobotController didn't use build.common.gradle

@Windwoes
Copy link
Member

Do you happen to know where Lint starts crying?

@alan412
Copy link
Author

alan412 commented Aug 26, 2020 via email

@thoughtless42
Copy link

looks like it was introduced with/content/SkyStone/TeamCode/build.release.gradle implementation 'androidx.appcompat:appcompat:1.2.0' here is a diff that fixes this error
%%writefile /content/SkyStone/FtcRobotController/src/main/res/menu/ftc_robot_controller.xml.patch
--- ftc_robot_controller.xml 2020-09-04 23:28:02.424591542 +0000
+++ ftc_robot_controller.xml 2020-09-04 23:18:16.785614609 +0000
@@ -31,35 +31,35 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->

-


+

  • <item
  • <item
    android:id="@+id/action_settings"
    android:orderInCategory="100"
  • android:showAsAction="never"
  • app:showAsAction="never"
    android:title="@string/settings_menu_item"/>
  • <item
  • <item
    android:id="@+id/action_restart_robot"
    android:orderInCategory="200"
  • android:showAsAction="never"
  • app:showAsAction="never"
    android:title="@string/restart_robot_menu_item"/>
  • <item
  • <item
    android:id="@+id/action_configure_robot"
    android:orderInCategory="300"
  • android:showAsAction="never"
  • app:showAsAction="never"
    android:title="@string/configure_robot_menu_item"/>
  • <item
  • <item
    android:id="@+id/action_program_and_manage"
    android:orderInCategory="550"
  • android:showAsAction="never"
  • app:showAsAction="never"
    android:title="@string/program_and_manage_menu_item"/>
  • <item
  • <item
    android:id="@+id/action_inspection_mode"
    android:orderInCategory="600"
  •  android:showAsAction="never"
    
  •  app:showAsAction="never"
     android:title="@string/inspection_mode_menu_item"/>
    

<item

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

No branches or pull requests

3 participants