AppLovin / AppLovin-MAX-Unity-Plugin

127 stars 35 forks source link

Initialization doesn't work on Android build #118

Closed alexisdavidson closed 2 years ago

alexisdavidson commented 2 years ago

Hi, The initialization and showing ads works perfectly in the Unity editor. Once I try it on an Android build though, the OnSdkInitializedEvent callback never gets called. There is no message error. I followed the documentation to install the Unity plugin. Any ideas?

Best regards, Alexis

santoshbagadi commented 2 years ago

Hi @alexisdavidson , could you please send us verbose logs while initializing the SDK so that we can investigate further.

Could you also share the AppLovin Unity plugin and Android SDK versions you are using.

alexisdavidson commented 2 years ago

Hi @santoshbagadi , I enabled verbose logs in the AppLovin Integration Manager but there is still no relevant error shown. I get this error right after the call for initialization but I'm thinking that it has nothing to do with it (Facebook SDK) https://i.imgur.com/goGQJGa.png

I used the Unity Plugin that is available to download in the documentation: 5.0.1 (Android 11.0.0 & iOS 11.0.0). I'm using Unity 2021.1.14f1 (I don't know how to find the Android SDK version)

santoshbagadi commented 2 years ago

Do you mind sharing the logs in text form. The image is blurry and I'm not really able to read the stacktrace of the crash/error.

alexisdavidson commented 2 years ago

My bad, here it is;

