SpaceMadness / lunar-unity-console

High-performance Unity iOS/Android logger built with native platform UI
https://www.assetstore.unity3d.com/en/#!/content/43800
Other
839 stars 114 forks source link

Console opens automatically on app start, and reopen just after click "close" #156

Closed novavision closed 4 years ago

novavision commented 4 years ago

I am on Unity 2019.3b8 and experiencing the issue on Android build - when app starts console is showing up. Trying to close it clicking on "close" button, console opens again just after get hidden. Android 10, Xiaomi K20Pro

weeeBox commented 4 years ago

Would you be able to debug the build from Android Studio? I haven't seen this before. Place to put a breakpoint: https://github.com/SpaceMadness/lunar-unity-console/blob/master/Native/Android/LunarConsole/lunarConsole/src/main/java/spacemadness/com/lunarconsole/console/ConsolePluginImpl.java#L152. We need to know what triggers the code.

novavision commented 4 years ago

Sorry, but I can't setup gradle build on my end, it's full of errors and can setup it properly

novavision commented 4 years ago

Btw, just checked on iOS - everything is fine there

weeeBox commented 4 years ago

No worries. Can you try to reproduce the issue on a "hello world" app with nothing but Lunar Console in it?

novavision commented 4 years ago

Will try, but I assume the reason is in VoxelBusters Native Plugin update. Somehow both assets worked fine together, but 2 days ago I had an error building for Android. Googling the solution I found the thread on their forum recommending to update these files for Unity 2019.3b. May be you can find some conflict in GradlePostProcessor.cs? I am really not good with Android gradle projects.

weeeBox commented 4 years ago

So basically, when you updated the VoxelBusters Native Plugin - things broke, right? From the GradlePostProcessor.cs file I can see that they force the app to use AndroidX. It's very tricky to provide a compatibility between Support library (Lunar Mobile Console and Unity in general) and AndroidX (VoxelBusters). Unity does not support it yet. I'll take a look but can't guarantee a quick and easy fix.

novavision commented 4 years ago

@weeeBox please close this issue, it wasn't related to the asset itself.