Android O give font directory with new android-studio version 3.0 but when in drop font-file in font directory and run project it give me a error in font file in font directory. Error:Execution failed for task ':app:mergeDebugResources'.
/home/ttuser4/Downloads/fontPractice/app/src/main/res/font/Dancing_Script.ttf: Error: The file name must end with .xml
Font Formats Android O supports both . otf (OpenType) and . ttf (TrueType) font formats. I'm going to create a simple page design.
That includes changing fonts. To change font styles in GO Launcher, copy the TTF or OTF font files on your phone. Long press on the home screen and select GO Settings > Font > Select Font. Pick the font you want or tap Scan to add files stored on your device.
I also got the similar issue. To fix that i followed the below steps.
distributionUrl
in project-dir/gradle/gradle-wrapper.properties
to latest gradle distribution url(You can get the latest availability of gradle from here) to update the gradle version used to build like below.
distributionUrl=https://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip
com.android.tools.build:gradle
version in the root build.gradle
to the latest like below. (Note: Below mentioned version is the latest one when the answer is posted. The version might be change in future. So take care about that.)buildscript { repositories { jcenter() maven { url 'https://maven.google.com' } } dependencies { classpath 'com.android.tools.build:gradle:3.0.0-alpha4' } } allprojects { repositories { jcenter() maven { url 'https://maven.google.com' } } } task clean(type: Delete) { delete rootProject.buildDir }
It worked for me. Let me know with your comments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With