When I try to run my application on Huawei P9 I’m getting the error
Attempt to invoke virtual method \'int com.huawei.lcagent.client.LogCollectMana
The exception is generic, could have many causes and I found that the best way to go deeper and have a detailed view of it, it's enable more detailed log in Project Menu of the phone.
On P9 can be done writing the code: * # * # 2846579 # * # *
in phone number composition, it open Project Menu such as in picture:
Project Menu
then choose Background settings -> Log settings and check all the items; your logcat will be more detailed and easier to find the original error that give that exception. After using, uncheck in Log settings to avoid degrading your phone system performance.
In my case, it was a iap plugin inserted in unity project in my app, too old, never used but initialized: this crash my app and give the error; deleting it and all it's ok.