Unable to start android app due to LogCollectManager.getUserType() error

后端 未结 5 943
闹比i
闹比i 2021-01-02 11:41

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

相关标签:
5条回答
  • 2021-01-02 11:52

    I know this is old but my problem showed when i added service with non-existing class in manifest.

    0 讨论(0)
  • 2021-01-02 11:53

    I was getting this error because I was passing an int to a TextViews setText method.

    Fix that worked..

    textView.setText(intValue + "");
    
    0 讨论(0)
  • 2021-01-02 11:54

    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.

    0 讨论(0)
  • 2021-01-02 12:08

    you just need to goto settings of your device and then goto "Apps" and Select you app after that and Give permission All permissions...it would be working after that

    0 讨论(0)
  • 2021-01-02 12:10

    I get the same Error.
    Just in case you don't get an answer here, be sure to check my question .

    PS: would have written this as a comment, but unfortunately i haven't earned enough reputation yet

    0 讨论(0)
提交回复
热议问题