Build Instruction
The Android examples are compiled using Android Studio Electric Eel (which uses
Android Gradle Plugin 7.4). If you have an older version of Android Studio you may
have to downgrade AGP to version 7.3 (or older) by editing the top-level build.gradle
In case you receive the following error: Unsupported Modules Detected: Compilation is not supported for following modules:. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
- Close the project
- Clouse Android Studio
- Delete the
.idea
directory - Delete all
.iml
files - Reopen the project in Android Studio.
Reference: StackOverflow
Also try to "Invalidate Caches" in Android Studio.