gpt4 book ai didi

android - 必须声明元素字体系列

转载 作者:太空宇宙 更新时间:2023-11-03 13:11:05 25 4
gpt4 key购买 nike

当我从 github 打开一个项目时,res 文件夹中的文件夹有一个 xml 资源 product_famliy.xml 但 android studio 有一个错误:

Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
E:\googledownload\PaperPlane-master\app\src\main\res\font\product_family.xml
Error:Error: Unsupported type 'font'
Error:Execution failed for task ':app:mergeDebugResources'.
> E:\googledownload\PaperPlane-master\app\src\main\res\font\product_family.xml: Error: Unsupported type 'font'
Information:BUILD FAILED
Information:Total time: 21.311 secs
Information:2 errors
Information:0 warnings
Information:See complete output in console

<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<font
android:fontStyle="normal"
android:fontWeight="400"
android:font="@font/product_sans_regular"
app:fontStyle="normal"
app:fontWeight="400"
app:font="@font/product_sans_regular"/>

<font
android:fontStyle="italic"
android:fontWeight="400"
android:font="@font/product_sans_italic"
app:fontStyle="italic"
app:fontWeight="400"
app:font="@font/product_sans_italic"/>

</font-family>

最佳答案

我猜你需要 Android Studio 3.0

关于android - 必须声明元素字体系列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44856685/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com