microsoftconnect / ms-intune-app-sdk-android

Intune App SDK for Android enables data protection features and mobile app management via Microsoft Intune
44 stars 18 forks source link

Flutter App Mamification Fail - Android app:transformClassesWithMamifyTransformForDebug #143

Closed decisionslab2 closed 8 months ago

decisionslab2 commented 1 year ago

Issue: Unable to compile and run with Intune. Fails at Build. > Cannot inherit from final class

It's happening with the latest SDK of InTune with compile SDK 33

We have received the following exception from our logs:

> Task :app:transformClassesWithMamifyTransformForDebug
WARNING: Experimental support for incremental builds is enabled.
Experimental support for incremental builds is enabled.

Rewriting androidx.appcompat.widget.AppCompatMultiAutoCompleteTextView superclass from android.widget.MultiAutoCompleteTextView to com.microsoft.intune.mam.client.widget.MAMMultiAutoCompleteTextView
Rewriting io.flutter.plugins.urllauncher.WebViewActivity superclass from android.app.Activity to com.microsoft.intune.mam.client.app.MAMActivity
Rewriting androidx.appcompat.widget.AbsActionBarView superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.viewpager.widget.PagerTitleStrip superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting com.google.android.material.circularreveal.CircularRevealRelativeLayout superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting com.google.android.material.internal.FlowLayout superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.core.app.ComponentActivity superclass from android.app.Activity to com.microsoft.intune.mam.client.app.MAMActivity
Rewriting androidx.appcompat.widget.LinearLayoutCompat superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.activity.ComponentDialog superclass from android.app.Dialog to com.microsoft.intune.mam.client.app.MAMDialog
Rewriting io.flutter.plugin.platform.SingleViewPresentation$FakeWindowViewGroup superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting com.pdftron.pdf.tools.CustomRelativeLayout superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting androidx.appcompat.widget.Toolbar superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.viewpager2.widget.ViewPager2 superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting com.google.android.material.internal.BaselineLayout superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.constraintlayout.widget.ConstraintLayout superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.appcompat.widget.AppCompatAutoCompleteTextView superclass from android.widget.AutoCompleteTextView to com.microsoft.intune.mam.client.widget.MAMAutoCompleteTextView
Rewriting com.pdftron.pdf.controls.SearchResultsView superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting com.pdftron.pdf.dialog.BookmarksDialogFragment$2 superclass from android.app.Dialog to com.microsoft.intune.mam.client.app.MAMDialog
Rewriting androidx.appcompat.widget.AppCompatPopupWindow superclass from android.widget.PopupWindow to com.microsoft.intune.mam.client.widget.MAMPopupWindow
Rewriting androidx.appcompat.widget.ActivityChooserView superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.viewpager.widget.ViewPager superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.recyclerview.widget.RecyclerView superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.preference.PreferenceFragment superclass from android.app.Fragment to com.microsoft.intune.mam.client.app.MAMFragment
Rewriting androidx.appcompat.widget.AppCompatEditText superclass from android.widget.EditText to com.microsoft.intune.mam.client.widget.MAMEditText
Rewriting androidx.appcompat.widget.AppCompatCheckedTextView superclass from android.widget.CheckedTextView to com.microsoft.intune.mam.client.widget.MAMCheckedTextView
Rewriting com.pdftron.pdf.widget.ContentLoadingRelativeLayout superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting com.pdftron.pdf.controls.UndoRedoPopupWindow superclass from android.widget.PopupWindow to com.microsoft.intune.mam.client.widget.MAMPopupWindow
Rewriting com.pdftron.pdf.widget.InertWebView superclass from android.webkit.WebView to com.microsoft.intune.mam.client.widget.MAMWebView
Rewriting com.pichillilorenzo.flutter_inappwebview.in_app_webview.InputAwareWebView superclass from android.webkit.WebView to com.microsoft.intune.mam.client.widget.MAMWebView
Rewriting com.microsoft.identity.common.internal.providers.oauth2.CurrentTaskAuthorizationActivity$1 superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting androidx.appcompat.app.AppCompatDelegateImpl$AutoNightModeManager$1 superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting com.flutter_webview_plugin.ObservableWebView superclass from android.webkit.WebView to com.microsoft.intune.mam.client.widget.MAMWebView
Rewriting io.flutter.app.FlutterActivity superclass from android.app.Activity to com.microsoft.intune.mam.client.app.MAMActivity
Rewriting androidx.transition.GhostViewPort superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.core.app.JobIntentService superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting androidx.core.content.FileProvider superclass from android.content.ContentProvider to com.microsoft.intune.mam.client.content.MAMContentProvider
Rewriting androidx.constraintlayout.widget.Constraints superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.appcompat.widget.AppCompatTextView superclass from android.widget.TextView to com.microsoft.intune.mam.client.widget.MAMTextView
Rewriting androidx.browser.browseractions.BrowserActionsFallbackMenuDialog superclass from android.app.Dialog to com.microsoft.intune.mam.client.app.MAMDialog
Rewriting androidx.coordinatorlayout.widget.CoordinatorLayout superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting com.pdftron.pdf.widget.CheckableRelativeLayout superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting io.flutter.plugins.connectivity.ConnectivityBroadcastReceiver superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting com.microsoft.identity.client.BrowserTabActivity superclass from android.app.Activity to com.microsoft.intune.mam.client.app.MAMActivity
Rewriting androidx.media.MediaBrowserServiceCompat superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting com.pdftron.pdf.widget.SoundAnnotView superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting com.google.android.material.navigation.NavigationBarMenuView superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.preference.PreferenceDialogFragment superclass from android.app.DialogFragment to com.microsoft.intune.mam.client.app.MAMDialogFragment
Rewriting io.flutter.view.FlutterView superclass from android.view.SurfaceView to com.microsoft.intune.mam.client.widget.MAMSurfaceView
Rewriting io.flutter.app.FlutterApplication superclass from android.app.Application to com.microsoft.intune.mam.client.app.MAMApplication
Rewriting com.pdftron.pdf.widget.IgnoreTopInsetRelativeLayout superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting android.view.DispatchFairInsetsRelativeLayout superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting com.github.clans.fab.FloatingActionMenu superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.lifecycle.LifecycleService superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting androidx.lifecycle.ReportFragment superclass from android.app.Fragment to com.microsoft.intune.mam.client.app.MAMFragment
Rewriting com.pdftron.pdf.utils.StampStatePopup superclass from android.widget.PopupWindow to com.microsoft.intune.mam.client.widget.MAMPopupWindow
Rewriting com.pdftron.pdf.widget.seekbar.DocumentSlider superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting androidx.core.app.NotificationCompatSideChannelService superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting com.microsoft.identity.client.CurrentTaskBrowserTabActivity$1 superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting com.pdftron.pdf.utils.ReflowWebView superclass from android.webkit.WebView to com.microsoft.intune.mam.client.widget.MAMWebView
Rewriting com.pdftron.pdf.widget.preset.signature.SignatureSelectionDialog$1 superclass from android.app.Dialog to com.microsoft.intune.mam.client.app.MAMDialog
Rewriting androidx.legacy.content.WakefulBroadcastReceiver superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting com.pdftron.pdf.utils.PDFTronToolsInitializer superclass from android.content.ContentProvider to com.microsoft.intune.mam.client.content.MAMContentProvider
Rewriting com.squareup.picasso.PicassoProvider superclass from android.content.ContentProvider to com.microsoft.intune.mam.client.content.MAMContentProvider
Rewriting com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.KeepAliveService superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting androidx.browser.trusted.TrustedWebActivityService superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivity superclass from android.app.Activity to com.microsoft.intune.mam.client.app.MAMActivity
Rewriting com.bumptech.glide.manager.RequestManagerFragment superclass from android.app.Fragment to com.microsoft.intune.mam.client.app.MAMFragment
Rewriting androidx.transition.ViewOverlayApi14$OverlayViewGroup superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.swiperefreshlayout.widget.SwipeRefreshLayout superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting androidx.appcompat.widget.ActionBarOverlayLayout superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting com.pdftron.pdfnet.PDFNetInitializer superclass from android.content.ContentProvider to com.microsoft.intune.mam.client.content.MAMContentProvider
Rewriting io.flutter.embedding.android.FlutterSurfaceView superclass from android.view.SurfaceView to com.microsoft.intune.mam.client.widget.MAMSurfaceView
Rewriting com.pdftron.pdf.PDFViewCtrl superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting com.pdftron.pdf.widget.richtext.RCContainer superclass from android.widget.PopupWindow to com.microsoft.intune.mam.client.widget.MAMPopupWindow
Rewriting name.avioli.unilinks.UniLinksPlugin$1 superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting com.pdftron.pdf.controls.AnnotStyleDialogFragment$1 superclass from android.app.Dialog to com.microsoft.intune.mam.client.app.MAMDialog
Rewriting com.pdftron.pdf.tools.QuickMenu superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting io.flutter.plugins.urllauncher.WebViewActivity$1 superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting com.bumptech.glide.manager.DefaultConnectivityMonitor$1 superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting androidx.drawerlayout.widget.DrawerLayout superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting com.pdftron.pdf.widget.AnnotView superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting androidx.core.content.UnusedAppRestrictionsBackportService superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting androidx.room.MultiInstanceInvalidationService superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting com.microsoft.identity.client.helper.BrokerHelperActivity superclass from android.app.Activity to com.microsoft.intune.mam.client.app.MAMActivity
Rewriting com.google.android.material.internal.ViewOverlayApi14$OverlayViewGroup superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting com.microsoft.identity.client.CurrentTaskBrowserTabActivity superclass from android.app.Activity to com.microsoft.intune.mam.client.app.MAMActivity
Rewriting com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ActionBroadcastReceiver superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting androidx.slidingpanelayout.widget.SlidingPaneLayout superclass from android.view.ViewGroup to com.microsoft.intune.mam.client.view.MAMViewGroup
Rewriting com.github.clans.fab.Label superclass from android.widget.TextView to com.microsoft.intune.mam.client.widget.MAMTextView
Rewriting androidx.multidex.MultiDexApplication superclass from android.app.Application to com.microsoft.intune.mam.client.app.MAMApplication
Rewriting com.squareup.picasso.Dispatcher$NetworkBroadcastReceiver superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting com.pdftron.pdf.widget.UniformWidthRelativeLayout superclass from android.widget.RelativeLayout to com.microsoft.intune.mam.client.widget.MAMRelativeLayout
Rewriting androidx.startup.InitializationProvider superclass from android.content.ContentProvider to com.microsoft.intune.mam.client.content.MAMContentProvider
Rewriting androidx.browser.customtabs.CustomTabsService superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting io.flutter.embedding.android.FlutterActivity superclass from android.app.Activity to com.microsoft.intune.mam.client.app.MAMActivity
Rewriting androidx.browser.customtabs.PostMessageService superclass from android.app.Service to com.microsoft.intune.mam.client.app.MAMService
Rewriting androidx.media.session.MediaButtonReceiver superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Rewriting com.microsoft.identity.common.internal.broker.BrokerActivity superclass from android.app.Activity to com.microsoft.intune.mam.client.app.MAMActivity
Rewriting androidx.core.content.pm.ShortcutManagerCompat$1 superclass from android.content.BroadcastReceiver to com.microsoft.intune.mam.client.content.MAMBroadcastReceiver
Verifying classes

> Task :app:transformClassesWithMamifyTransformForDebug FAILED
         *********************************************************
WARNING: This version of flutter_webview_plugin will break your Android build if it or its dependencies aren't compatible with AndroidX.
         See https://goo.gl/CP92wY for more information on the problem and how to fix it.
         This warning prints for all Android build failures. The real root cause of the error may be unrelated.
         *********************************************************

This version of flutter_webview_plugin will break your Android build if it or its dependencies aren't compatible with AndroidX.

Execution failed for task ':app:transformClassesWithMamifyTransformForDebug'.
> Cannot inherit from final class

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithMamifyTransformForDebug'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:187)
    at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:185)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
    at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
    at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
    at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:74)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:408)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:395)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:388)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:374)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: java.lang.VerifyError: Cannot inherit from final class
    at javassist.Loader.findClass(Loader.java:419)
    at javassist.Loader.loadClass(Loader.java:350)
    at com.microsoft.intune.mam.TransformationUnit.verify(TransformationUnit.java:143)
    at com.microsoft.intune.mam.BuildTimeMamifier.mamify(BuildTimeMamifier.java:121)
    at com.microsoft.intune.mam.MamifyTransformBase.transform(MamifyTransformBase.java:185)
    at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:284)
    at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:69)
    at com.android.build.gradle.internal.profile.AnalyticsResourceManager.recordBlockAtExecution(AnalyticsResourceManager.kt:227)
    at com.android.build.gradle.internal.profile.AnalyticsService.recordBlock(AnalyticsService.kt:152)
    at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:242)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
    at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:47)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
    at org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.run(ExecuteActionsTaskExecuter.java:498)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:71)
    at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:483)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:466)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:105)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:270)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:248)
    at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:83)
    at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:37)
    at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:50)
    at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:47)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
    at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:47)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:37)
    at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:68)
    at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:38)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:50)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:36)
    at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
    at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
    at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
    at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
    at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:29)
    at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:54)
    at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:35)
    at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:60)
    at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:27)
    at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:174)
    at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:74)
    at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:45)
    at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:40)
    at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:29)
    at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
    at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:99)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:92)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
    at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:84)
    at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:41)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
    at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:91)
    at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)
    at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:78)
    at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:49)
    at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:105)
    at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:50)
    at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:86)
    at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:86)
    at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:32)
    at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
    at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:43)
    at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:31)
    at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:40)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution$2.withWorkspace(ExecuteActionsTaskExecuter.java:283)
    at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:40)
    at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
    at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
    at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
    at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:49)
    at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35)
    at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:76)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:184)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
    at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
    at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
    at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:74)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:408)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:395)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:388)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:374)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
