Skip to content

Commit

Permalink
desugaring is mandatory for old android version to avoid
Browse files Browse the repository at this point in the history
avoids NoClassDefFoundError: Failed resolution of: Ljava/time/Duration missing in android java classes

avoids $ExternalSyntheticLambda1

See nova-video-player/aos-AVP#829
See hierynomus/smbj#807
See jupnp/jupnp#236
  • Loading branch information
courville committed May 28, 2024
1 parent 42e13e0 commit efe3854
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ android {
}

compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
Expand Down Expand Up @@ -100,12 +101,11 @@ configurations.configureEach {
}

dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
api 'eu.agno3.jcifs:jcifs-ng:2.1.10'
api 'com.github.mwiede:jsch:0.2.17'
// update to 3.9.0 (java 7->8) breaks ftp on firestick4k (not max) had to use 3.8.0
// https://commons.apache.org/proper/commons-net/release-notes.html need to stick with java7: max 3.8.0
// versions of commons-net otherwise we get java.time.Duration ClassNotFoundException even with threetenabp
implementation 'commons-net:commons-net:3.8.0'
// desugar is needed no avoid commons-net java.time.Duration ClassNotFoundException after 3.8.0
implementation 'commons-net:commons-net:3.10.0'
implementation 'com.jakewharton.threetenabp:threetenabp:1.4.7'
implementation 'com.github.nova-video-player:sardine-android:0.0.3'
implementation 'com.hierynomus:smbj:0.13.0'
Expand Down

0 comments on commit efe3854

Please sign in to comment.