unreal engine 5 apprenatly refuse to allow admob to work.
im using ue 5.0.2
blueprint project refuse to show admob.
so i had to insert an empty c++ file so i can add the lines
ExtraModuleNames.Add("OnlineSubsystemGooglePlay");
ExtraModuleNames.Add("OnlineSubsystem");
ExtraModuleNames.Add("AndroidAdvertising");
in the target cs file so admob work.
usually this work in ue4! but in ue5? no it does not.
my settings are correct. they are the same as ue4. i watched all tuts as well. no luck.
here is the error.
UATHelper: Packaging (Android (Multi:ETC2)): Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:231: error: package com.google.android.gms.ads.identifier does not exist
UATHelper: Packaging (Android (Multi:ETC2)): The following annotation processors are not incremental: lifecycle-compiler-2.0.0.jar (androidx.lifecycle:lifecycle-compiler:2.0.0).
UATHelper: Packaging (Android (Multi:ETC2)): Make sure all annotation processors are incremental to improve your build speed.
UATHelper: Packaging (Android (Multi:ETC2)): import com.google.android.gms.ads.identifier.AdvertisingIdClient;
UATHelper: Packaging (Android (Multi:ETC2)): ^
UATHelper: Packaging (Android (Multi:ETC2)): Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:232: error: package com.google.android.gms.ads.identifier.AdvertisingIdClient does not exist
UATHelper: Packaging (Android (Multi:ETC2)): import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info;
UATHelper: Packaging (Android (Multi:ETC2)): ^
UATHelper: Packaging (Android (Multi:ETC2)): 2 errors
UATHelper: Packaging (Android (Multi:ETC2)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (Multi:ETC2)): * What went wrong:
UATHelper: Packaging (Android (Multi:ETC2)): Execution failed for task ':app:compileReleaseJavaWithJavac'.
UATHelper: Packaging (Android (Multi:ETC2)): > Compilation failed; see the compiler error output for details.
UATHelper: Packaging (Android (Multi:ETC2)): * Try:
UATHelper: Packaging (Android (Multi:ETC2)): 39 actionable tasks: 39 executed
UATHelper: Packaging (Android (Multi:ETC2)): 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.
UATHelper: Packaging (Android (Multi:ETC2)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (Multi:ETC2)): BUILD FAILED in 11s
UATHelper: Packaging (Android (Multi:ETC2)): ERROR: cmd.exe failed with args /c "C:\Users\Sultan Aliraq\Documents\Unreal Projects\turretexample2\Intermediate\Android\arm64\gradle\rungradle.bat" :app:assembleRelease
UATHelper: Packaging (Android (Multi:ETC2)): (see C:\Users\Sultan Aliraq\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+games+Epic+Games+UE_5.0\Log.txt for full exception trace)
UATHelper: Packaging (Android (Multi:ETC2)): AutomationTool executed for 0h 1m 33s
UATHelper: Packaging (Android (Multi:ETC2)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (Multi:ETC2)): Updating environment variables set by a Turnkey sub-process
UATHelper: Packaging (Android (Multi:ETC2)): The system cannot find the path specified.
UATHelper: Packaging (Android (Multi:ETC2)): The system cannot find the path specified.