When using an Android Library Project how do you reference xml resources properly?

前端 未结 4 1193
耶瑟儿~
耶瑟儿~ 2020-12-29 20:02

I have an Android Library Project that contains several styles/themes defined in its styles.xml file.

Normally, when referencing this style in some other xml layout

4条回答
  •  无人及你
    2020-12-29 20:24

    I just had this issue in Android Studio. It seems Android Studio didn't realise my library project was a library despite the project.properties stating android.library=true.

    I fixed this issue by checking the "Is Library" checkbox in Project Structure.

    enter image description here

提交回复
热议问题