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:
- Go to File -> Settings -> File Types.
- Find the file type that you have linked the .ttf files to (in my case it was a text file)
- 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:
- Goto your current android project location
- Zip file creates of your carpeted application project
- UnZip or Extract this project to another location
- Import this android project in android studio
- 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"