Android Question ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font

Discussion in 'Android Questions' started by Kentric, May 26, 2018.

  1. Kentric

    Kentric New Member Licensed User

    I would appreciate any help on the following:

    Why am I getting this error with library 'RunTimePermissions' during compile

    Generating R file. Error
    ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
    ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
    ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight


    I am testing with an empty project, no code and no other libraries.
    If I remove the reference to the library, it compiles fine.

    B4A Version 8.0:
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. Kentric

    Kentric New Member Licensed User

    Ok Erel, thanks.

    I only have the B4A SDK Manager to manage the Android SDK, I know of no other way.

    However, I have solved my problem, I think.

    I changed the path to android.jar from android-24 to android-27.

    Not sure why this fixed it but I would guess that it has something to do with Runtime Permissions not being available in earlier platforms.
    Anyhow, its now working.

    Thank you.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice