Error:Execution failed for task ':app:processDebugResources' when using font folder inside res

我的未来我决定 提交于 2019-12-05 16:43:42

This setup worked for me:

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

I got the reference from Android Official Documentation

Updating your gradle to -

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

  defaultConfig {
    targetSdkVersion 'O'
  }
  ...
}

dependencies {
  compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
}

will going to be fix your all the problems!!

PS,
You cannot publish your app with this configuration. The "O" version is a provisional API level that is usable only for development and testing during the Android O Developer Preview. You must wait to publish your Android O changes until the final API level is released, and then update your configuration again at that time.

you have to make Assets Folder inside app and past your font into it and you have to register your font in Manifest file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!