Regular client build failed

dagobara year ago

Hello.
Open traccar client in Android Studio, selected regular flavor, gradle build:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app: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 23) were:
  /home/baubau/AndroidStudioProjects/traccar-client-android-master/app/src/main/res/values/strings.xml:5: Error: "shortcut_start" is not translated in "lo" (Lao), "bn" (Bengali), "si" (Sinhala), "uk" (Ukrainian), "km" (Khmer), "ko" (Korean), "ta" (Tamil), "vi" (Vietnamese), "ro" (Romanian) [MissingTranslation]
    <string name="shortcut_start">Start service</string>
            ~~~~~~~~~~~~~~~~~~~~~
  /home/baubau/AndroidStudioProjects/traccar-client-android-master/app/src/main/res/values/strings.xml:6: Error: "shortcut_stop" is not translated in "lo" (Lao), "bn" (Bengali), "si" (Sinhala), "uk" (Ukrainian), "km" (Khmer), "ko" (Korean), "ta" (Tamil), "vi" (Vietnamese), "ro" (Romanian) [MissingTranslation]
    <string name="shortcut_stop">Stop service</string>
            ~~~~~~~~~~~~~~~~~~~~
  /home/baubau/AndroidStudioProjects/traccar-client-android-master/app/src/main/res/values/strings.xml:7: Error: "shortcut_sos" is not translated in "lo" (Lao), "hr" (Croatian), "bn" (Bengali), "si" (Sinhala), "uk" (Ukrainian), "km" (Khmer), "ko" (Korean), "ta" (Tamil), "vi" (Vietnamese), "ro" (Romanian) [MissingTranslation]
    <string name="shortcut_sos">Send SOS</string>
            ~~~~~~~~~~~~~~~~~~~



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

* Get more help at https://help.gradle.org

BUILD FAILED in 26s
143 actionable tasks: 1 executed, 142 up-to-date
10:42:15: Task execution finished 'build'.

Please advise, thanks.

Anton Tananaeva year ago

It tells you what to do.

dagobara year ago

Is there a link with documentation for a replicable build ?
Thanks.

dagobar10 months ago

I succesfully build traccar client in Android Studio :)