The android_do cross-compile script is broken. If you run it as is, it will fail.
Now change this line and the next to use --platform=android-21, the build will succeed, but the binary will fail when you run cjdroute on the phone (on my Android 4.4.4 anyways).
So you need to change the line back to --platform=android-9 and compile.
Wait... what? That was the original value that failed to compile the first time!
Yes. The trick is to compile once with --platform=android-21 first, then compile with --platform=android-9, and the resulting binary will run properly on the Android 4.4.4.
But... how?
Some global environment state was changed in the first compilation? I don't know. It's a bug.
The android_do cross-compile script is broken. If you run it as is, it will fail.
Now change this line and the next to use
--platform=android-21
, the build will succeed, but the binary will fail when you runcjdroute
on the phone (on my Android 4.4.4 anyways).So you need to change the line back to
--platform=android-9
and compile.Yes. The trick is to compile once with
--platform=android-21
first, then compile with--platform=android-9
, and the resulting binary will run properly on the Android 4.4.4.Some global environment state was changed in the first compilation? I don't know. It's a bug.