免責事項:私はAndroid開発を初めて使いました。aaptがFontFamilyFontエラーで失敗する
のAndroid SDK:7.1.1、APIレベル25 REV 3.
ビルドツール:25.0.3
のAndroidManifest.xml:
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-compat</artifactId>
<version>27.0.0</version>
<type>aar</type>
</dependency>
:プロジェクトの依存関係を使用して
<uses-sdk android:minSdkVersion="25" android:targetSdkVersion="25"/>
Building gets me(aapt.exeから):
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
support-compatバージョンを25.0.1に変更すると、エラーはありません。
しかし、私は27からの機能(FontRequest)が必要であり、私の理解では、これはライブラリがサポートするものです。
なぜそれが構築されないのでしょうか?ありがとう。
あなたはeclipseを使用していますか? – diegoveloper
@diegoveloper IDEA。しかし、私はandroid-maven-pluginでビルドしています。 –
compileSdkVersion 27 – diegoveloper