2022/01/11 21:20:53.882 20905 20995 Info Unity Initializing AppLovin SDK... userId: 985aed81-dad6-4f2a-b7f1-a0f732cd3aac 2022/01/11 21:20:53.882 20905 20995 Info Unity ApplovinAds:InitializeAllAds() 2022/01/11 21:20:53.882 20905 20995 Info Unity 2022/01/11 21:20:53.947 20905 20995 Error Unity AndroidJavaException: java.lang.ClassNotFoundException: com.facebook.unity.FB 2022/01/11 21:20:53.947 20905 20995 Error Unity java.lang.ClassNotFoundException: com.facebook.unity.FB 2022/01/11 21:20:53.947 20905 20995 Error Unity at java.lang.Class.classForName(Native Method) 2022/01/11 21:20:53.947 20905 20995 Error Unity at java.lang.Class.forName(Class.java:453) 2022/01/11 21:20:53.947 20905 20995 Error Unity at com.unity3d.player.UnityPlayer.nativeRender(Native Method) 2022/01/11 21:20:53.947 20905 20995 Error Unity at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0) 2022/01/11 21:20:53.947 20905 20995 Error Unity at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95) 2022/01/11 21:20:53.947 20905 20995 Error Unity at android.os.Handler.dispatchMessage(Handler.java:108) 2022/01/11 21:20:53.947 20905 20995 Error Unity at android.os.Looper.loop(Looper.java:216) 2022/01/11 21:20:53.947 20905 20995 Error Unity at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20) 2022/01/11 21:20:53.947 20905 20995 Error Unity Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.unity.FB" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.LinkoGames.xx-ylv-tjt-rxCes-w4IdMheA==/base.apk"],nativeLibraryDirectories=[/data/app/com.LinkoGames.xx-ylv-tjt-rxCes-w4IdMheA==/lib/arm64, /data/app/com.LinkoGames.xx-ylv-tjt-rxCes-w4IdMheA==/base.apk!/lib/arm64-v8

alexisdavidson commented 2 years ago

There is my initialization Code:

        MaxSdkCallbacks.OnSdkInitializedEvent += (MaxSdkBase.SdkConfiguration sdkConfiguration) => {
            IniAdUnits();
        };

        MaxSdk.SetVerboseLogging(true);
        MaxSdk.SetSdkKey(sdkKey);

        var userId = PlayerPrefs.GetString(PLAYERPREFS_USERID, string.Empty);
        if (userId == string.Empty)
        {
            userId = System.Guid.NewGuid().ToString();
            PlayerPrefs.SetString(PLAYERPREFS_USERID, userId);
        }

        MaxSdk.SetUserId(userId);
        MaxSdk.InitializeSdk();

        Debug.Log("Initializing AppLovin SDK... userId: " + userId);
hyucel6161 commented 2 years ago

Same exact issue. MaxSdkCallbacks.OnSdkInitializedEvent callback is not working.

zhang00lei commented 2 years ago

I had the same problem after I upgraded max sdk 5.0.0 to 5.0.1. So now I fall back to version 5.0.0

alexisdavidson commented 2 years ago

How can you rollback to 5.0.0? I couldn't find any .unitypackage in the releases in here.

santoshbagadi commented 2 years ago

@alexisdavidson It look like you are missing some FB library (you may want to double check that that the FB Unity plugin is correctly imported or try to re-import the FB plugin again). I think that is crashing Unity Android and might be causing our SDK to not init.

@zhang00lei , are you seeing the same crash stacktrace? If not, do you mind sharing verbose logs as well?

zhang00lei commented 2 years ago

@santoshbagadi I upgraded to version 5.0.1 just now and found that everything was normal, and I couldn't reproduce the problem with OnSdkInitializedEvent. Maybe there was something wrong with my previous operation.

alexisdavidson commented 2 years ago

@santoshbagadi I could remove the error by doing Clean and New build in the Addressable Groups. There is no errors anymore but the initialization of Applovin SDK is still not going through :(

santoshbagadi commented 2 years ago

@alexisdavidson , do you mind sharing the verbose logs again when you are running the app (full logs would be very helpful).

alexisdavidson commented 2 years ago

@santoshbagadi here is the full log:

2022/01/12 12:04:21.830 11774 11851 Info Unity MemoryManager: Using 'Dynamic Heap' Allocator. 2022/01/12 12:04:21.833 11774 11774 Warn UnityMain type=1400 audit(0.0:191656): avc: granted { create } for name="c5b11ac3f45b8441a953f3ea5e889e5e" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.848 11774 11851 Info Unity SystemInfo CPU = ARM64 FP ASIMD AES, Cores = 8, Memory = 3715mb 2022/01/12 12:04:21.848 11774 11851 Info Unity 2022/01/12 12:04:21.848 11774 11851 Info Unity SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf) 2022/01/12 12:04:21.848 11774 11851 Info Unity 2022/01/12 12:04:21.848 11774 11851 Info Unity ApplicationInfo com.LinkoGames.xx version 0.03 build f401a3bc-b4d3-4019-88b4-c4ecb34f38fe 2022/01/12 12:04:21.848 11774 11851 Info Unity 2022/01/12 12:04:21.849 11774 11851 Info Unity Built from '2021.1/draft/staging' branch, Version '2021.1.14f1 (e9ada7b7f1b7)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a', Stripping 'Enabled' 2022/01/12 12:04:21.849 11774 11851 Info Unity 2022/01/12 12:04:21.873 11774 11774 Warn UnityMain type=1400 audit(0.0:191657): avc: granted { create } for name="il2cpp" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.873 11774 11774 Warn UnityMain type=1400 audit(0.0:191658): avc: granted { create } for name="Resources" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.873 11774 11774 Warn UnityMain type=1400 audit(0.0:191659): avc: granted { create } for name="System.Data.dll-resources.dat" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.873 11774 11774 Warn UnityMain type=1400 audit(0.0:191660): avc: granted { create } for name="mscorlib.dll-resources.dat" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.877 11774 11774 Warn UnityMain type=1400 audit(0.0:191661): avc: granted { create } for name="Metadata" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.877 11774 11774 Warn UnityMain type=1400 audit(0.0:191662): avc: granted { create } for name="global-metadata.dat" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.921 11774 11774 Warn UnityMain type=1400 audit(0.0:191663): avc: granted { create } for name="etc" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.925 11774 11774 Warn UnityMain type=1400 audit(0.0:191664): avc: granted { create } for name="mono" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.929 11774 11774 Warn UnityMain type=1400 audit(0.0:191665): avc: granted { create } for name="mconfig" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.929 11774 11774 Warn UnityMain type=1400 audit(0.0:191666): avc: granted { create } for name="config.xml" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.929 11774 11774 Warn UnityMain type=1400 audit(0.0:191667): avc: granted { create } for name="4.5" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.929 11774 11774 Warn UnityMain type=1400 audit(0.0:191668): avc: granted { create } for name="machine.config" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.929 11774 11774 Warn UnityMain type=1400 audit(0.0:191669): avc: granted { create } for name="DefaultWsdlHelpGenerator.aspx" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.933 11774 11774 Warn UnityMain type=1400 audit(0.0:191670): avc: granted { create } for name="settings.map" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.933 11774 11774 Warn UnityMain type=1400 audit(0.0:191671): avc: granted { create } for name="Browsers" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.933 11774 11774 Warn UnityMain type=1400 audit(0.0:191672): avc: granted { create } for name="Compat.browser" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.933 11774 11774 Warn UnityMain type=1400 audit(0.0:191673): avc: granted { create } for name="web.config" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.933 11774 11774 Warn UnityMain type=1400 audit(0.0:191674): avc: granted { create } for name="browscap.ini" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.933 11774 11774 Warn UnityMain type=1400 audit(0.0:191675): avc: granted { create } for name="config" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.933 11774 11774 Warn UnityMain type=1400 audit(0.0:191676): avc: granted { create } for name="4.0" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.933 11774 11774 Warn UnityMain type=1400 audit(0.0:191677): avc: granted { create } for name="machine.config" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.937 11774 11774 Warn UnityMain type=1400 audit(0.0:191678): avc: granted { create } for name="Browsers" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.937 11774 11774 Warn UnityMain type=1400 audit(0.0:191679): avc: granted { create } for name="Compat.browser" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.937 11774 11774 Warn UnityMain type=1400 audit(0.0:191680): avc: granted { create } for name="DefaultWsdlHelpGenerator.aspx" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.937 11774 11774 Warn UnityMain type=1400 audit(0.0:191681): avc: granted { create } for name="web.config" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.937 11774 11774 Warn UnityMain type=1400 audit(0.0:191682): avc: granted { create } for name="settings.map" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.937 11774 11774 Warn UnityMain type=1400 audit(0.0:191683): avc: granted { create } for name="2.0" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.937 11774 11774 Warn UnityMain type=1400 audit(0.0:191684): avc: granted { create } for name="Browsers" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=dir 2022/01/12 12:04:21.937 11774 11774 Warn UnityMain type=1400 audit(0.0:191685): avc: granted { create } for name="Compat.browser" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.937 11774 11774 Warn UnityMain type=1400 audit(0.0:191686): avc: granted { create } for name="DefaultWsdlHelpGenerator.aspx" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.941 11774 11774 Warn UnityMain type=1400 audit(0.0:191687): avc: granted { create } for name="settings.map" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.941 11774 11774 Warn UnityMain type=1400 audit(0.0:191688): avc: granted { create } for name="web.config" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:21.941 11774 11774 Warn UnityMain type=1400 audit(0.0:191689): avc: granted { create } for name="machine.config" scontext=u:r:untrusted_app:s0:c213,c257,c512,c768 tcontext=u:object_r:sdcardfs:s0:c213,c257,c512,c768 tclass=file 2022/01/12 12:04:22.038 11774 11851 Info Unity Company Name: LinkoGames 2022/01/12 12:04:22.038 11774 11851 Info Unity Product Name: XX 2022/01/12 12:04:22.055 11774 11851 Debug Unity GL_EXT_debug_marker GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth24 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_EXT_read_format_bgra GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_required_internalformat GL_OES_vertex_array_object GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_type_2_10_10_10_REV GL_OES_fbo_render_mipmap GL_OES_element_index_uint GL_EXT_shadow_samplers GL_OES_texture_compression_astc GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_KHR_texture_compression_astc_sliced_3d GL_KHR_debug GL_EXT_occlusion_query_boolean GL_EXT_disjoint_timer_query GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_OES_get_program_binary GL_OES_texture_3D GL_EXT_texture_storage GL_EXT_multisampledrender 2022/01/12 12:04:22.055 11774 11851 Debug Unity to_texture GL_OES_surfaceless_context GL_OES_texture_stencil8 GL_EXT_shader_pixel_local_storage GL_ARM_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_ARM_mali_program_binary GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_texture_sRGB_decode GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_RG8 GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_OES_texture_storage_multisample_2d_array GL_OES_shader_image_atomic GL_EXT_robustness GL_EXT_draw_buffers_indexed GL_OES_draw_buffers_indexed GL_EXT_texture_border_clamp GL_OES_texture_border_clamp GL_EXT_texture_cube_map_array GL_OES_texture_cube_map_array GL_OES_sample_variables GL_OES_sample_shading GL_OES_shader_multisample_interpolation GL_EXT_shader_io_blocks GL_OES_shader_io_blocks GL_EXT_tessellation_shader GL_OES_tessellation_shader GL_EXT_primitive_bounding_box GL_OES_primitive_bounding_box GL_EXT_geometry_shader GL_OES_geometry_shader GL_ANDROID_extension_pack_es31a GL_EXT_gpu_shader5 GL_OES_gpu_shader5 GL_EXT_texture 2022/01/12 12:04:22.055 11774 11851 Debug Unity _buffer GL_OES_texture_buffer GL_EXT_copy_image GL_OES_copy_image GL_EXT_shader_non_constant_global_initializers GL_EXT_color_buffer_half_float GL_EXT_color_buffer_float GL_EXT_YUV_target GL_OVR_multiview GL_OVR_multiview2 GL_OVR_multiview_multisampled_render_to_texture GL_KHR_robustness GL_KHR_robust_buffer_access_behavior GL_EXT_draw_elements_base_vertex GL_OES_draw_elements_base_vertex GL_EXT_protected_textures GL_EXT_buffer_storage 2022/01/12 12:04:24.679 11774 11851 Info Unity Initializing AppLovin SDK... userId: 985aed81-dad6-4f2a-b7f1-a0f732cd3aac 2022/01/12 12:04:24.679 11774 11851 Info Unity ApplovinAds:InitializeAllAds() 2022/01/12 12:04:24.679 11774 11851 Info Unity 2022/01/12 12:04:24.769 11774 11851 Info Unity Using Facebook Unity SDK v11.0.0 with FBAndroidSDK/11.3.0 2022/01/12 12:04:24.769 11774 11851 Info Unity Facebook.Unity.CompiledFacebookLoader:Start() 2022/01/12 12:04:24.769 11774 11851 Info Unity 2022/01/12 12:04:24.788 11774 11851 Warn Unity Unavailable product com.linkogames.xx.removeads-com.linkogames.xx.removeads 2022/01/12 12:04:24.788 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:HasAvailableProductsToPurchase(Boolean) 2022/01/12 12:04:24.788 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:CheckForInitialization() 2022/01/12 12:04:24.788 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:OnProductsRetrieved(List1) 2022/01/12 12:04:24.788 11774 11851 Warn Unity System.Action:Invoke() 2022/01/12 12:04:24.788 11774 11851 Warn Unity UnityEngine.Purchasing.Extension.UnityUtil:Update() 2022/01/12 12:04:24.788 11774 11851 Warn Unity 2022/01/12 12:04:24.789 11774 11851 Warn Unity Unavailable product com.linkogames.xx.gold1000-com.linkogames.xx.gold1000 2022/01/12 12:04:24.789 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:HasAvailableProductsToPurchase(Boolean) 2022/01/12 12:04:24.789 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:CheckForInitialization() 2022/01/12 12:04:24.789 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:OnProductsRetrieved(List1) 2022/01/12 12:04:24.789 11774 11851 Warn Unity System.Action:Invoke() 2022/01/12 12:04:24.789 11774 11851 Warn Unity UnityEngine.Purchasing.Extension.UnityUtil:Update() 2022/01/12 12:04:24.789 11774 11851 Warn Unity 2022/01/12 12:04:24.789 11774 11851 Warn Unity Unavailable product com.linkogames.xx.gold10000-com.linkogames.xx.gold10000 2022/01/12 12:04:24.789 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:HasAvailableProductsToPurchase(Boolean) 2022/01/12 12:04:24.789 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:CheckForInitialization() 2022/01/12 12:04:24.789 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:OnProductsRetrieved(List1) 2022/01/12 12:04:24.789 11774 11851 Warn Unity System.Action:Invoke() 2022/01/12 12:04:24.789 11774 11851 Warn Unity UnityEngine.Purchasing.Extension.UnityUtil:Update() 2022/01/12 12:04:24.789 11774 11851 Warn Unity 2022/01/12 12:04:24.790 11774 11851 Warn Unity Unavailable product com.linkogames.xx.removeadsdiscount-com.linkogames.xx.removeadsdiscount 2022/01/12 12:04:24.790 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:HasAvailableProductsToPurchase(Boolean) 2022/01/12 12:04:24.790 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:CheckForInitialization() 2022/01/12 12:04:24.790 11774 11851 Warn Unity UnityEngine.Purchasing.PurchasingManager:OnProductsRetrieved(List1) 2022/01/12 12:04:24.790 11774 11851 Warn Unity System.Action:Invoke() 2022/01/12 12:04:24.790 11774 11851 Warn Unity UnityEngine.Purchasing.Extension.UnityUtil:Update() 2022/01/12 12:04:24.790 11774 11851 Warn Unity 2022/01/12 12:04:24.791 11774 11851 Error Unity Purchasing failed to initialize. Reason: NoProductsAvailable 2022/01/12 12:04:24.791 11774 11851 Error Unity UnityEngine.Purchasing.CodelessIAPStoreListener:OnInitializeFailed(InitializationFailureReason) 2022/01/12 12:04:24.791 11774 11851 Error Unity UnityEngine.Purchasing.PurchasingManager:CheckForInitialization() 2022/01/12 12:04:24.791 11774 11851 Error Unity UnityEngine.Purchasing.PurchasingManager:OnProductsRetrieved(List1) 2022/01/12 12:04:24.791 11774 11851 Error Unity System.Action:Invoke() 2022/01/12 12:04:24.791 11774 11851 Error Unity UnityEngine.Purchasing.Extension.UnityUtil:Update() 2022/01/12 12:04:24.791 11774 11851 Error Unity 2022/01/12 12:04:24.903 11774 11851 Warn Unity Too many additional punctual lights shadows to look good, URP removed 56 shadow maps to make the others fit in the shadow atlas. To avoid this, increase shadow atlas size, remove some shadowed lights, replace soft shadows by hard shadows ; or replace point lights by spot lights 2022/01/12 12:04:24.903 11774 11851 Warn Unity UnityEngine.Rendering.Universal.Internal.AdditionalLightsShadowCasterPass:Setup(RenderingData&) 2022/01/12 12:04:24.903 11774 11851 Warn Unity UnityEngine.Rendering.Universal.ForwardRenderer:Setup(ScriptableRenderContext, RenderingData&) 2022/01/12 12:04:24.903 11774 11851 Warn Unity UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderSingleCamera(ScriptableRenderContext, CameraData, Boolean) 2022/01/12 12:04:24.903 11774 11851 Warn Unity UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderCameraStack(ScriptableRenderContext, Camera) 2022/01/12 12:04:24.903 11774 11851 Warn Unity UnityEngine.Rendering.Universal.UniversalRenderPipeline:Render(ScriptableRenderContext, List1) 2022/01/12 12:04:24.903 11774 11851 Warn Unity UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal(RenderPipelineAsset, IntPtr, List1) 2022/01/12 12:04:24.903 11774 11851 Warn Unity 2022/01/12 12:04:24.904 11774 11851 Info Unity Reduced additional punctual light shadows resolution by 2 to make 16 shadow maps fit in the 2048x2048 shadow atlas. To avoid this, increase shadow atlas size, decrease big shadow resolutions, or reduce the number of shadow maps active in the same frame 2022/01/12 12:04:24.904 11774 11851 Info Unity UnityEngine.Rendering.Universal.Internal.AdditionalLightsShadowCasterPass:AtlasLayout(Int32, Int32, Int32) 2022/01/12 12:04:24.904 11774 11851 Info Unity UnityEngine.Rendering.Universal.Internal.AdditionalLightsShadowCasterPass:Setup(RenderingData&) 2022/01/12 12:04:24.904 11774 11851 Info Unity UnityEngine.Rendering.Universal.ForwardRenderer:Setup(ScriptableRenderContext, RenderingData&) 2022/01/12 12:04:24.904 11774 11851 Info Unity UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderSingleCamera(ScriptableRenderContext, CameraData, Boolean) 2022/01/12 12:04:24.904 11774 11851 Info Unity UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderCameraStack(ScriptableRenderContext, Camera) 2022/01/12 12:04:24.904 11774 11851 Info Unity UnityEngine.Rendering.Universal.UniversalRenderPipeline:Render(ScriptableRenderContext, List1) 2022/01/12 12:04:24.904 11774 11851 Info Unity UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal(RenderPipelineAsset, IntPtr, List1) 2022/01/12 12:04:24.904 11774 11851 Info Unity 2022/01/12 12:04:24.982 11774 11851 Info Unity Firebase Analytics API Initializing 2022/01/12 12:04:24.982 11774 11851 Info Unity 2022/01/12 12:04:25.000 11774 11851 Info Unity Firebase Analytics API Initializing 2022/01/12 12:04:25.000 11774 11851 Info Unity 2022/01/12 12:04:25.001 11774 11851 Info Unity analytics API Initialized 2022/01/12 12:04:25.001 11774 11851 Info Unity 2022/01/12 12:04:25.032 11774 11851 Info Unity The Locale 'en-US' is not available, however the parent locale 'en' is available. 2022/01/12 12:04:25.032 11774 11851 Info Unity UnityEngine.Localization.Settings.SystemLocaleSelector:GetStartupLocale(ILocalesProvider) 2022/01/12 12:04:25.032 11774 11851 Info Unity UnityEngine.Localization.Settings.LocalizationSettings:SelectLocaleUsingStartupSelectors() 2022/01/12 12:04:25.032 11774 11851 Info Unity UnityEngine.Localization.Settings.LocalizationSettings:<GetSelectedLocaleAsync>b__76_0(AsyncOperationHandle) 2022/01/12 12:04:25.032 11774 11851 Info Unity System.Func2:Invoke(T) 2022/01/12 12:04:25.032 11774 11851 Info Unity UnityEngine.ResourceManagement.ChainOperationTypelessDepedency1:Execute() 2022/01/12 12:04:25.032 11774 11851 Info Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase1:InvokeExecute() 2022/01/12 12:04:25.032 11774 11851 Info Unity System.Action1:Invoke(T) 2022/01/12 12:04:25.032 11774 11851 Info Unity UnityEngine.ResourceManagement.AsyncOperations.<>c__DisplayClass57_0:<add_CompletedTypeless>b__0(AsyncOperationHandle1) 2022/01/12 12:04:25.032 11774 11851 Info Unity System.Action1:Invoke(T) 2022/01/12 12:04:25.032 11774 11851 Info Unity DelegateList1:Invoke(T) 2022/01/12 12:04:25.032 11774 11851 Info Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase1:InvokeCompletionEvent() 2022/01/12 12:04:25.032 11774 11851 Info Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase1:Complete(TObject, Boolean, Exception, Boolean) 2022/01/12 12:04:25.032 11774 11851 Info Unity System.Action1:Invoke(T) 2022/01/12 12:04:25.032 11774 11851 Info Unity DelegateList1:Invoke(T) 2022/01/12 12:04:25.032 11774 11851 Info Unity UnityEngine.

santoshbagadi commented 2 years ago

Weird, there are no logs from our SDK. I'm not able to reproduce the issue locally. Could you share a sample project where the issue is reproducible to santosh.bagadi@applovin.com

Also, could you check if you are able to reproduce the issue using our demo app in this repo.

alexisdavidson commented 2 years ago

When running the demo app, I get a "No Fill" hint upon loading ads. The initialization seems to be working.

I'll look into my project again because right now it's a mess with the dependencies. The project was using AdMob mediation before and all sorts of stuff.

I'll report back once I find something. Thanks for the support

hyucel6161 commented 2 years ago

Unity: 2020.3.25f1 I have basic Firebase libraries in.(AppCore, Crashlytics, Analytics) External Dependencey Manager for Unity : 1.2.168

Here is the error that I am getting. The only difference is I am using the latest Android Resolver instead of using the SDK resolver version.

2022-01-12 09:03:33.528 E/AppLovinSdk: [ConnectionManager] Unable to parse response from #842147474 "ms.applovin.com/5.0/i" java.lang.IllegalStateException: MobileAds.initialize() must be called prior to getting version string. at com.google.android.gms.common.internal.Preconditions.checkState(com.google.android.gms:play-services-basement@@18.0.0:2) at com.google.android.gms.internal.ads.zzbhs.zzl(com.google.android.gms:play-services-ads-lite@@20.5.0:1) at com.google.android.gms.ads.MobileAds.getVersionString(com.google.android.gms:play-services-ads-lite@@20.5.0:1) at com.applovin.mediation.adapters.GoogleMediationAdapter.getSdkVersion(GoogleMediationAdapter.java:154) at com.applovin.impl.mediation.c.c.b(Unknown Source:44) at com.applovin.impl.mediation.c.c.a(Unknown Source:23) at com.applovin.impl.sdk.i.a(Unknown Source:71) at com.applovin.impl.sdk.utils.g.a(Unknown Source:4) at com.applovin.impl.sdk.m$3.a(Unknown Source:32) at com.applovin.impl.sdk.e.i.a(Unknown Source:9) at com.applovin.impl.sdk.e.i.a(Unknown Source:0) at com.applovin.impl.sdk.e.i$1.a(Unknown Source:2) at com.applovin.impl.sdk.e.i$1.a(Unknown Source:2) at com.applovin.impl.sdk.e.u$1.a(Unknown Source:12) at com.applovin.impl.sdk.network.b.a(Unknown Source:800) at com.applovin.impl.sdk.e.u.run(Unknown Source:101) at com.applovin.impl.sdk.e.o.a(Unknown Source:2) at com.applovin.impl.sdk.e.i.run(Unknown Source:222) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923) 2022-01-12 09:03:33.530 E/AppLovinSdk: [TaskRepeatRequest] Unable to fetch basic SDK settings: server returned -800 2022-01-12 09:03:33.537 E/AppLovinSdk: [ConnectionManager] Failed POST returned 200 in 4.423 s over wifi to #842147474 "ms.applovin.com/5.0/i" java.lang.IllegalStateException: MobileAds.initialize() must be called prior to getting version string. at com.google.android.gms.common.internal.Preconditions.checkState(com.google.android.gms:play-services-basement@@18.0.0:2) at com.google.android.gms.internal.ads.zzbhs.zzl(com.google.android.gms:play-services-ads-lite@@20.5.0:1) at com.google.android.gms.ads.MobileAds.getVersionString(com.google.android.gms:play-services-ads-lite@@20.5.0:1) at com.applovin.mediation.adapters.GoogleMediationAdapter.getSdkVersion(GoogleMediationAdapter.java:154) at com.applovin.impl.mediation.c.c.b(Unknown Source:44) at com.applovin.impl.mediation.c.c.a(Unknown Source:23) at com.applovin.impl.sdk.i.a(Unknown Source:71) at com.applovin.impl.sdk.utils.g.a(Unknown Source:4) at com.applovin.impl.sdk.m$3.a(Unknown Source:32) at com.applovin.impl.sdk.e.i.a(Unknown Source:9) at com.applovin.impl.sdk.e.i.a(Unknown Source:0) at com.applovin.impl.sdk.e.i$1.a(Unknown Source:30) at com.applovin.impl.sdk.e.i$1.a(Unknown Source:2) at com.applovin.impl.sdk.e.u$1.a(Unknown Source:335) at com.applovin.impl.sdk.network.b.a(Unknown Source:846) at com.applovin.impl.sdk.e.u.run(Unknown Source:101) at com.applovin.impl.sdk.e.o.a(Unknown Source:2) at com.applovin.impl.sdk.e.i.run(Unknown Source:222) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923) 2022-01-12 09:03:33.537 E/AppLovinSdk: [TaskRepeatRequest] Unable to fetch basic SDK settings: server returned 200 2022-01-12 09:03:33.539 E/AppLovinSdk: [TaskRepeatRequest] Task failed execution java.lang.IllegalStateException: MobileAds.initialize() must be called prior to getting version string. at com.google.android.gms.common.internal.Preconditions.checkState(com.google.android.gms:play-services-basement@@18.0.0:2) at com.google.android.gms.internal.ads.zzbhs.zzl(com.google.android.gms:play-services-ads-lite@@20.5.0:1) at com.google.android.gms.ads.MobileAds.getVersionString(com.google.android.gms:play-services-ads-lite@@20.5.0:1) at com.applovin.mediation.adapters.GoogleMediationAdapter.getSdkVersion(GoogleMediationAdapter.java:154) at com.applovin.impl.mediation.c.c.b(Unknown Source:44) at com.applovin.impl.mediation.c.c.a(Unknown Source:23) at com.applovin.impl.sdk.i.a(Unknown Source:71) at com.applovin.impl.sdk.utils.g.a(Unknown Source:4) at com.applovin.impl.sdk.m$3.a(Unknown Source:32) at com.applovin.impl.sdk.e.i.a(Unknown Source:9) at com.applovin.impl.sdk.e.i.a(Unknown Source:0) at com.applovin.impl.sdk.e.i$1.a(Unknown Source:30) at com.applovin.impl.sdk.e.i$1.a(Unknown Source:2) at com.applovin.impl.sdk.e.u$1.a(Unknown Source:335) at com.applovin.impl.sdk.network.b.a(Unknown Source:1164) at com.applovin.impl.sdk.e.u.run(Unknown Source:101) at com.applovin.impl.sdk.e.o.a(Unknown Source:2) at com.applovin.impl.sdk.e.i.run(Unknown Source:222) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923)

santoshbagadi commented 2 years ago

Hi @hyucel6161 , this is a recent issue in our AdMob (Google) adapter that is now fixed in the latest release of the adapter (Android: 20.5.0.5 & iOS: 8.13.0.4). Please let us know if you still experience the issue after updating to the latest Google adapters.

hyucel6161 commented 2 years ago

Hi @santoshbagadi , thanks for the info. I just realized that there is an update for Admob adapters. Appreciated. All issues got resolved on my end. Everything is working as expected now.

alexisdavidson commented 2 years ago

Hi @santoshbagadi , I've been working on recreating my whole project in a new blank project. Upon importing the MaxSDK, I get the following error during the gradle build:

Could not find mandatory file: com.applovin.mediation.ads.MaxAdView

Any ideas? Let me know if I should create a new Issue for this

santoshbagadi commented 2 years ago

@alexisdavidson , I've not seen this issue/error before. Is this a build time or runtime error?

Feels like the AppLovin Android SDK is not being pulled in by the External Dependency Manger. Can you try force resolving by clicking Assets > External Dependency Manager > Android Resolver > Force Resolve to get all dependencies and see if that fixes the issue.

alexisdavidson commented 2 years ago

@santoshbagadi , It is a build time error (gradle build). Unfortunately, doing a Force Resolve did not solve the issue. Here is the full console log:

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 [SafeDK-ERROR] Could not find mandatory file: com.applovin.mediation.ads.MaxAdView, Exception: Could not find mandatory file: com.applovin.mediation.ads.MaxAdView [SafeDK-ERROR] Could not find mandatory file: com.applovin.mediation.ads.MaxAdView, Exception: Could not find mandatory file: com.applovin.mediation.ads.MaxAdView

FAILURE: Build failed with an exception.

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

UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

santoshbagadi commented 2 years ago

@alexisdavidson , I'm still not sure what could be causing the error (maybe related to multidex). Could you share the build.gradle file of the exported Android project.

alexisdavidson commented 2 years ago

@santoshbagadi on this blank project I'm using Unity 2021.2.7f1 and I do not find any .gradle file under Plugins/Android (which is kind of confusing me) and under Build Settings there is no way to choose Build system: gradle like in the other verions. I could tick the option to use a custom .gradle file in the Player settings though?

alexisdavidson commented 2 years ago

@santoshbagadi Oh nevermind, I exported the project and there was this build.gradle:

allprojects {
    buildscript {
        repositories {
            google()
            jcenter()
            maven { url 'https://artifacts.applovin.com/android' }
        }

        dependencies {
            // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
            // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
            // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
            // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
            classpath 'com.android.tools.build:gradle:4.0.1'
            classpath 'com.applovin.quality:AppLovinQualityServiceGradlePlugin:+'

        }
    }

    repositories {
        google()
        jcenter()
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
santoshbagadi commented 2 years ago

@alexisdavidson , sorry for the back and forth but I would need the build.gradle files under unityLibrary and launcher.

alexisdavidson commented 2 years ago

@santoshbagadi I'm very thankful that you are bearing with me.

Under the unityLibrary folder:

apply plugin: 'com.android.library'

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation(name: 'simple-android-notifications', ext:'aar')
    implementation(name: 'applovin-max-unity-plugin', ext:'aar')
    implementation(name: 'UnityAds', ext:'aar')
    implementation(name: 'billing-3.0.3', ext:'aar')
    implementation(name: 'UnityAdsAndroidPlugin', ext:'aar')
    implementation(name: 'common', ext:'aar')

}

android {
    compileSdkVersion 32
    buildToolsVersion '32.0.0'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        minSdkVersion 22
        targetSdkVersion 32
        ndk {
            abiFilters 'armeabi-v7a'
        }
        versionCode 1
        versionName '0.1'
        consumerProguardFiles 'proguard-unity.txt'
    }

    lintOptions {
        abortOnError false
    }

    aaptOptions {
        noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.unityexp'] + unityStreamingAssets.tokenize(', ')
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    }

    packagingOptions {
        doNotStrip '*/armeabi-v7a/*.so'
    }
}

Under the launcher folder:

apply plugin: 'com.android.application'
apply plugin: 'applovin-quality-service'

applovin {
    // NOTE: DO NOT CHANGE - this is NOT your AppLovin MAX SDK key - this is a derived key.
    apiKey 'okLRDFU4Uo_kwlQEQrxKITsw0pMr2fz1bqQEGER5TxMi7RHXrQztxx6aiGokRM-OacWvxtfLOaMiqmT-kiDQcE'
}

dependencies {
    implementation project(':unityLibrary')
    }

android {
    compileSdkVersion 32
    buildToolsVersion '32.0.0'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        minSdkVersion 22
        targetSdkVersion 32
        applicationId 'com.DefaultCompany.PMan'
        ndk {
            abiFilters 'armeabi-v7a'
        }
        versionCode 1
        versionName '0.1'
    }

    aaptOptions {
        noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.unityexp'] + unityStreamingAssets.tokenize(', ')
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    }

    signingConfigs {
        release {
            storeFile file('C:/Unity Projects/P Man/cup.keystore')
            storePassword ''
            keyAlias 'linko'
            keyPassword ''
        }
    }

    lintOptions {
        abortOnError false
    }

    buildTypes {
        debug {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt')
            signingConfig signingConfigs.release
            jniDebuggable true
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt')
            signingConfig signingConfigs.release
        }
    }

    packagingOptions {
        doNotStrip '*/armeabi-v7a/*.so'
    }

    bundle {
        language {
            enableSplit = false
        }
        density {
            enableSplit = false
        }
        abi {
            enableSplit = true
        }
    }
}
santoshbagadi commented 2 years ago

Yeah, I don't see the dependencies being added to the build.gradle file. If added correctly you would see them under dependencies in unityLibrary/build.gradle file.

Can you try enabling Custom Main Gradle Template in Player Settings and force resolving External Dependency Manager again to see if that fixes the issue (Also make sure that Patch mainTempalte.gradle is enabled in Assets > External Dependency Manager > Android Resolver > Settings).

alexisdavidson commented 2 years ago

I deleted ExternalDependencyManager that was installed along with the AppLovin package and installed a custom ExternalDependencyManager myself (following some link here https://forum.unity.com/threads/2021-2-0a19-firebase_unity_sdk_7-2-0-ambiguousmatchexception-ambiguous-match-found.1120678/)

This removed the gradle build error and now my game can finally build successfully (as you say, the dependencies can now be seen in unityLibrary/build.gradle)

Somehow this (or going from a blank project also fixed the initialization problem that I originally had when creating this thread :) Thank you so much @santoshbagadi for sticking with me!