Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Unity 2017 and Android 12

Discussion in 'Android' started by tiburon, Apr 23, 2022.

  1. tiburon

    tiburon

    Joined:
    Oct 10, 2013
    Posts:
    28
    Is there a way to make an app work from Unity 2017 with android api level 31 for android 12? I have managed to compile the apk without errors, and it works from android 11 onwards, but in Android 12 it stays at the Unity logo and does not load the first scene, without showing any type of error or notification in the log. Help!.
    I can't migrate to a later version of Unity for technical reasons.
     
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,977
    Is it a launch crash? Share the log.
     
  3. tiburon

    tiburon

    Joined:
    Oct 10, 2013
    Posts:
    28
    There is no crash, no errors, nothing. This is the entire log of a default empty scene:
    2022-04-23 11:04:56.316 587-667/system_process I/ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.JoseVarela.test_simple/com.unity3d.player.UnityPlayerActivity bnds=[893,608][1104,808]} from uid 10129
    2022-04-23 11:04:56.350 587-626/system_process I/ActivityManager: Start proc 7833:com.JoseVarela.test_simple/u0a168 for pre-top-activity {com.JoseVarela.test_simple/com.unity3d.player.UnityPlayerActivity}
    2022-04-23 11:04:56.835 7833-7833/com.JoseVarela.test_simple V/GraphicsEnvironment: ANGLE Developer option for 'com.JoseVarela.test_simple' set to: 'default'
    2022-04-23 11:04:56.836 7833-7833/com.JoseVarela.test_simple V/GraphicsEnvironment: ANGLE GameManagerService for com.JoseVarela.test_simple: false
    2022-04-23 11:04:56.836 7833-7833/com.JoseVarela.test_simple V/GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
    2022-04-23 11:04:56.838 7833-7833/com.JoseVarela.test_simple D/NetworkSecurityConfig: No Network Security Config specified, using platform default
    2022-04-23 11:04:56.839 7833-7833/com.JoseVarela.test_simple D/NetworkSecurityConfig: No Network Security Config specified, using platform default
    2022-04-23 11:04:57.342 7833-7833/com.JoseVarela.test_simple I/Gralloc4: mapper 4.x is not supported
    2022-04-23 11:04:57.343 7833-7833/com.JoseVarela.test_simple D/HostConnection: createUnique: call
    2022-04-23 11:04:57.344 7833-7833/com.JoseVarela.test_simple D/HostConnection: HostConnection::get() New Host Connection established 0x7eff90579d50, tid 7833
    2022-04-23 11:04:57.345 7833-7833/com.JoseVarela.test_simple D/goldfish-address-space: allocate: Ask for block of size 0x100
    2022-04-23 11:04:57.345 7833-7833/com.JoseVarela.test_simple D/goldfish-address-space: allocate: ioctl allocate returned offset 0x3f7ffe000 size 0x2000
    2022-04-23 11:04:57.390 7833-7833/com.JoseVarela.test_simple W/Gralloc4: allocator 4.x is not supported
    2022-04-23 11:04:57.424 7833-7833/com.JoseVarela.test_simple D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2
    2022-04-23 11:04:57.445 587-612/system_process W/system_server: Failed to determine oat file name for dex location /data/app/~~sLciA4WrwYVY5qjowvS8Kg==/com.JoseVarela.test_simple-IAHgU4hyJTW61eeXDmNJQg==/base.apk: Dalvik cache directory does not exist
    2022-04-23 11:04:57.449 587-612/system_process I/ActivityTaskManager: Displayed com.JoseVarela.test_simple/com.unity3d.player.UnityPlayerActivity: +1s127ms
    2022-04-23 11:04:57.805 587-2431/system_process W/InputManager-JNI: Input channel object 'd3348cf Splash Screen com.JoseVarela.test_simple (client)' was disposed without first being removed with the input manager!
    2022-04-23 11:04:57.821 7833-7854/com.JoseVarela.test_simple I/Unity: SystemInfo CPU = ARM64 VMH, Cores = 4, Memory = 1968mb
    2022-04-23 11:04:57.828 7833-7854/com.JoseVarela.test_simple I/Unity: SystemInfo ARM big.LITTLE configuration: 4 big (mask: 15), 0 little (mask: 0)
    2022-04-23 11:04:57.823 7833-7833/com.JoseVarela.test_simple W/UnityMain: type=1400 audit(0.0:36): avc: denied { getattr } for path="/dev/pmsg0" dev="tmpfs" ino=331 scontext=u:r:untrusted_app:s0:c168,c256,c512,c768 tcontext=u:eek:bject_r:pmsg_device:s0 tclass=chr_file permissive=0 app=com.JoseVarela.test_simple
    2022-04-23 11:04:57.832 7833-7854/com.JoseVarela.test_simple I/Unity: ApplicationInfo com.JoseVarela.test_simple version 1.0 build 323b89b7-6bba-4b80-ae13-e438659fcf21
    2022-04-23 11:04:57.833 7833-7854/com.JoseVarela.test_simple I/Unity: Built from '2017.4/staging' branch, Version '2017.4.40f1 (6e14067f8a9a)', Build type 'Release', Scripting Backend 'il2cpp'
    2022-04-23 11:04:58.723 7833-7854/com.JoseVarela.test_simple D/libEGL: loaded /vendor/lib64/egl/libEGL_emulation.so
    2022-04-23 11:04:58.724 7833-7854/com.JoseVarela.test_simple D/libEGL: loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so
    2022-04-23 11:04:58.726 7833-7854/com.JoseVarela.test_simple D/libEGL: loaded /vendor/lib64/egl/libGLESv2_emulation.so
    2022-04-23 11:04:58.738 7833-7854/com.JoseVarela.test_simple D/HostConnection: createUnique: call
    2022-04-23 11:04:58.738 7833-7854/com.JoseVarela.test_simple D/HostConnection: HostConnection::get() New Host Connection established 0x7eff9057a710, tid 7854
    2022-04-23 11:04:58.768 7833-7854/com.JoseVarela.test_simple D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2
    2022-04-23 11:04:58.776 7833-7854/com.JoseVarela.test_simple E/EGL_emulation: [getAttribValue] Bad attribute idx
    2022-04-23 11:04:58.776 7833-7854/com.JoseVarela.test_simple D/EGL_emulation: eglGetConfigAttrib: bad attrib 0x1
    2022-04-23 11:04:58.776 7833-7854/com.JoseVarela.test_simple E/EGL_emulation: tid 7854: eglGetConfigAttrib(1292): error 0x3004 (EGL_BAD_ATTRIBUTE)
    2022-04-23 11:04:58.820 7833-7854/com.JoseVarela.test_simple D/EGL_emulation: eglCreateContext: 0x7eff90579bd0: maj 2 min 0 rcv 2
    2022-04-23 11:04:58.849 7833-7854/com.JoseVarela.test_simple D/EGL_emulation: eglCreateContext: 0x7eff9057a110: maj 2 min 0 rcv 2
    2022-04-23 11:04:58.852 7833-7854/com.JoseVarela.test_simple D/EGL_emulation: eglMakeCurrent: 0x7eff9057a110: ver 2 0 (tinfo 0x7f019ae75080) (first time)
    2022-04-23 11:04:58.878 7833-7854/com.JoseVarela.test_simple D/Unity: GL_EXT_debug_marker GL_EXT_robustness GL_OES_EGL_sync 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_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_texture_npot GL_OES_rgb8_rgba8 GL_EXT_color_buffer_half_float GL_EXT_texture_format_BGRA8888 ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_
    2022-04-23 11:04:58.878 7833-7854/com.JoseVarela.test_simple D/Unity: queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2
    2022-04-23 11:04:58.958 7833-7864/com.JoseVarela.test_simple D/HostConnection: createUnique: call
    2022-04-23 11:04:58.959 7833-7864/com.JoseVarela.test_simple D/HostConnection: HostConnection::get() New Host Connection established 0x7eff90579c90, tid 7864
    2022-04-23 11:04:58.968 7833-7864/com.JoseVarela.test_simple D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2
    2022-04-23 11:04:58.968 7833-7864/com.JoseVarela.test_simple D/EGL_emulation: eglMakeCurrent: 0x7eff9057a110: ver 2 0 (tinfo 0x7f019ae75100) (first time)
    2022-04-23 11:04:59.366 7833-7884/com.JoseVarela.test_simple W/AudioTrack: Use of stream types is deprecated for operations other than volume control
    2022-04-23 11:04:59.366 7833-7884/com.JoseVarela.test_simple W/AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
    2022-04-23 11:04:59.942 7833-7854/com.JoseVarela.test_simple V/MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
    2022-04-23 11:04:59.943 7833-7854/com.JoseVarela.test_simple I/MediaRouter: Skip setBluetoothA2dpOn(): types=8388615, isPlaybackActive()=true, BT route=null
    2022-04-23 11:05:01.318 7833-7864/com.JoseVarela.test_simple D/EGL_emulation: app_time_stats: avg=2.40ms min=1.72ms max=8.84ms count=62
    2022-04-23 11:05:02.321 7833-7854/com.JoseVarela.test_simple D/CompatibilityChangeReporter: Compat change id reported: 147600208; UID 10168; state: ENABLED
     
  4. tiburon

    tiburon

    Joined:
    Oct 10, 2013
    Posts:
    28
    If I change to Level 30, everything works fine. If I test on android 11, everything works fine. But for the new Google requirements, must be at least level 31 on android 12.
     
  5. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,977
    Pass me an empty apk to have a look
     
  6. tiburon

    tiburon

    Joined:
    Oct 10, 2013
    Posts:
    28
  7. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,977
    I see a blurred image as a background. What I'm supposed to see?
     
  8. tiburon

    tiburon

    Joined:
    Oct 10, 2013
    Posts:
    28
    Is the Unity Splash logo with another image in the background, to have a visual reference (other way you see only black at the end). The first scene should be the default empty Unity scene with the blue Sky.
     
  9. unity_3828D5A3E573C13F2FA7

    unity_3828D5A3E573C13F2FA7

    Joined:
    Oct 5, 2021
    Posts:
    1
    i have same problem,did you solve this problem?
     
  10. hishy7

    hishy7

    Joined:
    Aug 25, 2022
    Posts:
    2
    I have this problem too,Any solution?
     
  11. Frolky

    Frolky

    Joined:
    Feb 17, 2017
    Posts:
    9
    Same problem here