h6ah4i / android-advancedrecyclerview

RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)
https://advancedrecyclerview.h6ah4i.com/
Apache License 2.0
5.32k stars 860 forks source link

errors when I import project on Android Studio 4.2.1 (last stable for now) #513

Closed Sharabaddin closed 3 years ago

Sharabaddin commented 3 years ago

Android studio:

Android Studio 4.2.1
Build #AI-202.7660.26.42.7351085, built on May 10, 2021
Runtime version: 11.0.8+0-b944-P17168821 amd64
VM: OpenJDK 64-Bit Server VM by N/A
Linux 5.8.0-55-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin
Current Desktop: ubuntu:GNOME

after import

Could not determine java version from '11.0.8'.

The project uses Gradle version which is incompatible with Studio running on Java 10 or newer.
See details at https://github.com/gradle/gradle/issues/8431
Possible solution:
 - Upgrade Gradle wrapper to 4.8.1 version and re-import the project

after upgraded Graddle to 4.8.1 i get:


Caused by: java.util.NoSuchElementException: Cannot access first() element from an empty List

Cannot access first() element from an empty List
Sharabaddin commented 3 years ago

Solve: Click SDK Manager and add 28.0.3 and 28