Closed Satoshi-Sakamoto147 closed 3 months ago
I have the same failure with an other class file and no solution this problem.
@Satoshi-Sakamoto147 Was your app previously integrated with the MAM SDK and then began failing when updated? Or is this a brand-new integration?
For future, please add a summary of the issue in the location provided by the template.
I have the same error as @Satoshi-Sakamoto147 . For me, the MAM SDK was already included before I wanted to perform the grade update.
@ostannar Included and properly integrated? Was this a Gradle only update or an SDK + Gradle update? Can you share your logs as well?
Since the log of our product code cannot be published, I customized Taskr-Sample-Intune-Android-App and output the log. patch file: intune_gradle8.patch
Log:
Build file 'C:\workspace\Taskr-Sample-Intune-Android-App\app\build.gradle' line: 12
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.microsoft.intune.mam'.
> Gradle 8 is not yet supported. Please use the -preview version of the plugin.
Although it is different from the error in my environment, does this mean that ms-intune-app-sdk does not support gradle8 yet?
@meghandaly It was a Gradle and SDK update. In the meantime I took back the Gradle update and left the SDK with version 9.7.0. That runs so far without problems.
But I would also like to update to Gradle 8. I get the same error message as @Satoshi-Sakamoto147 Show issue #171
How can this be solved?
I have the same error also with version 10.0.0 of Gradle plugin.
Can someone tell me how to solve the problem?
@Satoshi-Sakamoto147 and @ostannar
Can you please update your version of Javassist to 3.29.2? We missed a documentation update (updates currently pending doc team approval) that specified this as a dependency for the MAM SDK ≥ 10.0.0.
@meghandaly I tried updating Javassist to 3.29.2,(or latest version 3.30.2) but the result remained the same.
Hi all, the Sample app repo is currently consuming MAM SDK 9.5.0, which needs to use the preview
version of the MAM plugin to work with AGP 8+. We will work to get this updated, but I can confirm that this works locally and does not reproduce the original issue reported ("Zip file
--debug
and --stacktrace
options) to a file and attach it to this issue.output\logs
as a zip file.@bannus cc: @ostannar @meghandaly @oydang Thank you for your information. I was able to build with Gradle 8 and launch Taskr-Sample-Intune-Android-App.
My Development Environment | Android Studio | AGP | Gradle Version |
---|---|---|---|
Iguana 2023.2.1 | 8.3.1 | 8.4 |
Intune Android App SDK [Gradle Build Plugin] Issue
Questions to Ask Before Submission
Does your app compile and launch successfully without the Intune App SDK? Yes
Have you checked the [Microsoft Intune App SDK for Android] repository for similar issues? Yes. It's similar to the ticket below, but it wasn't reopened, so I created a new ticket. https://github.com/msintuneappsdk/ms-intune-app-sdk-android/issues/171
Are you using the latest version of the [SDK and Plugin]? Yes
Summary
Please briefly describe the issue you are experiencing.
Details
Logs
Zip file 'C:\workspace\app\build\intermediates\classes\devHogeHogeDebug\ALL\devHogeHogeDebugMamifyClasses\classes.jar' already contains entry 'org/opencv/BuildConfig.class', cannot overwrite
Since the log of our product code cannot be published, I customized Taskr-Sample-Intune-Android-App and output the log. patch file: intune_gradle8.patch