meghandaly commented 1 year ago

@decisionslab2 Did this task ever work as expected?

I noticed a warning for flutter_webview_plugin in your output. It looks like it will print that for all build failures, but, in the spirit of due diligence, can you answer the following:

decisionslab2 commented 1 year ago

Recently we have upgraded our flutter SDK to the latest version that requires the compile build version to get set to 33. And also we have update the InTune SDK as well. Ever since then we are facing MAMification failed issue. Previous to that we were able to Mamify the App successfully. Is it related something to flutter SDK? I believe InTune SDK Should be compatible to any Cross-platform framework.

We have also tried by removing Flutter_webview_plugin but no progress. we are still facing the same MAMification issue issue.

meghandaly commented 1 year ago

@decisionslab2 Thank you for that information, it is most helpful.

Could you help us narrow done the combination that is causing the issue by...

We do limited testing with cross-platform frameworks, but we do strive to support as many scenarios as possible.

We'll do testing in tandem as well.

decisionslab2 commented 1 year ago

Testing with a Flutter SDK update, without updating MAM and without the targeting version. : This Fails with the Said exception.

Hence we have afraid to update our App to the latest Flutter SDK.

meghandaly commented 1 year ago

@decisionslab2 Thank you for providing that analysis. Will update when we have more information.

meghandaly commented 1 year ago

