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
Android studio:
after import
after upgraded Graddle to 4.8.1 i get: