使用JPush Unity Plugin在小米真机运行报错JCore init failed


(肥肥进行曲) #1

下载了最新版本的JPush Unity Plugin,导入Unity以后修改AndroidManifest中的包名和JPUSH_APPKEY,然后执行JPushBinding.Init(gameObject.name),打包到小米真机运行后发现报错JCore init failed。

下面是程序运行后JCore报错的上下文:

07-01 13:48:30.974: I/AudioFlinger(190): setAppName(), name=[com.FeiFei.TestWebView], active=[1]
07-01 13:48:30.974: V/EffectDiracSound(190): DiracSound_command() start, cmdCode=23
07-01 13:48:30.974: V/EffectDiracSound(190): DiracSound_Command EFFECT_CMD_SET_APP_NAME: stream=3, name=+com.FeiFei.TestWebView
07-01 13:48:31.027: D/wpa_supplicant(1001): RX ctrl_iface - hexdump(len=11): 53 49 47 4e 41 4c 5f 50 4f 4c 4c
07-01 13:48:31.027: D/wpa_supplicant(1001): wlan0: Control interface command 'SIGNAL_POLL'
07-01 13:48:31.032: D/wpa_supplicant(1001): nl80211: survey data missing!
07-01 13:48:31.041: W/JIGUANG-JCore(21991): [JCoreInterface] JCore init failed
07-01 13:48:31.109: V/AudioPolicyManagerBase(190): stopOutput() output 3, stream 3, session 137
07-01 13:48:31.109: V/AudioPolicyManagerBase(190): changeRefCount() stream 3, count 1
07-01 13:48:31.109: V/AudioPolicyManagerBase(190): releaseOutput() 3

检查了所有日志也没有发现其他JCore和JPush相关的报错,完全不知道为什么初始化失败,请问该怎么查?


#2

日志过少,无法分析,请开启 debug,获取完整的日志,在某些手机上注意是否需要额外开启打印完整日志的权限。


(肥肥进行曲) #3

我接入的JPush,改了一下初始化代码:

JPushBinding.SetDebug(true);
JPushBinding.Init(gameObject.name);

这次看到了如下报错

07-02 12:57:34.141: D/JIGUANG-JPush(3986): [JPushInterface] action:init - sdkVersion:3.1.1, buildId:396
07-02 12:57:34.149: D/JIGUANG-JCore(3986): [JCoreGlobal] NO meta data defined in manifest.
07-02 12:57:34.149: W/JIGUANG-JCore(3986): [JCoreInterface] JCore init failed

我的AndroidManifest.xml文件就是使用极光插件里提供的AndroidManifest.xml文件,然后把文件里"应用的包名"全替换成我应用的Bundle Identifier"com.FeiFei.TestWebView","应用的 AppKey"替换成激光开发者服务应用设置里的AppKey,请问还有什么地方可能有错?


#4

仅根据你当前的信息无法分析到原因。

需要你取到更完整的日志信息,集成失败是有具体的日志指出为什么失败的。

你所说的Bundle Identifier 是你 Android 应用的包名吧?


(肥肥进行曲) #5

是的,Bundle Identifier 是 Android 应用的包名,下面是从点击应用到提示初始化失败的所有日志:

