diff --git a/apps/app_demo_slproject/android/README.md b/apps/app_demo_slproject/android/README.md index 5c67c5ae..af9d3934 100644 --- a/apps/app_demo_slproject/android/README.md +++ b/apps/app_demo_slproject/android/README.md @@ -18,6 +18,7 @@ * Install **cmake** if the IDE states it as missing. * Build the project with **Hammer button** or with **Build > Make Project (Ctrl-F9)** * The app can only run on real but not on virtual devices because the prebuilt OpenCV libraries (_lib/prebuilt/Android) are only built for the arm architectures armeabi-v7a and arm64-v8a. To run the app in a virtual device you would have to build OpenCV also for Android on the x86 architecture. +* Your connected device must be enabled for development. See development settings under the system settings. Also the device must allow USB Debugging under the development settings. * After successful build you can start the app on a USB-connected device by clicking the **green start button**. * If your device is not listed in the **Deployment Targets** dialog please check again your USB driver. In some cases, you have to download the appropriate driver from the device manufacturer. diff --git a/apps/app_demo_slproject/android/app/build.gradle b/apps/app_demo_slproject/android/app/build.gradle index 7e0f1060..a3faacfa 100644 --- a/apps/app_demo_slproject/android/app/build.gradle +++ b/apps/app_demo_slproject/android/app/build.gradle @@ -33,12 +33,6 @@ android { assets.srcDirs = ['src/main/assets'] } } - lintOptions { - checkReleaseBuilds false - // Or, if you prefer, you can continue to check for errors in release builds, - // but continue the build even when errors are found: - abortOnError false - } buildTypes { release { minifyEnabled false @@ -59,6 +53,11 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 } ndkVersion '21.4.7075529' + namespace 'ch.bfh.cpvrlab' + lint { + abortOnError false + checkReleaseBuilds false + } } dependencies { diff --git a/apps/app_demo_slproject/android/app/src/main/AndroidManifest.xml b/apps/app_demo_slproject/android/app/src/main/AndroidManifest.xml index a4b9764f..678fdafd 100644 --- a/apps/app_demo_slproject/android/app/src/main/AndroidManifest.xml +++ b/apps/app_demo_slproject/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ diff --git a/apps/app_demo_slproject/android/build.gradle b/apps/app_demo_slproject/android/build.gradle index 4204f96d..ddd2768c 100644 --- a/apps/app_demo_slproject/android/build.gradle +++ b/apps/app_demo_slproject/android/build.gradle @@ -5,7 +5,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:4.2.1' + classpath 'com.android.tools.build:gradle:8.1.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/apps/app_demo_slproject/android/gradle.properties b/apps/app_demo_slproject/android/gradle.properties index 4b3e30f5..fa09e36d 100644 --- a/apps/app_demo_slproject/android/gradle.properties +++ b/apps/app_demo_slproject/android/gradle.properties @@ -20,3 +20,6 @@ org.gradle.daemon=true org.gradle.warning.mode=all android.useAndroidX=true android.enableJetifier=true +android.defaults.buildfeatures.buildconfig=true +android.nonTransitiveRClass=false +android.nonFinalResIds=false diff --git a/apps/app_demo_slproject/android/gradle/wrapper/gradle-wrapper.properties b/apps/app_demo_slproject/android/gradle/wrapper/gradle-wrapper.properties index cb4b1458..795abbcf 100644 --- a/apps/app_demo_slproject/android/gradle/wrapper/gradle-wrapper.properties +++ b/apps/app_demo_slproject/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip