Hi, I am not an app developer but I have some experience with programming in other languages. I am trying to compile the OsmAnd Android on MacOS. I read the steps explained here:
https://osmand.net/docs/technical/build-osmand/how-to-compile-the-android-version I first setup the developer environment by typing the two commands: repo init -u https://github.com/osmandapp/OsmAnd-manifest -m readonly.xml repo sync I then downloaded the source code by typing git clone https://github.com/osmandapp/Osmand.git android I exported the environment variables ANDROID_SDK, ANDROID_NDK and ANDROID_HOME with the correct paths. I then typed: cd android/OsmAnd && ../gradlew assembleNightlyFreeLegacyFatDebug but I get this error: 23 warnings and 1 error generated. make: *** [/Users/nikosb/Library/Android/sdk/ndk/29.0.14206865/build/core/build-binary.mk:422: obj/local/x86/objs/osmand/__/__/__/native/src/java_wrap.o] Error 1 make: *** Waiting for unfinished jobs.... fcntl(): Bad file descriptor [x86] Compile++ : osmand <= routeCalculationProgress.cpp *> Task :OsmAnd:buildOsmAndCore* FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':OsmAnd:buildOsmAndCore'. > Process 'command 'bash'' finished with non-zero exit value 2 * 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 48s 57 actionable tasks: 51 executed, 6 from cache For the SKD version I have the following directories in Library/Android/sdk/build-tools 34.0.0, 35.0.0 and 35.0.1 and openjdk version 23.0 I also tried opening the project in Android Studio and Running it by I get this error: 33 tests completed, 7 failed Caused by: java.io.FileNotFoundException at SearchUICoreGenericTest.java:23 Can I get help with resolving these issues and compiling the Android code? Regards, Nikos -- You received this message because you are subscribed to the Google Groups "OsmAnd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/osmand/16508d26-c1a3-436e-8c7e-c9ed97e67ad8n%40googlegroups.com.
