Skip to content

Commit

Permalink
Attempting to fix Android build error
Browse files Browse the repository at this point in the history
"error: invalid source release: 17"
  • Loading branch information
lessthanoptimal committed Feb 5, 2024
1 parent a7572bd commit 09f2cfb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAME
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# https://stackoverflow.com/questions/71044526/your-project-has-set-android-useandroidx-true-but-configuration-debugruntimec
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion integration/boofcv-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dependencies {

compileOnly "org.jetbrains:annotations:$project.jetnull_version" // @Nullable

compileOnly 'com.android.support:support-annotations:27.1.1'
compileOnly 'com.android.support:support-annotations:28.0.0'

annotationProcessor("com.github.bsideup.jabel:jabel-javac-plugin:${project.jabel_version}")
}
Expand Down
10 changes: 2 additions & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,5 @@ include 'examples','demonstrations','applications',
'integration:boofcv-all',
'integration:boofcv-javacv',"integration:boofcv-WebcamCapture",
'integration:boofcv-jcodec','integration:boofcv-swing',
'integration:boofcv-ffmpeg','integration:boofcv-pdf','integration:boofcv-kotlin'

// these are packages which require external files that must be manually downloaded or configured to compile
if (System.getenv()['ANDROID_HOME']) {
include 'integration:boofcv-android'
} else {
logger.warn('Skipping integration/android because ANDROID_HOME has not been set! See integration/android/readme.txt')
}
'integration:boofcv-ffmpeg','integration:boofcv-pdf','integration:boofcv-kotlin',
'integration:boofcv-android'

0 comments on commit 09f2cfb

Please sign in to comment.