diff --git a/src/TestUtils/src/DeviceTests.Runners.SourceGen/RunnerGenerator.cs b/src/TestUtils/src/DeviceTests.Runners.SourceGen/RunnerGenerator.cs index d6bc0b437497..f068f5fca90a 100644 --- a/src/TestUtils/src/DeviceTests.Runners.SourceGen/RunnerGenerator.cs +++ b/src/TestUtils/src/DeviceTests.Runners.SourceGen/RunnerGenerator.cs @@ -97,12 +97,14 @@ string GenerateAndroidSource() return @" #if !SKIP_RUNNER_ENTRYPOINT_GENERATION && !SKIP_VISUAL_RUNNER_ENTRYPOINT_GENERATION && !SKIP_VISUAL_RUNNER_APPLICATION_GENERATION +using System; + namespace " + RootNamespace + @" { [global::Android.App.Application] partial class " + appName + @" : global::Microsoft.Maui.MauiApplication { - public " + appName + @"(global::System.IntPtr handle, global::Android.Runtime.JniHandleOwnership ownership) + public " + appName + @"(IntPtr handle, Android.Runtime.JniHandleOwnership ownership) : base(handle, ownership) { }