traex / ExpandableLayout

Implementation of ExpandableListview with custom header and custom content.
MIT License
1.64k stars 361 forks source link

'@layout' isn't locating resources in the XML implementation of the ExpandableLayout #34

Open Meeks91 opened 9 years ago

Meeks91 commented 9 years ago

When I try and build the grade I get these errors, both of the same kind, in the XML:

Error:(16) No resource identifier found for attribute 'headerLayout' in package 'com.example.heavymagikhq.expandablelayoutlibrary'

Error:(16) No resource identifier found for attribute 'contentLayout' in package 'com.example.heavymagikhq.expandablelayoutlibrary'

Both indicate the '@layout' function isn't working in this XML code:

 <com.andexert.expandablelayout.library.ExpandableLayout
        android:id="@+id/first"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        expandable:headerLayout="@layout/view_header"   ------- > Not working 
        expandable:contentLayout="@layout/view_content" ------- > not working
        android:background="#e74c3c"/>

Does anyone know how to fix this?

Thanks.

Meeks91 commented 9 years ago

The answer is to import the library directly into the project (i.e. compile project), and not just compile it as a gradle dependency(i.e. compile).

kscMaster commented 7 years ago

it happened. Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

did you meet this problem?