lundi 11 mai 2015

Error rendering components from an included library in IntelliJ IDEA 14

I have a layout file that includes controls that are part of a library module that is compiled in the project.

IntelliJ reports that it can't dispaly the control, despite that it shows up properly when running the actual android app on my device.

It suggests rebuilding the project, creating the class, or fixing my build path. The module that has the controls are in the Dependencies tab, and are set to Export, and Scope=Compile.

The layout file references the custom controls via their fully qualified package/class name. The rendering API I've selected is the same version as my Target SDK set in my AndroidMainfest.xml

I have tried both using a tag with the class attribute pointing to the class, as well as a tag where the tag name is the fully qualified class. Both result in IntelliJ not being able to render the view.

Aucun commentaire:

Enregistrer un commentaire