Actually, you’re probably right. Regardless of the error details, it can probably be solved by updating the extension for Gradle.
Basically, you want to rearrange the
dependencies/android/ directory to look like this.
- Create a
src/ folder. Inside, create a
main/ folder. Inside, create a
- Move the code files into
src/main/java/. This is the root folder for Java code, so it should contain folders like
- Move everything else into
build.gradle at the top level (meaning inside
build.gradle, get rid of “
if (1 == 1)” and the eight extra colons. (There should be only three colons before
ANDROID_GRADLE_PLUGIN and only two after.)
It’s been a while since I’ve done this, but I think that covers everything.