I’m trying to build sqlcipher for Android but i get an error when executing “make init”:
git submodule update --init
android update project -p.
make: android: No such file or directory
make: *** [init] Error 1
I’ve made sure that bot the latest NDK and the Android SDK is on my $PATH:
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/rob/android-ndk-r10e:/Users/rob/Library/Android/sdk
What might be causing this error? Thanks for your help!
Hi @dustedrob
What Android platforms are present on your machine? In particular, do you have 19 on your machine?
limxing
February 9, 2016, 10:56am
3
I’m also have this problem.
MacBook-Pro:~ limxing$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/limxing/Library/Android/sdk:/Users/limxing/Library/Android/sdk/platforms:/Users/limxing/Library/Android/sdk/platform-tools:/Users/limxing/Library/Android/android-ndk-r10e
MacBook-Pro:android-database-sqlcipher limxing$ make init
git submodule update --init
android update project -p .
make: android: No such file or directory
make: *** [init] Error 1
Hi @limxing
You will need to setup the Android SDK before using it, additional downloads are required. You may find this tutorial helpful.
limxing
February 13, 2016, 1:34am
5
developernotes:
downloads
I tried again just now.
First
MacBook-Pro:~ limxing$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/limxing/Library/Android/sdk:/Users/limxing/Library/Android/android-ndk-r10e
Second(Successful)
% cd ~/code
% git clone git://github.com/sqlcipher/android-database-sqlcipher.git
Third
% cd android-database-sqlcipher
% make init
It process until this problem
android update project -p .
make: android: No such file or directory
make: *** [init] Error 1
documents screenshot
So, I’m really need your help.
Hi @limxing
Do you have a specific need to build SQLCipher for Android from source? If not, you can use the AAR package that is being distributed for the community. The android
tool appears to still not be on your PATH
, you can verify whether android
can be located by executing:
which android
1 Like
limxing
February 15, 2016, 3:17pm
7
Thank you very much,it works.