Skip to content Skip to sidebar Skip to footer

File Was Loaded In The Wrong Encoding 'utf-8' While Pasting New Font To Assets Folder In Android Studio

I am in the very big beginning of learning how to make apps. I would like to add Courgette Regular to my TextView. While pasting font to the Assets Folder I got message: 'File was

Solution 1:

I was having the same problem a couple of days ago,

Here is how to fix it:

  1. Go to File -> Settings -> File Types.
  2. Find the file type that you have linked the .ttf files to (in my case it was a text file)
  3. Deactivate it with the red minus sign on the right hand side.

The next time you'll try to import a .ttf file in Android Studios there will be a popup menu where:

  • You can select Android Studios to read the .ttf files as a certain filetype
  • You can select the program that normally reads .ttf on your computer (The button on the bottom of the menu).

Hoped this helped!

Solution 2:

1) First of Go to your project location and zip copy of your android project. 2) Paste This zip file to another location 3)Than import this project on android studio.

Solution 3:

Please try this:

  1. Goto your current android project location
  2. Zip file creates of your carpeted application project
  3. UnZip or Extract this project to another location
  4. Import this android project in android studio
  5. Then working fine your project

Post a Comment for "File Was Loaded In The Wrong Encoding 'utf-8' While Pasting New Font To Assets Folder In Android Studio"