# Make build-release

**URL:** <https://discuss.zetetic.net/t/make-build-release/3888>\
**Category:** SQLCipher\
**Created:** [September 6, 2019, 7:55pm UTC](https://discuss.zetetic.net/t/make-build-release/3888 "2019-09-06T19:55:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bblackbelt](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/bblackbelt/32/1137_2.png) [@bblackbelt](https://discuss.zetetic.net/u/bblackbelt)\
**Post date:** [September 6, 2019, 7:55pm UTC](https://discuss.zetetic.net/t/make-build-release/3888/1 "2019-09-06T19:55:02Z")

</div>

Hi,

I am trying building the library, using the instructions, on macos. I installed the ndk r15c, exported ANDROID\_NDK\_ROOT, and run `make install` and `make build-release` . After sometime the latter fails with

```auto
* What went wrong:
Execution failed for task ':android-database-sqlcipher:buildNative'.
> A problem occurred starting process 'command 'ndk-build''

```

running the command manually says

```auto
Android NDK: Could not find application project directory !    
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. 

```

I tried setting it to point to the source folder but keep failing with

```auto
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-14.    
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: Android.mk    

```

i also have ndk-build in the path

Did I miss something?

Thanks for the help

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [September 6, 2019, 8:09pm UTC](https://discuss.zetetic.net/t/make-build-release/3888/2 "2019-09-06T20:09:34Z")

</div>

Hi @bblackbelt

There isn’t an `install` target, however, did you run `make init` before your call to `make build-release`? If not, you will need to do that.

---

<div class="post-metadata">

**Author:** ![bblackbelt](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/bblackbelt/32/1137_2.png) [@bblackbelt](https://discuss.zetetic.net/u/bblackbelt)\
**Post date:** [September 6, 2019, 8:39pm UTC](https://discuss.zetetic.net/t/make-build-release/3888/3 "2019-09-06T20:39:30Z")

</div>

Yes, sorry what I meant is `make build-release` after I ran `make init`.

Is there an ETA for the next release?

Thanks

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [September 6, 2019, 9:46pm UTC](https://discuss.zetetic.net/t/make-build-release/3888/4 "2019-09-06T21:46:52Z")

</div>

Hi @bblackbelt

You might try invoking the gradle task directly to see if it provides some additional output. We do not have a release date available at this time.

---

<div class="post-metadata">

**Author:** ![bblackbelt](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/bblackbelt/32/1137_2.png) [@bblackbelt](https://discuss.zetetic.net/u/bblackbelt)\
**Post date:** [September 7, 2019, 8:05am UTC](https://discuss.zetetic.net/t/make-build-release/3888/5 "2019-09-07T08:05:45Z")

</div>

Hi @developernotes, thanks for the help. Gradle wasn’t picking up the PATH and therefore the task was failing. Forcing the path like

`"$System.env.ANDROID_NDK_ROOT/ndk-build"`

allowed me to build the aar

BR

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [September 9, 2019, 1:09pm UTC](https://discuss.zetetic.net/t/make-build-release/3888/6 "2019-09-09T13:09:30Z")

</div>

Hi @bblackbelt

Great, we are happy to hear you were able to build the software!

---

<div class="post-metadata">

**Author:** ![petrakeas](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/petrakeas/32/1057_2.png) [@petrakeas](https://discuss.zetetic.net/u/petrakeas)\
**Post date:** [May 19, 2022, 12:09pm UTC](https://discuss.zetetic.net/t/make-build-release/3888/7 "2022-05-19T12:09:12Z")

</div>

In my case the reason was that I had not added the NDK folder in my system’s PATH.

Even when adding it, the problem persisted. This was because the gradle daemon did not restart and the JVM didn’t see the updated PATH variable. So, after changing your PATH or environmental variables, make sure that you shutdown JVM.

Either way, the latest SQLCipher versions use a full path to “ndk-build”, but in case you need to build an older version, this is required.
