0

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.

George Sun
  • 85
  • 6
VGAPP
  • 13
  • 4

1 Answers1

0

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 ...
}
...
DiLDoST
  • 335
  • 3
  • 12