'@layout' isn't locating resources in the XML implementation of the ExpandableLayout
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.
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).
it happened. Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
did you meet this problem?