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

查看:109
本文介绍了错误:在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天全站免登陆