Unity 2019.4.31F - GoogleMobileAds Gradle Failures

1,834 views
Skip to first unread message

A Bones

unread,
Jan 16, 2023, 9:18:09 PM1/16/23
to Google Mobile Ads SDK Developers
Hi All,

I need assistance, stack overflow and unity forums do not have anything similar to this issue.

I am running:
Win 10, with Unity LTS 2019.4.31F
App builds fine, for android or ios, and there are no 3rd party assets, very simple app.
I am very familiar with GMADs implementation, and have never had issues with this system configuration.


I'm at the point to add monetization, so per Google Mobile Ads Guide
I imported:
GoogleMobileAds-v7.3.1 (first time with this version)​
External Dependency Manager, located here:

For Unity External Tools Preferences, I have Android SDK Tool enabled, running Android 30 and build tools ver 30.0.2

My min SDK is Android 6.0 API 23 and Target is highest installed.
I have tired setting target to Android 30 and just produces different gradle errors and similar build fail.
For Publishing Player Gradle options, nothing is selected, no custom gradle files. Minify is disabled.


Here are the console errors I am getting:


\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.4.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

> Configure project :unityLibrary
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.


> Configure project :unityLibrary:GoogleMobileAdsPlugin.androidlib
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.


> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:checkReleaseManifest
> Task :launcher:prepareLintJar
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:checkReleaseManifest
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues
> Task :unityLibrary:generateReleaseResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseResources
> Task :unityLibrary:mergeReleaseShaders
> Task :unityLibrary:compileReleaseShaders
> Task :unityLibrary:generateReleaseAssets
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJar
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseSources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:generateReleaseBuildConfig
> Task :launcher:preReleaseBuild
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseResValues
> Task :launcher:generateReleaseResources
> Task :unityLibrary:generateReleaseRFile
> Task :unityLibrary:prepareLintJar
> Task :unityLibrary:generateReleaseSources
> Task :unityLibrary:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:mergeReleaseJniLibFolders
> Task :unityLibrary:transformNativeLibsWithMergeJniLibsForRelease
> Task :unityLibrary:transformNativeLibsWithStripDebugSymbolForRelease
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileRelease
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeRelease
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:transformNativeLibsWithMergeJniLibsForRelease
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:transformNativeLibsWithStripDebugSymbolForRelease
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:transformNativeLibsWithIntermediateJniLibsForRelease
> Task :unityLibrary:transformNativeLibsWithIntermediateJniLibsForRelease
> Task :unityLibrary:javaPreCompileRelease

> Task :unityLibrary:compileReleaseJavaWithJavac

> Task :unityLibrary:bundleLibCompileRelease
> Task :unityLibrary:bundleLibRuntimeRelease
> Task :unityLibrary:bundleLibResRelease
> Task :launcher:mergeReleaseResources
> Task :launcher:checkReleaseManifest
> Task :launcher:createReleaseCompatibleScreenManifests
> Task :launcher:mainApkListPersistenceRelease
> Task :launcher:processReleaseManifest
> Task :launcher:bundleReleaseResources FAILED

[B]Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.[/B]
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
47 actionable tasks: 47 executed

UnityEngine.GUIUtility:ProcessEvent (int,intptr)

Notes:
All the read only file errors, are not available after build, they dont exist.
I am on 2019.4.31F Unity, not sure why Gradle is ver 6.
In Android Studio, I only have build tools up to Android 30.
But this is irrelevant, since I am using Unity Android SDK folder.


[B]

[/B]
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:bundleReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
C:\Users\mydocs\Unity 2019.4.12f1\myappmasked\Temp\gradleOut\launcher\build\intermediates\bundle_manifest\release\processReleaseManifest\bundle-manifest\AndroidManifest.xml:45: error: unexpected element <queries> found in <manifest>.

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

* Get more help at https://help.gradle.org

BUILD FAILED in 14s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

UnityEngine.GUIUtility:ProcessEvent (int,intptr)


Note:
The queries block is being adding during manifest merge, not sure where it comes from or how to remove it, my apps' androidmanifest.xml has nothing similar.

