Следующее сообщение об ошибке, которое я получаю после обновления supportlibs до 27.0.2 и compileVersion до 27
Error:(252, 5) Attribute "font" already defined with incompatible format.
> /home/ralfi/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.0.1.aar/644e31926a52609e6fffe47c9016abcc/res/values/values.xml
> Error:(252, 5) Attribute "font" already defined with incompatible
> format. Error:(252, 5) Original attribute defined here.
> /home/ralfi/ProjectFolder/android-example/app/build/intermediates/res/merged/internal/debug/values/values.xml
> Error:(631) Attribute "font" already defined with incompatible format.
> Error:(607) Original attribute defined here.
и это:
> Error:java.util.concurrent.ExecutionException:
> com.android.ide.common.process.ProcessException: Error while executing
> process /opt/sdk/build-tools/26.0.2/aapt with arguments {package -f
> --no-crunch -I /opt/sdk/platforms/android-27/android.jar -M /home/ralfi/ProjectFolder/android-example/build/intermediates/manifests/full/internal/debug/AndroidManifest.xml
> -S /home/ralfi/ProjectFolder/android-example/build/intermediates/res/merged/internal/debug
> -m -J /home/ralfi/ProjectFolder/android-example/build/generated/source/r/internal/debug
> -F /home/ralfi/ProjectFolder/android-example/build/intermediates/res/internal/debug/resources-internalDebug.ap_
> -D /home/ralfi/ProjectFolder/android-example/build/intermediates/multi-dex/internal/debug/manifest_keep.txt
> --custom-package com.example.android -0 apk -c de,en --output-text-symbols /home/ralfi/ProjectFolder/android-example/build/intermediates/symbols/internal/debug
> --no-version-vectors}
- Также, возвращая supportLibs к 25, я получаю ту же ошибку.
- удаление папок сборки не помогло
РЕДАКТИРОВАТЬ в моих значениях/attrs.xml имя, связанное с шрифтом, происходит только следующим образом:
<declare-styleable name="Styleable">
<attr name="fontFace" format="string"/>
<attr name="underlined" format="boolean"/>
<attr name="android:lineSpacingMultiplier"/>
<attr name="android:textSize"/>
</declare-styleable>
и этот тег:
<attr name="minFontSize" format="reference|dimension"/>