07-02 13:40:32.579: D/ScreenElementRoot(1117): pause
07-02 13:40:32.579: D/ScreenElementRoot(1117): pause
07-02 13:40:32.580: D/ScreenElementRoot(1117): pause
07-02 13:40:32.580: D/ScreenElementRoot(1117): pause
07-02 13:40:32.581: D/ScreenElementRoot(1117): pause
07-02 13:40:32.581: D/ScreenElementRoot(1117): pause
07-02 13:40:32.581: D/ScreenElementRoot(1117): pause
07-02 13:40:32.581: D/ScreenElementRoot(1117): pause
07-02 13:40:32.581: D/ScreenElementRoot(1117): pause
07-02 13:40:32.582: D/ScreenElementRoot(1117): pause
07-02 13:40:32.583: D/ScreenElementRoot(1117): pause
07-02 13:40:32.583: D/ScreenElementRoot(1117): pause
07-02 13:40:32.584: I/NotifierManager(1117): onUnregister: miui.maml.NotifierManager$MultiBroadcastNotifier@43f4ab48
07-02 13:40:32.584: I/RenderThread(1117): RenderThread paused, waiting for signal
07-02 13:40:32.681: I/RenderThread(1117): RenderThread resumed
07-02 13:40:32.681: D/ScreenElementRoot(1117): resume
07-02 13:40:32.682: I/NotifierManager(1117): onRegister: miui.maml.NotifierManager$MultiBroadcastNotifier@43f4ab48
07-02 13:40:32.683: D/ScreenElementRoot(1117): resume
07-02 13:40:32.683: D/ScreenElementRoot(1117): resume
07-02 13:40:32.686: D/ScreenElementRoot(1117): resume
07-02 13:40:32.687: D/ScreenElementRoot(1117): resume
07-02 13:40:32.689: D/ScreenElementRoot(1117): resume
07-02 13:40:32.691: D/ScreenElementRoot(1117): resume
07-02 13:40:32.693: D/ScreenElementRoot(1117): resume
07-02 13:40:32.695: D/ScreenElementRoot(1117): resume
07-02 13:40:32.705: D/ScreenElementRoot(1117): resume
07-02 13:40:32.705: I/Timeline(1117): Timeline: Activity_launch_request time:596029
07-02 13:40:32.709: I/ActivityManager(818): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.FeiFei.TestWebView/com.unity3d.player.UnityPlayerActivity bnds=[76,983][258,1165] (has extras)} from pid 1117
07-02 13:40:32.713: I/WtProcessController(1235): mCurTask:4
07-02 13:40:32.727: D/ScreenElementRoot(1117): resume
07-02 13:40:32.728: D/ScreenElementRoot(1117): resume
07-02 13:40:32.734: D/ScreenElementRoot(1117): pause
07-02 13:40:32.734: D/ScreenElementRoot(1117): pause
07-02 13:40:32.734: D/ScreenElementRoot(1117): pause
07-02 13:40:32.735: D/ScreenElementRoot(1117): pause
07-02 13:40:32.735: D/ScreenElementRoot(1117): pause
07-02 13:40:32.736: D/ScreenElementRoot(1117): pause
07-02 13:40:32.736: D/ScreenElementRoot(1117): pause
07-02 13:40:32.736: D/ScreenElementRoot(1117): pause
07-02 13:40:32.736: D/ScreenElementRoot(1117): pause
07-02 13:40:32.736: D/ScreenElementRoot(1117): pause
07-02 13:40:32.736: D/ScreenElementRoot(1117): pause
07-02 13:40:32.737: D/ScreenElementRoot(1117): pause
07-02 13:40:32.753: I/ActivityManager(818): Start proc com.FeiFei.TestWebView for activity com.FeiFei.TestWebView/com.unity3d.player.UnityPlayerActivity: pid=5473 uid=10012 gids={50012, 3003, 1028, 1015}
07-02 13:40:32.758: I/NotifierManager(1117): onUnregister: miui.maml.NotifierManager$MultiBroadcastNotifier@43f4ab48
07-02 13:40:32.758: I/RenderThread(1117): RenderThread paused, waiting for signal
07-02 13:40:32.806: I/WtProcessController(1235): MOVE TO FOREGROUND: com.FeiFei.TestWebView 10012
07-02 13:40:32.807: I/StatusController(1235): Last foreground:com.miui.home uid:10015 Current foreground:com.FeiFei.TestWebView uid:10012
07-02 13:40:32.808: I/WtProcessController(1235): FOREGROUND INFO: name=com.FeiFei.TestWebView uid=10012 pid=5473 TaskId:4
07-02 13:40:32.809: I/octvm_power(2268): power mode [normal] start 1530510032
07-02 13:40:32.809: E/octvm(2268): open /sys/class/power_supply/battery/status error, No such file or directory
07-02 13:40:32.809: I/octvm_drv(2268): common drv: get_current_battery_uAh will return 0
07-02 13:40:32.809: I/octvm_power(2268): Action: set_lcd_mode(default) for [foreground_change]
07-02 13:40:32.809: I/octvm_drv(2268): common drv: platform_set_lcd_mode -> platform not support
07-02 13:40:32.809: I/octvm_power(2268): Action: set_thermal_config(restore) for [foreground_change]
07-02 13:40:32.809: I/octvm_drv(2268): common drv: platform_set_thermal_mode -> platform not support
07-02 13:40:32.809: E/octvm(2268): open /sys/class/power_supply/battery/status error, No such file or directory
07-02 13:40:32.809: I/octvm_drv(2268): common drv: get_current_battery_uAh will return 0
07-02 13:40:32.809: I/octvm_power(2268): onPowerModeChanged[normal] called
07-02 13:40:32.810: V/LocationPolicy(818): writePolicyLocked()
07-02 13:40:32.811: D/PowerKeeper.Network(1409): setUidState, uid = 10012 allow = true
07-02 13:40:32.813: I/Timeline(818): Timeline: App_transition_ready time:596137
07-02 13:40:32.817: W/NvAppProfileService(818): App Profiles: Enabled
07-02 13:40:32.822: I/PowerServiceCient(818): Successfully bound to service
07-02 13:40:32.826: D/DnsProxyBlocker(188): remove uid(10012)
07-02 13:40:32.896: D/dalvikvm(5473): Trying to load lib /data/app-lib/com.FeiFei.TestWebView-1/libmain.so 0x427e0cb8
07-02 13:40:32.898: D/dalvikvm(5473): Added shared lib /data/app-lib/com.FeiFei.TestWebView-1/libmain.so 0x427e0cb8
07-02 13:40:32.901: D/dalvikvm(5473): GetMethodID: not returning static method Landroid/os/Process;.getTotalMemory ()J
07-02 13:40:32.901: D/dalvikvm(5473): GetMethodID: not returning static method Landroid/os/Process;.getFreeMemory ()J
07-02 13:40:32.921: D/miuisdk(5473): current sdk level is 12
07-02 13:40:33.036: I/ActivityManager(818): Displayed com.FeiFei.TestWebView/com.unity3d.player.UnityPlayerActivity: +297ms
07-02 13:40:33.113: D/wpa_supplicant(1019): RX ctrl_iface - hexdump(len=11): 53 49 47 4e 41 4c 5f 50 4f 4c 4c
07-02 13:40:33.113: D/wpa_supplicant(1019): wlan0: Control interface command 'SIGNAL_POLL'
07-02 13:40:33.118: I/Timeline(818): Timeline: Activity_windows_visible id: ActivityRecord{432144a0 u0 com.FeiFei.TestWebView/com.unity3d.player.UnityPlayerActivity t4} time:596442
07-02 13:40:33.120: D/wpa_supplicant(1019): nl80211: survey data missing!
07-02 13:40:33.136: D/PhoneStatusBar(1033): disable: 0x00000000 -> 0x00000100 (diff: 0x00000100)
07-02 13:40:33.140: I/octvm_power(2268): handle event trigger full_screen_enter
07-02 13:40:33.141: D/PhoneStatusBar(1033): disable: < expand icons alerts ticker system_info back home recent clock full HIDE* keyguard none float >
07-02 13:40:33.141: D/PhoneStatusBar(1033): showStatusBar isshow=false;delay=false
07-02 13:40:33.182: D/libEGL(5473): loaded /system/lib/egl/libEGL_tegra.so
07-02 13:40:33.182: I/(5473): Attempting to load EGL implementation /system/lib/egl/libEGL_tegra_impl
07-02 13:40:33.184: I/(5473): Loaded EGL implementation /system/lib/egl/libEGL_tegra_impl
07-02 13:40:33.185: D/libEGL(5473): loaded /system/lib/egl/libGLESv1_CM_tegra.so
07-02 13:40:33.188: D/libEGL(5473): loaded /system/lib/egl/libGLESv2_tegra.so
07-02 13:40:33.227: I/(5473): Loading GLESv2 implementation /system/lib/egl/libGLESv2_tegra_impl
07-02 13:40:33.229: D/Unity(5473): GL_OES_rgb8_rgba8 GL_OES_EGL_sync GL_OES_surfaceless_context GL_OES_fbo_render_mipmap GL_NV_depth_nonlinear GL_NV_draw_path GL_NV_draw_texture GL_NV_texture_npot_2D_mipmap GL_OES_EGL_image GL_OES_EGL_image_external GL_NV_EGL_image_external_YUV GL_OES_vertex_half_float GL_OES_mapbuffer GL_NV_draw_buffers GL_NV_multiview_draw_buffers GL_EXT_color_buffer_half_float GL_EXT_packed_float GL_NV_packed_float GL_EXT_texture_rg GL_OES_texture_half_float GL_NV_texture_array GL_OES_compressed_ETC1_RGB8_texture GL_EXT_texture_compression_latc GL_NV_texture_compression_latc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_NV_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_NV_get_tex_image GL_NV_read_buffer GL_NV_shader_framebuffer_fetch GL_NV_copy_image GL_NV_fbo_color_attachments GL_EXT_bgra GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_EXT_unpack_subimage GL_NV_pack_subimage GL_NV_texture_compression_s3tc_update GL_NV_read_depth GL_NV_read_stencil GL_NV_uniform_buffer_object G
07-02 13:40:33.229: D/Unity(5473): L_NV_map_buffer_range GL_EXT_robustness GL_OES_standard_derivatives GL_NV_EGL_stream_consumer_external GL_EXT_separate_shader_objects GL_NV_copy_buffer GL_NV_3dvision_settings GL_EXT_debug_marker GL_EXT_debug_label GL_KHR_debug GL_EXT_texture_storage GL_NV_pixel_buffer_object GL_NV_framebuffer_blit GL_NV_non_square_matrices GL_NV_explicit_attrib_location GL_OES_vertex_array_object GL_NV_smooth_points_lines GL_OES_texture_half_float_linear GL_NV_texture_border_clamp GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_NV_shadow_samplers_cube GL_NV_shadow_samplers_array GL_EXT_shadow_samplers GL_OES_depth24 GL_EXT_sRGB GL_EXT_texture_sRGB_decode GL_NV_framebuffer_sRGB GL_NV_generate_mipmap_sRGB GL_NV_sRGB_formats GL_EXT_occlusion_query_boolean GL_NV_occlusion_query_samples GL_NV_timer_query GL_NV_framebuffer_multisample GL_EXT_frag_depth GL_NV_instanced_arrays GL_NV_draw_instanced GL_NV_secure_context GL_NV_packed_float_linear 
07-02 13:40:33.234: I/Timeline(818): Timeline: App_transition_stopped time:596557
07-02 13:40:33.279: W/ActivityManager(818): Unable to start service Intent { act=com.google.android.gms.ads.identifier.service.START pkg=com.google.android.gms } U=0: not found
07-02 13:40:33.280: W/ActivityManager(818): Unbind failed: could not find connection for android.os.BinderProxy@437705a0
07-02 13:40:33.288: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 628
07-02 13:40:33.288: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.288: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.289: W/libc(5473): pthread_create sched_setscheduler call failed: Operation not permitted
07-02 13:40:33.290: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 193
07-02 13:40:33.290: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.290: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.290: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 628
07-02 13:40:33.290: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.290: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.290: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 627
07-02 13:40:33.291: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.291: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.291: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 629
07-02 13:40:33.291: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.291: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.291: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 193
07-02 13:40:33.291: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 24000, format 1, channelMask 3, flags 0
07-02 13:40:33.292: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.294: V/AudioPolicyManagerBase(193): startOutput() output 2, stream 3, session 28
07-02 13:40:33.294: V/AudioPolicyManagerBase(193): changeRefCount() stream 3, count 1
07-02 13:40:33.294: V/AudioPolicyManagerBase(193): getNewDevice() selected device 2
07-02 13:40:33.294: V/AudioPolicyManagerBase(193): setOutputDevice() output 2 device 0002 delayMs 0
07-02 13:40:33.294: V/AudioPolicyManagerBase(193): setOutputDevice() prevDevice 0002
07-02 13:40:33.294: V/AudioPolicyManagerBase(193): setOutputDevice() setting same device 0002 or null device for output 2
07-02 13:40:33.295: V/nvaudio_hw(193): Set fm volume by mixer: 0.666667
07-02 13:40:33.295: V/nvaudio_hw(193): nvaudio_dev_set_parameters : nv_param_media_routing=2
07-02 13:40:33.295: V/nvaudio_hw(193): Media is routed to :2
07-02 13:40:33.295: I/AudioFlinger(193): setAppName(), name=[com.FeiFei.TestWebView], active=[1]
07-02 13:40:33.295: V/EffectDiracSound(193): DiracSound_command() start, cmdCode=23
07-02 13:40:33.295: V/EffectDiracSound(193): DiracSound_Command EFFECT_CMD_SET_APP_NAME: stream=3, name=+com.FeiFei.TestWebView
07-02 13:40:33.295: I/EffectDiracSound(193): DiracSound_updateStreamVolume(), stream=3, volume=0.340801
07-02 13:40:33.303: V/nvaudio_hw(193): open_out_alsa_dev
07-02 13:40:33.303: V/nvaudio_hw(193): update_dev_rate : card 1 device 0
07-02 13:40:33.303: D/nvaudio_hw(193): audio_best_rate : rate 44100 pair 0 max 0
07-02 13:40:33.304: V/nvaudio_hw(193): Opened Alsa OUT device music with pcm_config
07-02 13:40:33.304: V/nvaudio_hw(193):  channels 2
07-02 13:40:33.304: V/nvaudio_hw(193):  rate 44100
07-02 13:40:33.304: V/nvaudio_hw(193):  format 0
07-02 13:40:33.304: V/nvaudio_hw(193):  period_size 1024
07-02 13:40:33.304: V/nvaudio_hw(193):  period_count 4
07-02 13:40:33.304: V/nvaudio_hw(193):  start_threshold 4095
07-02 13:40:33.304: V/nvaudio_hw(193):  stop_threshold 4096 
07-02 13:40:33.304: V/nvaudio_hw(193): silence_threshold 0
07-02 13:40:33.304: V/nvaudio_hw(193):  avail_min 1
07-02 13:40:33.304: V/nvaudio_hw(193): set_out_resampler : quality 9
07-02 13:40:33.304: V/nvaudio_hw(193): No resampler required
07-02 13:40:33.678: W/SensorService(818): sensor 00000002 already enabled in connection 0x75f3d210 (ignoring)
07-02 13:40:33.702: I/AudioFlinger(193): setAppName(), name=[com.FeiFei.TestWebView], active=[0]
07-02 13:40:33.703: V/EffectDiracSound(193): DiracSound_command() start, cmdCode=23
07-02 13:40:33.703: V/EffectDiracSound(193): DiracSound_Command EFFECT_CMD_SET_APP_NAME: stream=3, name=-com.FeiFei.TestWebView
07-02 13:40:33.705: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 627
07-02 13:40:33.705: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.705: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.706: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 628
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.706: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 629
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.706: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 193
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.706: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 627
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 0, format 0, channelMask 3, flags 0
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.706: V/legacy_audio_policy_hal(193): audio_io_handle_t android_audio_legacy::ap_get_output(audio_policy*, audio_stream_type_t, uint32_t, audio_format_t, audio_channel_mask_t, audio_output_flags_t, const audio_offload_info_t*): tid 628
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() device 2, stream 3, samplingRate 24000, format 1, channelMask 3, flags 0
07-02 13:40:33.706: V/AudioPolicyManagerBase(193): getOutput() returns output 2
07-02 13:40:33.708: V/AudioPolicyManagerBase(193): startOutput() output 2, stream 3, session 29
07-02 13:40:33.708: V/AudioPolicyManagerBase(193): changeRefCount() stream 3, count 2
07-02 13:40:33.708: I/AudioFlinger(193): setAppName(), name=[com.FeiFei.TestWebView], active=[1]
07-02 13:40:33.708: V/EffectDiracSound(193): DiracSound_command() start, cmdCode=23
07-02 13:40:33.708: V/EffectDiracSound(193): DiracSound_Command EFFECT_CMD_SET_APP_NAME: stream=3, name=+com.FeiFei.TestWebView
07-02 13:40:33.769: D/JIGUANG-JPush(5473): [JPushInterface] action:init - sdkVersion:3.1.1, buildId:396
07-02 13:40:33.775: D/JIGUANG-JCore(5473): [JCoreGlobal] NO meta data defined in manifest.
07-02 13:40:33.775: W/JIGUANG-JCore(5473): [JCoreInterface] JCore init failed
07-02 13:40:33.842: V/AudioPolicyManagerBase(193): stopOutput() output 2, stream 3, session 28
07-02 13:40:33.842: V/AudioPolicyManagerBase(193): changeRefCount() stream 3, count 1
07-02 13:40:33.842: V/AudioPolicyManagerBase(193): releaseOutput() 2

和极光相关的只有三行


#6

这应该涉及到 小米手机打印日志的权限问题,你换个手机或者使用模拟器测试下看完整的日志

网上搜索到的相关问题:
https://blog.csdn.net/luoxiping1/article/details/51404988



(肥肥进行曲) #7

新建工程测试了一下正常,应该是我的工程用了多个安卓插件,Unity自动合并AndroidManifest.xml导致的问题。。。