I think the gradle incompatibility may be an issue, but I have no idea why Gradle 6.0 is running, and GoogleMobileAds is using deprecated gradle dependencies?

I thought Unity 2019.4.31F LTS uses an older version of Gradle, and the External Dependency Resolver is managing this by Unity. But I do know Google Play requires Android SDK 30 as the target build.

Log file is attached, any help would be most appreciated.

Kind Regards,

-E

GoogleMobileAds Build Fail Editor.txt

A Bones

unread,
Jan 16, 2023, 9:31:08 PM1/16/23
to Google Mobile Ads SDK Developers
Since this point I have made my entire Unity SDK folder not read only using admin file permissions.
It still keeps reverting back to read only, but the permissions did make those read only errors go away, and I have these left:



> Task :unityLibrary:generateReleaseResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues

> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
47 actionable tasks: 47 executed

0x00007FF7F11561CC (Unity) StackWalker::GetCurrentCallstack
0x00007FF7F115A171 (Unity) StackWalker::ShowCallstack
0x00007FF7EF7B0DD5 (Unity) GetStacktrace
0x00007FF7F1E0FEBE (Unity) DebugStringToFile
0x00007FF7F11B9E21 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000016E8C06F25B (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x0000016E8C06F18B (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x0000016E8C06EED0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x0000016E877557A5 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x0000016E87755373 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
0x0000016EA0C262C3 (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
0x0000016EA0C8DCDB (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.BuildTarget,string,string,string,string,string,string,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x0000016EA0C8D09B (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x0000016EA0C8CBA1 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x0000016EA0C8CEC9 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
0x00007FF9F886E270 (mono-2.0-bdwgc) [mini-runtime.c:2813] mono_jit_runtime_invoke
0x00007FF9F87F2AC2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
0x00007FF9F87FBB1F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
0x00007FF7F10C7CEE (Unity) scripting_method_invoke
0x00007FF7F10C168D (Unity) ScriptingInvocation::Invoke
0x00007FF7EEFC9555 (Unity) CallMono
0x00007FF7EEFE720D (Unity) PostprocessPlayer
0x00007FF7EEFD217D (Unity) DoBuildPlayer_PostBuild
0x00007FF7EEFC00FB (Unity) BuildPlayer
0x00007FF7EFE1C578 (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007FF7EFE1A27E (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x0000016EA0BE0D2D (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,bool)
0x0000016EA0BE053B (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x0000016EA0BDD1EB (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x0000016E95F3DBA3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform)
0x0000016E95F2FC0B (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x0000016E95F23E2B (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x0000016E162C8844 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FF9F886E270 (mono-2.0-bdwgc) [mini-runtime.c:2813] mono_jit_runtime_invoke
0x00007FF9F87F2AC2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
0x00007FF9F87FBCF2 (mono-2.0-bdwgc) [object.c:3073] mono_runtime_invoke_checked
0x00007FF9F87FC489 (mono-2.0-bdwgc) [object.c:5264] mono_runtime_try_invoke_array
0x00007FF9F87FBC86 (mono-2.0-bdwgc) [object.c:5142] mono_runtime_invoke_array_checked
0x00007FF9F87A0474 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke
0x0000016E14B7E1ED (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
0x0000016E14B7DCDB (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x0000016E38F8F97E (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x0000016E7F2296FB (Mono JIT Code) UnityEditor.HostView:Invoke (string,object)
0x0000016E7F229663 (Mono JIT Code) UnityEditor.HostView:Invoke (string)
0x0000016DC52CF983 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
0x0000016DC52CF763 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
0x0000016DC52C3D9B (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x0000016DC52A2208 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x0000016DC52A1513 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x0000016E95C3C92B (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x0000016E95C3CE03 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x0000016E95C39AB3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool)
0x0000016E7F2262D3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x0000016E7F20986F (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x0000016E95C37583 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000016E7F207B4E (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x0000016E7F207693 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000016E7F207143 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x0000016E7F206FE3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x0000016E7F206F2B (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x0000016E7F207903 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000016E7F2053D3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x0000016E7F20524B (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x0000016DC52575EB (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x0000016DC525714B (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
0x0000016DC5256EA7 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr)
0x0000016DC5256F6A (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
0x00007FF9F886E270 (mono-2.0-bdwgc) [mini-runtime.c:2813] mono_jit_runtime_invoke
0x00007FF9F87F2AC2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
0x00007FF9F87FBB1F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
0x00007FF7F10C7CEE (Unity) scripting_method_invoke
0x00007FF7F10C168D (Unity) ScriptingInvocation::Invoke
0x00007FF7F10BB0EA (Unity) ScriptingInvocation::Invoke<bool>
0x00007FF7EE326045 (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007FF7EED57164 (Unity) GUIView::ProcessRetainedMode
0x00007FF7EF7D7B21 (Unity) GUIView::OnInputEvent
0x00007FF7EED5705C (Unity) GUIView::ProcessInputEvent
0x00007FF7EF7D9525 (Unity) GUIView::ProcessEventMessages
0x00007FF7EF7D1719 (Unity) GUIView::GUIViewWndProc
0x00007FFA8C3DE7E8 (USER32) CallWindowProcW
0x00007FFA8C3DE229 (USER32) DispatchMessageW
0x00007FF7EF7D67BB (Unity) MainMessageLoop
0x00007FF7EF7E0AB8 (Unity) WinMain
0x00007FF7F28E0B22 (Unity) __scrt_common_main_seh
0x00007FFA8BC37614 (KERNEL32) BaseThreadInitThunk
0x00007FFA8CA426A1 (ntdll) RtlUserThreadStart


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:bundleReleaseResources'.
> 1 exception was raised by workers:
  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  C:\Users\MYNAME\Documents\Unity 2019.4.12f1\MYAPP\Temp\gradleOut\launcher\build\intermediates\bundle_manifest\release\processReleaseManifest\bundle-manifest\AndroidManifest.xml:45: error: unexpected element <queries> found in <manifest>.

 


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

* Get more help at https://help.gradle.org

BUILD FAILED in 14s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

> Configure project :launcher

WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.


> Configure project :unityLibrary
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.


A Bones

unread,
Jan 16, 2023, 9:47:28 PM1/16/23
to Google Mobile Ads SDK Developers
Capture.JPG


FYI, I am using Android SDK and Gradle that comes with unity 2019.4.31f.

This is supposed to support GoogleMobileAds based on this page:

Mobile Ads SDK Forum Advisor

unread,
Jan 17, 2023, 3:42:22 AM1/17/23
to 54bone...@gmail.com, google-adm...@googlegroups.com

Hi,

 

Thank you for reaching out to us.

 

Can you confirm if you already have try this: go to Unity->Preferences->External Tools and disable(uncheck) the JDK,Android SDK,Android NDK, Grandle. Once unchecked, close your project and reopened it. Once you've reopened it, kindly check again the external tools you've uncheck. If upon doing this still returns you an error, kindly provide us the following details below privately.

 

  • Sample app project
  • Steps to replicate
  • SDK version
  • Device name and versions affected

 

You can provide the following details via reply privately to author option or directly provide it to the link below.

 

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002hz6zKQAQ&entry.80707362=00163757

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

 

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2hz6zK:ref
Message has been deleted

A Bones

unread,
Jan 17, 2023, 4:27:48 PM1/17/23
to Google Mobile Ads SDK Developers
Pamela,

Thank you for your prompt reply.

I did as suggested, disabling preferences > JDK, NDK, Gradle, SDK.
Saved and closed project.

Restarted unity and opened project.
Build error is still occurring, with references related to GMads.

Here is the info you requested:
  • Sample app project - Uploaded privately to your drive.
  • Steps to replicate - Just open project, and File > Build and build to local drive .aab
  • SDK version - Unity Installed SDK 30.0.1 which is located in Unity HUB directory: 
  • Device name and versions affected - 
  • Windows  Laptop:
Device name: MSI Laptop
Processor    Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz   2.60 GHz
Installed RAM    16.0 GB (15.9 GB usable)
Product ID    00325-95928-60237-AAOEM
System type    64-bit operating system, x64-based processor
Pen and touch    No pen or touch input is available for this display

Windows:
Edition    Windows 10 Home
Version    22H2
Installed on    ‎10/‎14/‎2020
OS build    19045.2486
Experience    Windows Feature Experience Pack 120.2212.4190.0

I am kindly looking forward to you replicating and seeing if you can pinpoint this.
Greatly appreciated.

Kind Regards,

Andy 

A Bones

unread,
Jan 18, 2023, 12:05:44 AM1/18/23
to Google Mobile Ads SDK Developers
Pamela,

Just an FYI I just tried same project on Unity 2020.3.43F1 and received similar errors:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:preReleaseBuild'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
   > Failed to transform artifact 'googlemobileads-unity.aar (:googlemobileads-unity:)' to match attributes {artifactType=android-manifest}
      > Execution failed for JetifyTransform: C:\Users\MASKED\Documents\Unity 2019.4.12f1\ MASKED  - 2020\Temp\gradleOut\unityLibrary\libs\googlemobileads-unity.aar.
         > Failed to transform 'C:\Users\ MASKED  \Documents\Unity 2019.4.12f1\ MASKED   - 2020\Temp\gradleOut\unityLibrary\libs\googlemobileads-unity.aar' using Jetifier. Reason: null. (Run with --stacktrace for more details.)






> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:checkReleaseManifest
> Task :unityLibrary:checkReleaseManifest
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE

> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources
> Task :unityLibrary:mergeReleaseShaders

> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets
> Task :unityLibrary:compileReleaseShaders
> Task :unityLibrary:generateReleaseAssets
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
> Task :launcher:prepareLintJar
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:generateReleaseBuildConfig
> Task :unityLibrary:prepareLintJar
> Task :unityLibrary:processReleaseJavaRes NO-SOURCE

> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJar
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseSources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
> Task :unityLibrary:mergeReleaseJniLibFolders
> Task :unityLibrary:transformNativeLibsWithMergeJniLibsForRelease
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResources
> Task :launcher:preReleaseBuild FAILED
> Task :unityLibrary:packageReleaseResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac


Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
25 actionable tasks: 25 executed

0x00007FF7CD1961CC (Unity) StackWalker::GetCurrentCallstack
0x00007FF7CD19A171 (Unity) StackWalker::ShowCallstack
0x00007FF7CB7F0DD5 (Unity) GetStacktrace
0x00007FF7CDE4FEBE (Unity) DebugStringToFile
0x00007FF7CD1F9E21 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000001DC232FD1CB (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000001DC232FD11B (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000001DC232FCEA0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000001DC27CB95F5 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000001DC27CB91F3 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
0x000001DC257058D3 (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
0x000001DC265FE97B (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.BuildTarget,string,string,string,string,string,string,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x000001DC265FDD5B (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x000001DC265FD8A1 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x000001DC265FDB89 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
0x00007FFF87CCE270 (mono-2.0-bdwgc) [mini-runtime.c:2813] mono_jit_runtime_invoke
0x00007FFF87C52AC2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
0x00007FFF87C5BB1F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
0x00007FF7CD107CEE (Unity) scripting_method_invoke
0x00007FF7CD10168D (Unity) ScriptingInvocation::Invoke
0x00007FF7CB009555 (Unity) CallMono
0x00007FF7CB02720D (Unity) PostprocessPlayer
0x00007FF7CB01217D (Unity) DoBuildPlayer_PostBuild
0x00007FF7CB0000FB (Unity) BuildPlayer
0x00007FF7CBE5C578 (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007FF7CBE5A27E (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x000001DC257EDBBD (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,bool)
0x000001DC257ED47B (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x000001DC257EA7CB (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x000001DC25575A43 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform)
0x000001DC2556893B (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x000001DC2555DCBB (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x000001DC94AF53E4 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFF87CCE270 (mono-2.0-bdwgc) [mini-runtime.c:2813] mono_jit_runtime_invoke
0x00007FFF87C52AC2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
0x00007FFF87C5BCF2 (mono-2.0-bdwgc) [object.c:3073] mono_runtime_invoke_checked
0x00007FFF87C5C489 (mono-2.0-bdwgc) [object.c:5264] mono_runtime_try_invoke_array
0x00007FFF87C5BC86 (mono-2.0-bdwgc) [object.c:5142] mono_runtime_invoke_array_checked
0x00007FFF87C00474 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke
0x000001DC94B1E89D (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
0x000001DC94B1DB6B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x000001DC1B663A7E (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x000001DC1D33296B (Mono JIT Code) UnityEditor.HostView:Invoke (string,object)
0x000001DC1D3328F3 (Mono JIT Code) UnityEditor.HostView:Invoke (string)
0x000001DC23275A03 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
0x000001DC232757E3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect)
0x000001DC2326CB0B (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000001DC23255788 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000001DC23254C03 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000001DC23253A7B (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000001DC23253903 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000001DC23253793 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool)
0x000001DC1C6ABE53 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x000001DC1C6A65DF (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x000001DC23252F03 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001DC1C6A4B4E (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000001DC1C6A4703 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001DC1C6A41F3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000001DC1C6A40B3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000001DC1C6A401B (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x000001DC1C6A4973 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001DC1C6A2893 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000001DC1C6A272B (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000001DC2323C7DB (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001DC2323C33B (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
0x000001DC2323C097 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr)
0x000001DC2323C15A (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
0x00007FFF87CCE270 (mono-2.0-bdwgc) [mini-runtime.c:2813] mono_jit_runtime_invoke
0x00007FFF87C52AC2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
0x00007FFF87C5BB1F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
0x00007FF7CD107CEE (Unity) scripting_method_invoke
0x00007FF7CD10168D (Unity) ScriptingInvocation::Invoke
0x00007FF7CD0FB0EA (Unity) ScriptingInvocation::Invoke<bool>
0x00007FF7CA366045 (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007FF7CAD97164 (Unity) GUIView::ProcessRetainedMode
0x00007FF7CB817B21 (Unity) GUIView::OnInputEvent
0x00007FF7CAD9705C (Unity) GUIView::ProcessInputEvent
0x00007FF7CB819525 (Unity) GUIView::ProcessEventMessages
0x00007FF7CB811719 (Unity) GUIView::GUIViewWndProc
0x00007FF826F3E7E8 (USER32) CallWindowProcW
0x00007FF826F3E229 (USER32) DispatchMessageW
0x00007FF7CB8167BB (Unity) MainMessageLoop
0x00007FF7CB820AB8 (Unity) WinMain
0x00007FF7CE920B22 (Unity) __scrt_common_main_seh
0x00007FF8279D7614 (KERNEL32) BaseThreadInitThunk
0x00007FF828AA26A1 (ntdll) RtlUserThreadStart


Mobile Ads SDK Forum Advisor

unread,
Jan 18, 2023, 5:07:37 AM1/18/23
to 54bone...@gmail.com, google-adm...@googlegroups.com

Hi,

 

Thank you for your response.

 

I was able to check your provided sample project, and I was able to replicate the error in my end. With that, let me share this to the wider team to further investigate. We will update you once we have more information on this.

54 Bones Games

unread,
Jan 18, 2023, 11:13:50 AM1/18/23
to Mobile Ads SDK Forum Advisor, Google Mobile Ads SDK Developers
Great, thanks for the update. 
Message has been deleted

A Bones

unread,
Jan 21, 2023, 11:07:18 PM1/21/23
to Google Mobile Ads SDK Developers
I noticed that Unity 2019.4 LTS is only compatible with Gradle 5.1.1:

Does  GoogleMobileAds-v7.3.1 (first time with this version)​ require a higher version of Gradle?
One of the errors speaks of deprecation from Gradle 6.0

Mobile Ads SDK Forum Advisor

unread,
Jan 22, 2023, 9:58:15 PM1/22/23
to 54bone...@gmail.com, google-adm...@googlegroups.com

Hello,

 

Michael here and I work along with Pamela.

 

Currently our team is working on investigating the underlying issue. Allow me to share to my team the information about the version to further confirm if this is compatibility issue and to share the urgency and importance of this concern. I will be certain to update you here the soonest I got some feedback from our team.

Regards,

Google Logo
Michael Angelo
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2hz6zK:ref

A Bones

unread,
Jan 27, 2023, 9:58:27 PM1/27/23
to Google Mobile Ads SDK Developers
Michael,

I appreciate you looking into this, we have several apps to monetize, and this has delayed launch by almost 2 weeks already.
Any assistance would be most appreciated.

Regards,

A Bones

Mobile Ads SDK Forum Advisor

unread,
Jan 30, 2023, 4:39:16 AM1/30/23
to 54bone...@gmail.com, google-adm...@googlegroups.com

Hello,
 

We understand your concern and appreciate your patience. I have followed up with our team and are doing their utmost to investigate the issue. I will be certain to update you here the soonest I receive feedback from our team.

 

Regards,

Google Logo
Zoilo Isagani
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2hz6zK:ref

A Bones

unread,
Feb 8, 2023, 12:22:02 PM2/8/23
to Google Mobile Ads SDK Developers
Just a note for your team, that using my same dev environment for this issue,
I have just updated 3 other apps that were running:
  • Google Mobile Ads SDK ios 7.53.0
  • Google Mobile Ads Unity Package 4.1.0
  • Play Services resolver Unity Package 1.2.135.0
  • Unity 2019.4.34f1 LTS and Android 31 build target, using Unity installed Gradle 5.1.1
We were able to build all apps with no GMads/Gradle build errors, only tested for android.
We may not meet ios requirements with the older Ad SDK in place.

Something in between those versions of GMads packages/SDK and the latest releases broke gradle compatibility along the way, or now requiring Gradle ver higher than 5.1.1. 

Mobile Ads SDK Forum Advisor

unread,
Feb 8, 2023, 2:16:47 PM2/8/23
to 54bone...@gmail.com, google-adm...@googlegroups.com

Hi,

 

Thank you for patiently waiting on this.

 

As per checking, currently our team is working on investigating the underlying issue. However, allow me to share to my team the information you've provided. We will be certain to update you here the soonest we got some feedback from our team.

 

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2hz6zK:ref

A Bones

unread,
Feb 21, 2023, 4:45:37 PM2/21/23
to Google Mobile Ads SDK Developers
Pamela,

It has been weeks and still no response from GMads team on this.

At the very least, you can tell me starting which version AFTER this combo:
  • Google Mobile Ads SDK ios 7.53.0
  • Google Mobile Ads Unity Package 4.1.0
  • Play Services resolver Unity Package 1.2.135.0

That I can safely update to, before encountering this build error. Somewhere in between 4.1.0 and latest, the error will begin to surface with building. I would appreciate some info about this issue.

Thanks.

E

Mobile Ads SDK Forum Advisor

unread,
Feb 22, 2023, 1:14:23 AM2/22/23
to 54bone...@gmail.com, google-adm...@googlegroups.com
Hello,

I've forwarded your inquiry to the wider team. The team is still currently investigating the issue. We understand the inconvenience this has brought you. We will update you on their response to your recent inquiry or any further progress with the investigation.

Regards,
Google Logo
Zoilo Isagani
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2hz6zK:ref

A Bones

unread,
Mar 7, 2023, 4:06:46 PM3/7/23
to Google Mobile Ads SDK Developers
Any progress on this aside from everyone forwarding to each other?

Mobile Ads SDK Forum Advisor

unread,
Mar 8, 2023, 2:42:25 AM3/8/23
to 54bone...@gmail.com, google-adm...@googlegroups.com
Hello,

We thank you for your patience. Our team is still currently investigating this issue. Know that we understand your frustration and we are doing our utmost in this investigation. We will update you the soonest for any developments.

Regards,
Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2hz6zK:ref
Reply all
Reply to author
Forward
0 new messages