OxygenCobalt / Auxio

A simple, rational music player for android
GNU General Public License v3.0
2.02k stars 133 forks source link

Lint failure during build #261

Closed alanorth closed 1 year ago

alanorth commented 1 year ago

Describe the bug/crash:

I've been getting a lint failure while trying to build the dev branch for the last few days:

> Task :app:lintVitalRelease FAILED
/home/aorth/src/git/Auxio/app/src/main/res/values-nl/strings.xml:49: Error: "set_quality_covers_desc" is translated here but not found in default locale [ExtraTranslation]
    <string name="set_quality_covers_desc">Verhoogt de kwaliteit van de albumhoezen, maar resulteert in langere laadtijden en hoger geheugengebruik </string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/aorth/src/git/Auxio/app/src/main/res/values-ar-rIQ/strings.xml:58: Error: "set_quality_covers_desc" is translated here but not found in default locale [ExtraTranslation]
    <string name="set_quality_covers_desc">يزيد من جودة غلاف الالبوم، لكن يؤذي إلى زيادة وقت التحميل واستخدام اعلى للذاكرة</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/aorth/src/git/Auxio/app/src/main/res/values-es/strings.xml:58: Error: "set_quality_covers_desc" is translated here but not found in default locale [ExtraTranslation]
    <string name="set_quality_covers_desc">Incrementa la calidad de las carátulas, pero deriva en mayores tiempos de carga y uso de memoria</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/aorth/src/git/Auxio/app/src/main/res/values-ru/strings.xml:58: Error: "set_quality_covers_desc" is translated here but not found in default locale [ExtraTranslation]
    <string name="set_quality_covers_desc">Улучшает качество обложек, но увеличивает время загрузки и использование памяти</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/aorth/src/git/Auxio/app/src/main/res/values-it/strings.xml:59: Error: "set_quality_covers_desc" is translated here but not found in default locale [ExtraTranslation]
    <string name="set_quality_covers_desc">Migliora la qualità delle copertine, ma comporta maggiori tempi di caricamento e consumo di memoria</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/aorth/src/git/Auxio/app/src/main/res/values-hr/strings.xml:73: Error: "set_quality_covers_desc" is translated here but not found in default locale [ExtraTranslation]
    <string name="set_quality_covers_desc">Povećava kvalitetu omota albuma, no uzrokuje dulje učitavanje i povećanje korištenja memorije</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/aorth/src/git/Auxio/app/src/main/res/values-fil/strings.xml:76: Error: "set_quality_covers_desc" is translated here but not found in default locale [ExtraTranslation]
    <string name="set_quality_covers_desc">Pinapataas ang kalidad ng album cover, ngunit nagdudulot ng mas-mahabang tagal ng pag-load at mas-mataas na pag-gamit ng memorya</string>
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   Explanation for issues of type "ExtraTranslation":
   If a string appears in a specific language translation file, but there is
   no corresponding string in the default locale, then this string is probably
   unused. (It's technically possible that your application is only intended
   to run in a specific locale, but it's still a good idea to provide a
   fallback.)

   Note that these strings can lead to crashes if the string is looked up on
   any locale not providing a translation, so it's important to clean them
   up.

7 errors, 0 warnings

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Lint found fatal errors while assembling a release target.

I'm building like this:

$ export ANDROID_SDK_ROOT="/home/aorth/Android/Sdk"
$ export NDK_PATH="/home/aorth/Android/Sdk/ndk/23.2.8568313"
$ python3 prebuild.py
...
success: completed pre-build
$ ./gradlew aR

Thanks!

OxygenCobalt commented 1 year ago

Unused string translations. I was under the impression that Weblate cleans these up, but apparently they are just as flaky as the built-in unused resource cleaner in android studio. I'll try to fix it when I have time.