Building instruction on github page aren't working

OK, with this NDK it is working. Would be nice if this will be written in the Readme :wink:

2 Likes

I am not sure where this version is pinned, is it in

or somehow derived from build.gradle config.

Don’t know much about Android build system. @Hocuri any idea how can NDK version be updated?

I can’t edit the first post. Is some able to change it to [SOLVED] ? Thx

You can mark any post in the thread as a solution.

If there is no such button, maybe it’s because it’s “Guides” category and guides are not supposed to have a solution?

SOLUTION: Use the very old 21b NDK

Yes, it’s probably somewhere in the 6200805_latest:

No idea how fix the build problems with the newer versions so that we can upgrade.

Nice, finally :tada::tada::tada:!! And thanks @link2xt for chiming in and having the right intuition (or knowledge)!

Totally. We already have

Currently ndk20b is the minimum required version. Newer versions will likely work, however, are not tested and not used in official releases, in general, changes on the ndk-version should be done with care.

which we can improve; alternatively, we could add a Troubleshooting entry.

Sth. like:

+Use NDK version r22b (22.1.7171670). Versions that are a bit newer
+or older will also work, but if your version is too new or too old, you will get
+a build error like TODO which of your error messages was caused by the wrong NDK?
 Currently ndk20b is the minimum required version.
-Newer versions will likely work, however, are not tested and not used
-in official releases, in general, changes on the ndk-version should be
-done with care.
1 Like

@LeOS-GSI What do you think about the proposed readme change, and which of your error messages was caused by the wrong NDK?

Edit: I also already created a PR on GitHub, you can also comment there: Improve readme by Hocuri ¡ Pull Request #2285 ¡ deltachat/deltachat-android ¡ GitHub

@LeOS-GSI ping - do you think that with Improve readme by Hocuri · Pull Request #2285 · deltachat/deltachat-android · GitHub the this problem wouldn’t have occured?

Support for NDK r23c (current LTS release) has been added:

Newer NDKs do not work because of dropped androideabi16-clang compilers. Using newer NDK means dropping support for Android 4 and it’s not an option for Delta Chat.