@decisionslab2 What is the current Flutter SDK version your app is on and what is the version you are updating to? I noticed there is a 3.7 release, but based on your timing in opening this issue I would imagine you were trying to update to the 3.3 release?

decisionslab2 commented 1 year ago

After careful debugging we have found the issue is related to image_picker_android: ^0.8.5+8 and https://pub.dev/packages/image_picker packages which was causing Mamification failure on the Latest flutter SDK.

version: image

decisionslab2 commented 1 year ago

Updating pubspec.lock with the following version helps build the App. should we contact image_picker for more information ?

image_picker: dependency: "direct main" description: name: image_picker sha256: "22207768556b82d55ec70166824350fee32298732d5efa4d6e756f848f51f66a" url: "https://pub.dev" source: hosted version: "0.8.6+3" image_picker_android: dependency: transitive description: name: image_picker_android sha256: "68d067baf7f6e401b1124ee83dd6967e67847314250fd68012aab34a69beb344" url: "https://pub.dev" source: hosted version: "0.8.5+7" image_picker_for_web: dependency: transitive description: name: image_picker_for_web sha256: "66fc6e3877bbde82c33d122f3588777c3784ac5bd7d1cdd79213ef7aecb85b34" url: "https://pub.dev" source: hosted version: "2.1.11" image_picker_ios: dependency: transitive description: name: image_picker_ios sha256: "39aa70b5f1e5e7c94585b9738632d5fdb764a5655e40cd9e7b95fbd2fc50c519" url: "https://pub.dev" source: hosted version: "0.8.6+9"

bannus commented 1 year ago

@decisionslab2, can you share any details that helped you determine that version 0.8.5+8 of image_picker_android was the issue? We'd like to better understand why this dependency caused Mamification to fail.

(internal tracking #17030248)
bannus commented 8 months ago

Closing due to lack of response. Will re-open if more details are provided.