mikepenz / Android-Iconics

Android-Iconics - Use any icon font, or vector (.svg) as drawable in your application.
https://mikepenz.dev
Apache License 2.0
5.19k stars 617 forks source link

Custom Font library import error: Expecting member declaration #618

Closed mohammadnouripoor closed 2 years ago

mohammadnouripoor commented 2 years ago

Hi, I'm trying to import my custom font icon with android-iconics.mikepenz.com but when add the generated lib as module in android studio. Kotlin Class showing me an error on enum: Expecting member declaration. Can you please help me with that? Screenshot (5)

saeed74 commented 2 years ago

removing : will fix this. so pho_activity:('\uf230') must be pho_activity('\uf230') for example.

mikepenz commented 2 years ago

@mohammadnouripoor sadly some of the more recent icon fonts have a different css format which can cause the above problem.

Please follow and remove the : as outlined by @saeed74 (thanks).