You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run ./gradlew build in Ubuntu 18.04 , the error report:
MAVSDK-Java/sdk/mavsdk/build/generated/source/proto/main/mavsdk/io/mavsdk/log_files/LogFiles.java:368: error: method downloadLogFile(Entry,String) is already defined in class LogFiles
public Single<LogFiles.ProgressData> downloadLogFile(@NonNull Entry entry, @NonNull String path) {
^
1 error
The text was updated successfully, but these errors were encountered:
Yes there is an issue in the proto files that does not work with Java. I need to fix that at some point. In the meantime, just edit the proto files like this:
diff --git a/protos/log_files/log_files.proto b/protos/log_files/log_files.proto
index 8307c89..b4c9bc3 100644
--- a/protos/log_files/log_files.proto+++ b/protos/log_files/log_files.proto@@ -17,10 +17,6 @@ service LogFilesService {
option (mavsdk.options.async_type) = ASYNC;
option (mavsdk.options.is_finite) = true;
}
- // Download log file synchronously.- rpc DownloadLogFile(DownloadLogFileRequest) returns(DownloadLogFileResponse) {- option (mavsdk.options.async_type) = SYNC;- }
// Erase all log files.
rpc EraseAllLogFiles(EraseAllLogFilesRequest) returns(EraseAllLogFilesResponse) {
option (mavsdk.options.async_type) = SYNC;
@@ -42,11 +38,6 @@ message DownloadLogFileResponse {
ProgressData progress = 2; // Progress if result is progress
}
-message DownloadLogFileRequest {- Entry entry = 1; // Entry of the log file to download.- string path = 2; // Path of where to download log file to.-}-
message EraseAllLogFilesRequest {}
message EraseAllLogFilesResponse {
LogFilesResult log_files_result = 1;
JonasVautherin
changed the title
build sdk error!!!
error: method downloadLogFile(Entry,String) is already defined in class LogFiles
Sep 27, 2022
When I run
./gradlew build
in Ubuntu 18.04 , the error report:The text was updated successfully, but these errors were encountered: