SQLite Forum

SQLite Android Bindings instructions are out of date
Login
[Instructions for building a custom AAR file](https://sqlite.org/android/doc/trunk/www/install.wiki) are out of date starting at step 4. 

# Obsolete NDK

First, the project uses the now obsolete NDK instead of the Side by side NDK. When I check try to build the project with `./gradlew assembleRelease`, it fails with the following error:

```
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':sqlite3'.
> NDK not configured.
  Download it with SDK manager.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
```

I solved the problem by installing the `NDK (Obsolete)` package within Android Studio.

I've detailed this on [stackoverflow](https://stackoverflow.com/a/62618544/9636).

# Missing Maven Repo

Second, the project fails to resolve `com.android.support:appcompat-v7:23.4.0` because it is missing the `google()` repository in its `build.gradle`:

```
buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        // google() // <-- this line is missing from the current source
                    // uncommenting it allows gradle to resolve
                    // com.android.support:appcompat-v7:23.4.0
                    // for the `sqlite3test` project
    }
}
```

I detailed this on [stackoverflow](https://stackoverflow.com/a/62618699/9636).

### Thanks!

Thanks so much for this project! I've depended on your great work for my entire 12 years as a mobile developer.