Closed Altitechlab closed 5 years ago
Ran into the same error while adding this library to a new project.
It's likely that the error is related to the use of Java 8: https://stackoverflow.com/questions/49512629/default-interface-methods-are-only-supported-starting-with-android-n
Changing Source and Target Compatibility fixed the issue for me.
Hi Hdsrob, Thanks for your comments. I solved it. But seem there is another issue. I used this method, but seems it didn't work. new Handler().postDelayed(new Runnable() { @Override public void run() { mRecyclerView.scrollToPosition(position); } }, 300); Did you meet this issue? and how to resolve it? Thanks for your support.
I already have Java 8 Enabled in my projects but still get that same error on build, any solution yet?
@MathiewNguyen could you please open ask a question on Stackoverflow providing more details, like what's the error you are getting?
@kaustav07 did you try the solution proposed by @hdsrob ?
@luizgrp I have already Java 8 enabled which was @hdsrob 's solution, but still it was not working, currently I am using version 1.2.0 of this library which is working fine.
@kaustav07 it's hard to give a solution with too little information about your project. Could you please create a project from scratch and add the library and see if it works? If it doesn't could you please add to a repository in your github account and share with us? Please keep this in mind when creating it. You can also check the demo app configurations, which is working with the current version of the library.
Dear Supporters,
I want to use this library on my project, but after I implementation the library version 2.1.0 as below:
implementation 'io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:2.1.0'
Then I ran my project and I got an error:
:app:transformClassesWithMultidexlistForDebug FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 4s
This is my build tool of my project:
android { compileSdkVersion 28 buildToolsVersion '28.0.3' defaultConfig { multiDexEnabled true minSdkVersion 19 targetSdkVersion 26 }
SectionedRecyclerViewAdapter library:Could you please help me to resolve this issue?
Thanks in advance.