Android-Iconics icon indicating copy to clipboard operation
Android-Iconics copied to clipboard

Custom Font library import error: Expecting member declaration

Open mohammadnouripoor opened this issue 4 years ago • 2 comments

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)

mohammadnouripoor avatar Mar 27 '22 11:03 mohammadnouripoor

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

saeed74 avatar Mar 27 '22 13:03 saeed74

@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).

mikepenz avatar Mar 30 '22 06:03 mikepenz