cyberkaida / reverse-engineering-assistant

An AI assistant for reverse engineering tasks 👩‍💻
Apache License 2.0
165 stars 15 forks source link

build error about gradle #64

Closed madjohn698 closed 1 week ago

madjohn698 commented 2 weeks ago

when I use gradle to build ghidra assistant, there are some error on below: `test@vm:~/ai/re/ghidra-assistant$ gradle -PGHIDRA_INSTALL_DIR="/opt/ghidra"

FAILURE: Build failed with an exception.

BUILD FAILED in 2s ` my gradle version is 7.2, the detail is: Gradle 7.2

Build time: 2021-08-17 09:59:03 UTC Revision: a773786b58bb28710e3dc96c4d1a7063628952ad

Kotlin: 1.5.21 Groovy: 3.0.8 Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020 JVM: 16.0.1 (Private Build 16.0.1+9-Ubuntu-120.04) OS: Linux 5.19.0-50-generic amd64

cyberkaida commented 2 weeks ago

I am not sure about this. I wonder if Gradle is able to pull from Maven Central. Do you have more information about your setup? I will try to recreate using a container.

cyberkaida commented 2 weeks ago

Please also update your Java install, I think it is below the required version for Ghidra and Protobuf. This might be the issue.

madjohn698 commented 2 weeks ago

thanks, cyberkaida, my java infos as below: test@vm:~$ java --version openjdk 17.0.8 2023-07-18 OpenJDK Runtime Environment (build 17.0.8+7-Ubuntu-122.04) OpenJDK 64-Bit Server VM (build 17.0.8+7-Ubuntu-122.04, mixed mode, sharing) maybe the gradle is not able to pull from Maven Central. After make protocol, I want to do 'gradle -PGHIDRA_INSTALL_DIR="/opt/ghidra"', these is my step. The details are:

// build.gradle allprojects { repositories { // mirror maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/public/' } // mavenCentral() } }

madjohn698 commented 1 week ago

It's done, the gradle version resson.