eowise / recyclerview-stickyheaders

DEPRECATED. Android library that integrate sticky section headers in your RecyclerView
http://eowise.github.io/recyclerview-stickyheaders
MIT License
961 stars 148 forks source link

Warnings when building project #35

Closed Sandrichka22 closed 9 years ago

Sandrichka22 commented 9 years ago

Hi, I have an issue when using your library. When I try to build my project with the command 'gradle build', I get the following warnings:

Warning: com.eowise.recyclerview.stickyheaders.HeaderStore$1: can't find referenced method 'android.support.v7.widget.RecyclerView access$100(com.eowise.recyclerview.stickyheaders.HeaderStore)' in program class com.eowise.recyclerview.stickyheaders.HeaderStore Warning: com.eowise.recyclerview.stickyheaders.HeaderStore$1: can't find referenced class com.eowise.recyclerview.stickyheaders.HeaderInfo Warning: com.eowise.recyclerview.stickyheaders.HeaderStore$1: can't find referenced class com.eowise.recyclerview.stickyheaders.HeaderInfo Warning: com.eowise.recyclerview.stickyheaders.HeaderStore$1$1: can't find referenced class com.eowise.recyclerview.stickyheaders.HeaderInfo Warning: com.eowise.recyclerview.stickyheaders.HeaderStore$1$1: can't find referenced class com.eowise.recyclerview.stickyheaders.HeaderInfo Warning: com.eowise.recyclerview.stickyheaders.HeaderStore$1$1: can't find referenced class com.eowise.recyclerview.stickyheaders.HeaderInfo Warning: com.eowise.recyclerview.stickyheaders.HeaderStore$1$1: can't find referenced method 'java.util.HashMap access$000(com.eowise.recyclerview.stickyheaders.HeaderStore)' in program class com.eowise.recyclerview.stickyheaders.HeaderStore Warning: com.eowise.recyclerview.stickyheaders.HeaderStore$1$1: can't find referenced class com.eowise.recyclerview.stickyheaders.HeaderInfo Warning: com.eowise.recyclerview.stickyheaders.HeaderStore$1$1: can't find referenced class com.eowise.recyclerview.stickyheaders.HeaderInfo Warning: there were 7 unresolved references to classes or interfaces.

I am using the library this way:

dependencies { compile 'com.eowise:recyclerview-stickyheaders:0.5.1@aar' }

So my project build fails with this exception:

FAILURE: Build failed with an exception.

java.io.IOException: Please correct the above warnings first.

Do you know what might be the problem? Thank you very much in advance

leruaa commented 9 years ago

I have no idea... Are you using an annotation processor ?

Sandrichka22 commented 9 years ago

No, I am not.

leruaa commented 9 years ago

Is proguard enabled ?

Sandrichka22 commented 9 years ago

Yes proguard is enabled, and it is a must for my project.

leruaa commented 9 years ago

Is the build failling when disabling proguard ?

Sandrichka22 commented 9 years ago

When proguard is disabled, the build is successful.

leruaa commented 9 years ago

Can you try with :

dependencies {
  compile 'com.eowise:recyclerview-stickyheaders:0.5.2-SNAPSHOT@aar'
}

and proguard enabled ?

Sandrichka22 commented 9 years ago

Just tried it. Using this shapshot version, my build passed as successful! Will you make an update? Thank you very much for the help and time.

leruaa commented 9 years ago

Yes, I will make an update tonight.

Sandrichka22 commented 9 years ago

Ok, thank you once again.