ge0rg / aprsdroid

APRSdroid - Geo-Location for Radio Amateurs
https://aprsdroid.org/
GNU General Public License v2.0
504 stars 96 forks source link

Unable to build per readme.md instructions #334

Open Swissman1 opened 1 year ago

Swissman1 commented 1 year ago

I have cloned the source per the readme, and followed the instructions, but when I run gradlew, after it creates the daemon, the build fails with this error:

I am guessing it is a case of the build method being altered but not documented, but still lost on how to rectify.

I would love to jump in and assist on some of the issues, but being able to build the unaltered project is step 1 for that...

Tyler-2 commented 1 year ago

I am not a java dev (or even a dev, really) but I tried to build this, same as you, and failed:

tyler@func-platform:~/Repos/aprsdroid$ git submodule update --init --recursive
Cloning into '/home/tyler/Repos/aprsdroid/PacketDroid'...
Submodule path 'PacketDroid': checked out '4df3e4a955de011bd7696ec8b4fb5f7a1a387f1f'
tyler@func-platform:~/Repos/aprsdroid$ ./gradlew installDebug

FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

* 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 261ms

I also tried it in an android-studio snap and got a whole host of other errors I don't understand.

ge0rg commented 1 year ago

It looks like an issue with my old build system (or maybe Android in general?) and Java 14: https://github.com/gradle/gradle/issues/12599

Maybe you could try OpenJdk 12?