Closed madTeddy closed 1 year ago
Hi @madTeddy
Can you try modifying the play-services-ads
version in GoogleMobileAdsDependencies.xml to 20.0.0
?
<dependencies>
<androidPackages>
<androidPackage spec="com.google.android.gms:play-services-ads:20.0.0">
<repositories>
<repository>https://maven.google.com/</repository>
</repositories>
</androidPackage>
</androidPackages>
<iosPods>
<iosPod name="Google-Mobile-Ads-SDK" version="~> 9.0">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
</iosPod>
</iosPods>
</dependencies>
Let me know if this helps.
Hi @madTeddy
Can you try modifying the
play-services-ads
version in GoogleMobileAdsDependencies.xml to20.0.0
?<dependencies> <androidPackages> <androidPackage spec="com.google.android.gms:play-services-ads:20.0.0"> <repositories> <repository>https://maven.google.com/</repository> </repositories> </androidPackage> </androidPackages> <iosPods> <iosPod name="Google-Mobile-Ads-SDK" version="~> 9.0"> <sources> <source>https://github.com/CocoaPods/Specs</source> </sources> </iosPod> </iosPods> </dependencies>
Let me know if this helps.
Nope, it didn't help. Same endless black screen.
I/ActivityManager( 1835): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ahg.metronome/com.unity3d.player.UnityPlayerActivity bnds=[345,872][719,1142] (has extras)} from uid 1000 on display 0
V/WindowManager( 1835): addAppToken: AppWindowToken{2efa70be token=Token{8128b79 ActivityRecord{3a41c040 u0 com.ahg.metronome/com.unity3d.player.UnityPlayerActivity t2}}} to stack=1 task=2 at 0
V/WindowManager( 1835): Adding window Window{3d7530b1 u0 Starting com.ahg.metronome} at 2 of 5 (after Window{107f480f u0 com.vphone.launcher/com.vphone.launcher.Launcher})
W/ContextImpl( 2086): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1341 android.content.ContextWrapper.sendBroadcast:382 com.vphone.launcher.Stats.recordLaunch:129 com.vphone.launcher.Launcher.c:3381 com.vphone.launcher.Launcher.onClickAppShortcut:3333
D/yeshen ( 2086): launcher onpause
I/ActivityManager( 1835): Start proc 4652:com.ahg.metronome/u0a53 for activity com.ahg.metronome/com.unity3d.player.UnityPlayerActivity
D/houdini ( 4652): [4652] Initialize library(version: 5.0.7b_x.48396 RELEASE)... successfully.
D/PermissionCache( 1531): checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (71 us)
E/EGL_emulation( 1531): tid 1531: eglCreateSyncKHR(1346): error 0x3004 (EGL_BAD_ATTRIBUTE)
D/SurfaceFlinger( 1531): setOrientation, mFbdev=0xb68613c0, mFbDev->setOrientation=0xb64eada0, orientation=3
D/Sensors ( 1835): Client connection accepted (192)
W/SchedPolicy( 1835): add_tid_to_cgroup failed to write '2232' (Permission denied); fd=11
W/ActivityManager( 1835): Failed setting process group of 2232 to 0
W/System.err( 1835): java.lang.IllegalArgumentException
W/System.err( 1835): at android.os.Process.setProcessGroup(Native Method)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:17971)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18140)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18218)
W/System.err( 1835): at com.android.server.am.ActiveServices.serviceDoneExecutingLocked(ActiveServices.java:1934)
W/System.err( 1835): at com.android.server.am.ActiveServices.publishServiceLocked(ActiveServices.java:895)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.publishService(ActivityManagerService.java:15401)
W/System.err( 1835): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:979)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2211)
W/System.err( 1835): at android.os.Binder.execTransact(Binder.java:446)
W/SchedPolicy( 1835): add_tid_to_cgroup failed to write '4061' (Permission denied); fd=11
W/ActivityManager( 1835): Failed setting process group of 4061 to 0
W/System.err( 1835): java.lang.IllegalArgumentException
W/System.err( 1835): at android.os.Process.setProcessGroup(Native Method)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:17971)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18350)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.removeContentProvider(ActivityManagerService.java:9584)
W/System.err( 1835): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:872)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2211)
W/System.err( 1835): at android.os.Binder.execTransact(Binder.java:446)
W/ResourcesManager( 4652): Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources.
W/ResourcesManager( 4652): Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources.
E/SQLiteLog( 4652): (283) recovered 22 frames from WAL file /data/data/com.ahg.metronome/databases/androidx.work.workdb-wal
I/art ( 4652): Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.h$a>
I/art ( 4652): Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.h$a>
I/DynamiteModule( 4652): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:214106404
I/DynamiteModule( 4652): Selected remote version of com.google.android.gms.ads.dynamite, version >= 214106404
W/DynamiteModule( 4652): Local module descriptor class for com.google.android.gms.measurement.dynamite not found.
V/DynamiteModule( 4652): Dynamite loader version >= 2, using loadModule2NoCrashUtils
I/DynamiteModule( 4652): Considering local module com.google.android.gms.measurement.dynamite:0 and remote module com.google.android.gms.measurement.dynamite:67
I/DynamiteModule( 4652): Selected remote version of com.google.android.gms.measurement.dynamite, version >= 67
V/DynamiteModule( 4652): Dynamite loader version >= 2, using loadModule2NoCrashUtils
D/houdini ( 4652): [4652] Added shared library /data/app/com.ahg.metronome-1/lib/arm/libmain.so for ClassLoader by Native Bridge.
D/yeshen ( 2086): launcher onstop
D/Tinker.DefaultAppLike( 2086): onTrimMemory level:20
D/Launcher.Model( 2086): Reload apps on config change. curr_mcc:257 prevmcc:0
I/Launcher( 2086): setLoadOnResume
W/DebugConnManager( 2086): getNetworkInfo() on networkType 1
V/ActivityManager( 1835): Display changed displayId=0
I/InputReader( 1835): Reconfiguring input devices. changes=0x00000004
I/InputReader( 1835): Device reconfigured: id=1, name='Android_Input', size 2560x1440, orientation 3, mode 1, display id 0
I/InputReader( 1835): Device reconfigured: id=3, name='VirtualBox USB Tablet', size 2560x1440, orientation 0, mode 4, display id 0
W/DynamiteModule( 4652): Local module descriptor class for com.google.android.gms.measurement.dynamite not found.
I/FA-Ads ( 4652): App measurement initialized, version: 58000
I/FA-Ads ( 4652): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
W/SchedPolicy( 1835): add_tid_to_cgroup failed to write '2132' (Permission denied); fd=10
W/ActivityManager( 1835): Failed setting process group of 2132 to -1
W/System.err( 1835): java.lang.IllegalArgumentException
W/System.err( 1835): at android.os.Process.setProcessGroup(Native Method)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:17971)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18140)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18218)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.getContentProviderImpl(ActivityManagerService.java:9288)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.getContentProvider(ActivityManagerService.java:9546)
W/System.err( 1835): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:803)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2211)
W/System.err( 1835): at android.os.Binder.execTransact(Binder.java:446)
W/EGL_emulation( 1933): eglSurfaceAttrib not implemented 3093 12436
W/OpenGLRenderer( 1933): Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3efb600, error=EGL_SUCCESS
W/SchedPolicy( 1835): add_tid_to_cgroup failed to write '2132' (Permission denied); fd=11
W/ActivityManager( 1835): Failed setting process group of 2132 to 0
W/System.err( 1835): java.lang.IllegalArgumentException
W/System.err( 1835): at android.os.Process.setProcessGroup(Native Method)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:17971)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18350)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.removeContentProvider(ActivityManagerService.java:9584)
W/System.err( 1835): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:872)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2211)
W/System.err( 1835): at android.os.Binder.execTransact(Binder.java:446)
W/SchedPolicy( 1835): add_tid_to_cgroup failed to write '2232' (Permission denied); fd=10
W/ActivityManager( 1835): Failed setting process group of 2232 to -1
W/System.err( 1835): java.lang.IllegalArgumentException
W/System.err( 1835): at android.os.Process.setProcessGroup(Native Method)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:17971)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18140)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18218)
W/System.err( 1835): at com.android.server.am.ActiveServices.bindServiceLocked(ActiveServices.java:819)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.bindService(ActivityManagerService.java:15380)
W/System.err( 1835): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:958)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2211)
W/System.err( 1835): at android.os.Binder.execTransact(Binder.java:446)
I/IL2CPP ( 4652): JNI_OnLoad
I/FA-Ads ( 4652): Tag Manager is not found and thus will not be used
V/WindowManager( 1835): Adding window Window{cb8e607 u0 com.ahg.metronome/com.unity3d.player.UnityPlayerActivity} at 2 of 6 (before Window{3d7530b1 u0 Starting com.ahg.metronome})
W/SchedPolicy( 1835): add_tid_to_cgroup failed to write '4061' (Permission denied); fd=10
W/ActivityManager( 1835): Failed setting process group of 4061 to -1
W/System.err( 1835): java.lang.IllegalArgumentException
W/System.err( 1835): at android.os.Process.setProcessGroup(Native Method)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:17971)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18350)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.removeContentProvider(ActivityManagerService.java:9584)
W/System.err( 1835): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:872)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2211)
W/System.err( 1835): at android.os.Binder.execTransact(Binder.java:446)
V/WindowManager( 1835): Adding window Window{2480a55d u0 SurfaceView} at 2 of 7 (before Window{cb8e607 u0 com.ahg.metronome/com.unity3d.player.UnityPlayerActivity})
E/FastThread( 1541): did not receive expected priority boost
D/ ( 4652): HostConnection::get() New Host Connection established 0xb3f9ea90, tid 4652
V/WindowManager( 1835): Layouts looping: On entry to LockedInner, mPendingLayoutChanges = 0x1
V/WindowManager( 1835): Layouts looping: loop number 4, mPendingLayoutChanges = 0x0
V/WindowManager( 1835): Layouts looping: after finishPostLayoutPolicyLw, mPendingLayoutChanges = 0x0
V/WindowManager( 1835): Layouts looping: mLayoutNeeded, mPendingLayoutChanges = 0x1
V/WindowManager( 1835): Layouts looping: On entry to LockedInner, mPendingLayoutChanges = 0x1
V/WindowManager( 1835): Layouts looping: loop number 5, mPendingLayoutChanges = 0x0
V/WindowManager( 1835): Layouts looping: after finishPostLayoutPolicyLw, mPendingLayoutChanges = 0x0
V/WindowManager( 1835): Layouts looping: mLayoutNeeded, mPendingLayoutChanges = 0x1
E/WindowManager( 1835): Performed 6 layouts in a row. Skipping
W/ContextImpl( 1835): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1327 com.android.server.InputMethodManagerService.hideCurrentInputLocked:1992 com.android.server.InputMethodManagerService.windowGainedFocus:2082 com.android.internal.view.IInputMethodManager$Stub.onTransact:221 com.android.server.InputMethodManagerService.onTransact:873
W/IInputConnectionWrapper( 2086): showStatusIcon on inactive InputConnection
W/FA-Ads ( 4652): Analytics storage consent denied; will not get app instance id
I/ActivityManager( 1835): Displayed com.ahg.metronome/com.unity3d.player.UnityPlayerActivity: +426ms
I/Unity ( 4652): MemoryManager: Using 'Dynamic Heap' Allocator.
I/WindowManager( 1835): Screen frozen for +475ms due to Window{3d7530b1 u0 Starting com.ahg.metronome}
I/Unity ( 4652): SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 4, Memory = 3036mb
I/Unity ( 4652): SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf), 0 little (mask: 0x0)
I/Unity ( 4652): ApplicationInfo com.ahg.metronome version 1.0.0 build 43dcbe71-9654-4ae4-bd2d-170ef3fb46f7
I/Unity ( 4652): Built from '2020.3/staging' branch, Version '2020.3.32f1 (12f8b0834f07)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a', Stripping 'Enabled'
I/Unity ( 4652): Company Name: Android Helper Games
I/Unity ( 4652): Product Name: Metronome
D/libEGL ( 4652): loaded /system/lib/egl/libEGL_adreno.so
D/ ( 4652): HostConnection::get() New Host Connection established 0xadc29e40, tid 4690
D/libEGL ( 4652): loaded /system/lib/egl/libGLESv1_CM_adreno.so
D/libEGL ( 4652): loaded /system/lib/egl/libGLESv2_adreno.so
E/EGL_emulation( 4652): [eglGetConfigAttrib] Bad attribute idx 12513
E/EGL_emulation( 4652): tid 4690: eglGetConfigAttrib(743): error 0x3004 (EGL_BAD_ATTRIBUTE)
E/EGL_emulation( 4652): [eglGetConfigAttrib] Bad attribute idx 12514
E/EGL_emulation( 4652): tid 4690: eglGetConfigAttrib(743): error 0x3004 (EGL_BAD_ATTRIBUTE)
E/EGL_emulation( 4652): [eglGetConfigAttrib] Bad attribute idx 1
E/EGL_emulation( 4652): tid 4690: eglGetConfigAttrib(743): error 0x3004 (EGL_BAD_ATTRIBUTE)
D/Unity ( 4652): GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_EXT_texture_format_BGRA8888 GL_APPLE_texture_format_BGRA8888 GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_texture_npot GL_OES_rgb8_rgba8 GL_EXT_color_buffer_float ANDROID_gles_max_version_3_1 GL_OES_vertex_array_object GL_EXT_color_buffer_half_float
D/ ( 4652): HostConnection::get() New Host Connection established 0xb3f9e4a0, tid 4723
W/SchedPolicy( 1835): add_tid_to_cgroup failed to write '4724' (Permission denied); fd=10
E/AudioTrack( 4652): did not receive expected priority boost on time
I/art ( 1835): Explicit concurrent mark sweep GC freed 11256(610KB) AllocSpace objects, 4(91KB) LOS objects, 33% free, 15MB/23MB, paused 364us total 10.641ms
W/SchedPolicy( 1835): add_tid_to_cgroup failed to write '2232' (Permission denied); fd=11
W/ActivityManager( 1835): Failed setting process group of 2232 to 0
W/System.err( 1835): java.lang.IllegalArgumentException
W/System.err( 1835): at android.os.Process.setProcessGroup(Native Method)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:17971)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18140)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18218)
W/System.err( 1835): at com.android.server.am.ActiveServices.unbindServiceLocked(ActiveServices.java:931)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.unbindService(ActivityManagerService.java:15387)
W/System.err( 1835): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:968)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2211)
W/System.err( 1835): at android.os.Binder.execTransact(Binder.java:446)
D/BoundBrokerSvc( 2155): onUnbind: Intent { act=com.google.android.gms.udc.service.START dat=chimera-action:com.google.android.gms.udc.service.START cmp=com.google.android.gms/.chimera.PersistentApiService }
D/BoundBrokerSvc( 2155): onUnbind: Intent { act=com.google.android.gms.phenotype.service.START dat=chimera-action:com.google.android.gms.phenotype.service.START cmp=com.google.android.gms/.chimera.PersistentApiService }
I/CastDatabase( 2232): Saving the database
I/SQLiteCastStore( 2232): [CastNetworkInfo] saved: 0, skipped: 0, [CastDeviceInfo]: saved 0, skipped 0, [Paired Guest Mode DeviceInfo] saved: 0, skipped: 0. [ProbedNetworks]: saved 0, skipped: 0, [ProbedSocketAddress]: saved 0, skipped: 0, [Network-Device pairs]: saved: 0
D/BoundBrokerSvc( 2155): onUnbind: Intent { act=com.google.android.gms.scheduler.ACTION_PROXY_SCHEDULE dat=chimera-action:com.google.android.gms.scheduler.ACTION_PROXY_SCHEDULE cmp=com.google.android.gms/.chimera.PersistentApiService }
W/SchedPolicy( 1835): add_tid_to_cgroup failed to write '4061' (Permission denied); fd=11
W/ActivityManager( 1835): Failed setting process group of 4061 to 0
W/System.err( 1835): java.lang.IllegalArgumentException
W/System.err( 1835): at android.os.Process.setProcessGroup(Native Method)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:17971)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:18350)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.trimApplications(ActivityManagerService.java:18639)
W/System.err( 1835): at com.android.server.am.ActivityManagerService.finishReceiver(ActivityManagerService.java:16505)
W/System.err( 1835): at android.content.BroadcastReceiver$PendingResult.sendFinished(BroadcastReceiver.java:419)
W/System.err( 1835): at android.content.BroadcastReceiver$PendingResult.finish(BroadcastReceiver.java:395)
W/System.err( 1835): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:883)
W/System.err( 1835): at android.os.Handler.handleCallback(Handler.java:739)
W/System.err( 1835): at android.os.Handler.dispatchMessage(Handler.java:95)
W/System.err( 1835): at android.os.Looper.loop(Looper.java:135)
W/System.err( 1835): at com.android.server.SystemServer.run(SystemServer.java:270)
W/System.err( 1835): at com.android.server.SystemServer.main(SystemServer.java:171)
W/System.err( 1835): at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 1835): at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err( 1835): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
W/System.err( 1835): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
I use Unity 2020.3.32f1 and GMA 7.0.0 and works fine with Android 4.4 KitKat and above. Before I install GMA 7.0.0 I deleted ALL previous GMA, FireBae, Google Analytics and EDM files from the project (Assets / Editor, Plugin, GMA, EDM, ...).
My build settings differences:
Static batching OFF (Greatly increases the size of the apk.)
Target API: Android 11 (API Level 30)
I installed the Adroid SDK and Build-Tools with Android Studio and copied to: C:\Program Files\Unity\2020.3.32f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30 C:\Program Files\Unity\2020.3.32f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.3\
Install Location: Automatic
Write Permission: Internal
Managed Stripping Level: HIGH
Custom Manifest:
package="com.games.gamename" android:theme="@android:style/Theme.NoTitleBar" android:versionName="1.0" android:versionCode="100" android:installLocation="auto" supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" application android:icon="@drawable/app_icon" android:label="@string/app_name" android:usesCleartextTraffic="true" android:isGame="true" android:debuggable="false" activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:launchMode="singleTask" android:screenOrientation="landscape" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" intent-filter action android:name="android.intent.action.MAIN" category android:name="android.intent.category.LAUNCHER" category android:name="android.intent.category.LEANBACK_LAUNCHER" /intent-filter meta-data android:name="android.app.lib_name" android:value="unity" meta-data android:name="unityplayer.UnityActivity" android:value="true" meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" meta-data android:name="android.max_aspect" android:value="2.1"
-keep class bitter.jnibridge. { ; } -keep class com.unity3d.player. { ; } -keep interface com.unity3d.player.IUnityPlayerLifecycleEvents { ; } -keep class org.fmod. { ; } -keep class com.google.androidgamesdk.ChoreographerCallback { ; } -keep class com.google.androidgamesdk.SwappyDisplayManager { ; } -ignorewarnings -keep,includedescriptorclasses public class com.google.android.gms.analytics.Tracker { ; } -keep,includedescriptorclasses public class com.google.android.gms.analytics.GoogleAnalytics { ; } -keep,includedescriptorclasses public class com.google.android.gms.analytics.HitBuilders$ScreenViewBuilder { ; }
And that's all!
I use Unity 2020.3.32f1 and GMA 7.0.0 and works fine with Android 4.4 KitKat and above. Before I install GMA 7.0.0 I deleted ALL previous GMA, FireBae, Google Analytics and EDM files from the project (Assets / Editor, Plugin, GMA, EDM, ...).
My build settings differences:
- Static batching OFF (Greatly increases the size of the apk.)
- Target API: Android 11 (API Level 30)
I installed the Adroid SDK and Build-Tools with Android Studio and copied to: C:\Program Files\Unity\2020.3.32f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30 C:\Program Files\Unity\2020.3.32f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.3\
- Install Location: Automatic
- Write Permission: Internal
- Managed Stripping Level: HIGH
- Custom Manifest:
package="com.games.gamename" android:theme="@android:style/Theme.NoTitleBar" android:versionName="1.0" android:versionCode="100" android:installLocation="auto" supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" application android:icon="@drawable/app_icon" android:label="@string/app_name" android:usesCleartextTraffic="true" android:isGame="true" android:debuggable="false" activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:launchMode="singleTask" android:screenOrientation="landscape" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" intent-filter action android:name="android.intent.action.MAIN" category android:name="android.intent.category.LAUNCHER" category android:name="android.intent.category.LEANBACK_LAUNCHER" /intent-filter meta-data android:name="android.app.lib_name" android:value="unity" meta-data android:name="unityplayer.UnityActivity" android:value="true" meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" meta-data android:name="android.max_aspect" android:value="2.1"
- Custom ProGuard:
-keep class bitter.jnibridge. { ; } -keep class com.unity3d.player. { ; } -keep interface com.unity3d.player.IUnityPlayerLifecycleEvents { ; } -keep class org.fmod. { ; } -keep class com.google.androidgamesdk.ChoreographerCallback { ; } -keep class com.google.androidgamesdk.SwappyDisplayManager { ; } -ignorewarnings -keep,includedescriptorclasses public class com.google.android.gms.analytics.Tracker { ; } -keep,includedescriptorclasses public class com.google.android.gms.analytics.GoogleAnalytics { ; } -keep,includedescriptorclasses public class com.google.android.gms.analytics.HitBuilders$ScreenViewBuilder { ; }
- Minify:
- Use R8 ON
- Release ON
- Debug ON
And that's all!
You have your own settings. I tried it even on an empty project and it's not working on 3 devices with android versions 4.4 and 5.1. The android version 6 and above don't have this problem. So this is not normal.
"So this is not normal." Yes. I'd try to solve the problem in your palace because the new versions can also bring new bugs... This could also be Unity's fault with a certain settings, because Adroid 4.4 use OpenGL ES 2.0 only on many devices (for example Samsung Galaxy Note II). Unity default settings (with empty project) may not be good in all cases.
"So this is not normal." Yes. I'd try to solve the problem in your palace because the new versions can also bring new bugs... This could also be Unity's fault with a certain settings, because Adroid 4.4 use OpenGL ES 2.0 only on many devices (for example Samsung Galaxy Note II). Unity default settings (with empty project) may not be good in all cases.
Suggestions about GLES I think do not make sense, given that the problem is only with imported Admob + on Android 5.1 then everything would work, because it uses GLES 3. Most likely the problem in some native libraries that Admob uses and it does not even let you run the game. With such problems I didn't risk to update Admob and stayed on the previous one.
Should be used the stable version as long as it works and you will need to update to the next version if necessary. 7.0.0 (It seems too early version number, but it works fine for me.) Unity 2020.3.32f1 (This version number seems stable.)
I just updated from Unity 2019.2.10 to Unity 2020.3.32 and from GMA 4.2.1 to GMA 7.0.0. Unity 2021.3 is unusable for me, because a the new app size 25% larger and the minimum API Level is 22 (Android 5.1), but the render quality is fantastic. Maybe later...
@madTeddy I had exactly the same problem: endless black screen at start on Android 5.1 devices. I found a simple solution: In Project Settings/Player/Other Settings, Set Write Permission to Internal
@madTeddy I had exactly the same problem: endless black screen at start on Android 5.1 devices. I found a simple solution: In Project Settings/Player/Other Settings, Set Write Permission to Internal
Oh yes, it solves the problem! I hope @NVentimiglia will fix this in the next release, because it's not normal behaviour 🤔
Since there were no recent activities for this issue, we are therefore reluctantly going to close this bug for now.
If you are still experiencing the problem, please file a new issue with the same description, what happens and system / network tracing / Charles logs.
All system setups can be slightly different, so it's always better to open new issues and reference the related ones. Thanks for your contribution.
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
After updating the Admob version to 7.0.0, the application does not start on android versions 5.1 and 4.4. When starting the application, there is just an endless black screen. On android versions 7 and 11 everything runs and works fine. Also tested on a blank project and after adding admob 7.0.0 this problem happens.
If you uninstall Admob or install a previous version (6.1.2), everything works fine. Tried to change the build settings, changed il2cpp to mono, reduced stripping level, deleted il2cpp cache - no changes.
Android 5.1 Log
Android 4.4 Log:
Steps to reproduce:
My Build Settings: