<commit_before>To build/debug android build.

1) Download the android sdk, and install it. These instructions have been
written with r14 (the latest version at time of writing) of the SDK in mind;
other versions may give problems. On windows r14 unpacked as:

   C:\Program Files (x86)\Android\android-sdk

on Macos an older version installed as:

   /Library/android-sdk-mac_x86

on Linux install it as:

   mkdir ~/android-sdk
   cd ~/android-sdk
   tar ~/Downloads/android-sdk_r20.0.3-linux.tgz

Whatever directory it unpacks to, ensure that both the 'tools' and
'platform-tools' directories inside it have been added to your PATH.

2) Download the android ndk, and unpack it. These instructions were written
with NDK r6b (the latest version at the time of writing) in mind, but the
build has now been tweaked to work with r8b. Other versions may give problems.
On windows I unpacked it as:

   C:\android-ndk-r8b

on Macos an older version unpacked as:

   /Library/android-ndk-r5

on Linux as:

   mkdir ~/android-ndk
   cd ~/android-ndk
   tar jxvf ~/Downloads/android-ndk-r8b-linux-x86.tar.bz2

It is very important that you should unpack it to a directory with no
spaces in the name! (Don't be tempted to put it in C:\Program Files etc)

Ensure that that directory is also added to your PATH.

3) On windows, to use the ndk, you *must* be running under cygwin. This means
you need to install Cygwin 1.7 or greater now.

[ In version r5 of the ndk, when running under cygwin, there were    ]
[ bugs to do with the automatic conversion of dependencies from DOS  ]
[ format paths to cygwin format paths. The 2 fixes can be found in:  ]
[                                                                    ]
[  <http://groups.google.com/group/android-ndk/msg/b385e47e1484c2d4> ]
[                                                                    ]
[ Use the latest version and there should not be a problem.          ]

4) If the SDK has not popped up a window already, bring up a shell, and run
'android' (or android.bat on cygwin/windows). You should now have a window
with a graphical gui for the sdk. From here you can install the different SDK<commit_msg>android: Add note about NDK targets to ReadMe.<commit_after>To build/debug android build.

1) Download the android sdk, and install it. These instructions have been
written with r14 (the latest version at time of writing) of the SDK in mind;
other versions may give problems. On windows r14 unpacked as:

   C:\Program Files (x86)\Android\android-sdk

on Macos an older version installed as:

   /Library/android-sdk-mac_x86

on Linux install it as:

   mkdir ~/android-sdk
   cd ~/android-sdk
   tar ~/Downloads/android-sdk_r20.0.3-linux.tgz

Whatever directory it unpacks to, ensure that both the 'tools' and
'platform-tools' directories inside it have been added to your PATH.

2) Download the android ndk, and unpack it. These instructions were written
with NDK r6b (the latest version at the time of writing) in mind, but the
build has now been tweaked to work with r10b. Other versions may give problems.

It's important that you use the correct NDK for the target platform. If you're
targeting a 32-bit platform (such as "ARM EABI v7a" or "Intel x86 Arm") then
you MUST use the 32-bit target NDK. If you get UnsatisfiedLinkError when
opening a document in MuPDF, then you've tried to use the 64-bit target NDK
with a 32-bit target!

On windows I unpacked it as:

   C:\android-ndk-r10b

on Macos an older version unpacked as:

   /Library/android-ndk-r5

on Linux as:

   mkdir ~/android-ndk
   cd ~/android-ndk
   tar jxvf ~/Downloads/android-ndk32-r10b-linux-x86.tar.bz2

It is very important that you should unpack it to a directory with no
spaces in the name! (Don't be tempted to put it in C:\Program Files etc)

Ensure that that directory is also added to your PATH.

3) On windows, to use the ndk, you *must* be running under cygwin. This means
you need to install Cygwin 1.7 or greater now.

[ In version r5 of the ndk, when running under cygwin, there were    ]
[ bugs to do with the automatic conversion of dependencies from DOS  ]
[ format paths to cygwin format paths. The 2 fixes can be found in:  ]
[                                                                    ]
[  <http://groups.google.com/group/android-ndk/msg/b385e47e1484c2d4> ]
[                                                                    ]
[ Use the latest version and there should not be a problem.          ]

4) If the SDK has not popped up a window already, bring up a shell, and run
'android' (or android.bat on cygwin/windows). You should now have a window
with a graphical gui for the sdk. From here you can install the different SDK
{'fraction_non_alphanumeric': 0.06277931474781868, 'fraction_numerical': 0.020004256224728664, 'mean_word_length': 2.805668016194332, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2822779', 'n_tokens_mistral': 1443, 'n_tokens_neox': 1341, 'n_words': 670}