错误:在 res 中使用字体文件夹时,任务 ':app:processDebugResources' 的执行失败 [英] Error:Execution failed for task ':app:processDebugResources' when using font folder inside res

查看:36
本文介绍了错误:在 res 中使用字体文件夹时,任务 ':app:processDebugResources' 的执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 SDK 更新为 Android O 开发者预览版,并使用单个 TextView 开始了一个简单的演示.

I have updated SDK to Android O developer preview and started a simple demo with single TextView.

当我在 res 文件夹中包含 font 时,它开始向我展示

When i included font inside res folder it started showing me

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

这是我的 build.gradle

Here is my build.gradle

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        ...
        minSdkVersion 15
        targetSdkVersion 25
    }
}

注意:我使用的是 Android Studio 2.4 Preview 3

Note : I am using Android Studio 2.4 Preview 3

如果我从 res 中删除 font 文件夹,一切正常

If i remove font folder from res, everything works fine

推荐答案

这个设置对我有用:

compileSdkVersion 'android-O'
buildToolsVersion '26.0.0-rc1'
minSdkVersion 'O'

这篇关于错误:在 res 中使用字体文件夹时,任务 ':app:processDebugResources' 的执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