Подтвердить что ты не робот

ИОННАЯ ОШИБКА: В <declare-styleable> FontFamilyFont, не может найти атрибут android: fontVariationSettings

Когда я бегу

ионная кордова строит андроид --prod

он показывает ошибки ниже:

    ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex

    FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':processDebugResources'.
    > com.android.ide

.common.process.ProcessException: Failed to execute aapt

* Try:

Run with 
--stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED


Total time: 9.11 secs

Error: /Users/cqismgis/Desktop/MobileGIS/platforms/android/gradlew: Command failed with exit code 1 Error output:
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

и в AndroidStudio, я clikc 'Build', он показывает:

    Error:In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
    Error:Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

Я не знаю, как это исправить, пожалуйста, расскажите мне о деталях шагов исправления.

4b9b3361

Ответ 1

Чтобы решить это:

you_app_folder/plugin и искать plugin.xml во всех плагинах

Перейдите в свою папку с плагином, найдите в этом каталоге:

com.android.support:support-v4:+

а также

com.android.support:support-v4:24.1.1+

Измените его с помощью:

com.android.support:support-v4:27.1.0

затем

Кроме того, я выполнил

ionic cordova platform remove android 

а также

ionic cordova platform add android