Error on compiling project with library (Aide)

135 views Asked by At

I'm using aide to compile my projects on Android. I added the library as follows:

org.apache.commons:commons-lang3:3.9

But at compile time I get the following error:

enter image description here

I already tried using the:

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

But it didn't solve anything, I saw a question here on Stack Overflow saying to use guava-android, even so it didn't.

1

There are 1 answers

0
DiLDoST On

Open your app build.gradle file (located inside app folder). You'll find something like this:

...
defaultConfig {
    applicationId ...
    minSdkVersion ...
    targetSdkVersion ...
    versionCode ...
    versionName ...
}
...

So here, set the minSdkVersion to 26. It will look like this after changed:

...
defaultConfig {
    applicationId ...
    minSdkVersion 26
    targetSdkVersion ...
    versionCode ...
    versionName ...
}
...