Closed Kaizen-7 closed 2 years ago
please merge sdk PR again and then try to build again, the issue should've been fixed
please merge sdk PR again and then try to build again, the issue should've been fixed
Build's still failing, am I missing something?
@astagi the last sdk PR didn't include everything somehow, I've opened it again but I merged develop into it before
you shouldn't get any error if you align your SDK to my last commit in ministero-salute/it-dgc-verificac19-sdk-android#106, it seems to be a problem related to duplicated dependencies in SDK Gradle file, when I revert this line as you suggested I've got another error that said to remove the "android" part, so let me know if it works with my latest commit
still failing with this message
* What went wrong:
Execution failed for task ':dgc-sdk:kaptReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> java.lang.reflect.InvocationTargetException (no error message)
Hello @astagi & @Kaizen-7
still failing with this message
* What went wrong: Execution failed for task ':dgc-sdk:kaptReleaseKotlin'. > A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution > java.lang.reflect.InvocationTargetException (no error message)
Such build-exception happens with CI action - and not with Android Studio - because of the JDK version setting.
If you edit the params of actions/setup-java@v1
by changing java-version
from 1.8 to 11 (in order to align with the embedded release of Android Studio), you'll get indeed build OK also with the CI Github action.
Reason : As you can also notice from the stacktrace, the exception is related to :
Caused by: java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
Since this PR also includes compileSdk/targetSdk upgrade in AppConfig from API Level 30 (Android 11/R) to 31 (Android 12/S), you can't keep using java-version 8, but you're required to set 11 at least.
Upgrading compileSdk/targetSdk from 30 to 31 together with dependencies-refactoring requires additional fixes in order to avoid runtime exceptions/crash while running the whitelabel-app with DGC-SDK on devices with Android 12/S.
You can read further details about it & the required fixes/commits in the closed issue 67 in the DGC-SDK repo.
Just submitted PR #238 in order to allow you to review such fixes & apply them to refactor/update-dependencies branch .
Test-Release sample code + universal-apk of whitelabel-app - built with current refactoring commits for app & DGC-SDK - is available here .
@Kaizen-7 build is failing, can't merge this PR.