Using a real machine causes Androidstudio to print log

Source: Internet
Author: User

Tag:ati    no    project   too    menu     adb    filtering    cat    permissions    

For the real machine printing does not log this problem, my specific solution is this:

1. You want to make sure that the menu bar in your Android studio, tools→android→enable adb integration this ADB debug bridge is turned on, as well as the phone USB debugging turned on.

2, open after still can not hit log, we will go to see the filter log configuration, to see if we filter out, or not at all in our current project printing. So filter make sure to choose your own package, format is app: Package name.

3, so we can not print log, then you do not have to question their ability or development tools have problems, is a real-machine configuration problem.

4, I was facing the Huawei mobile phone, is precisely because of the manufacturer's custom problem, a lot of things for security, we users will not have permission, you although as a developer, but the issue of permissions is not in Google on the phone manufacturers, you do not believe? You can see operation not permitted in your log, without filtering, so don't question your ability anymore.

5, for the rights issue, we can also solve the problem, Huawei mobile phone in your dial-up interface, please dial *#* #2846579 #*#*, we entered the Project menu, then we can operate. Click Projectmenu, go to background settings, it is easy to see is the log settings. Go to log settings, hook up the AP log and close it, or you may have some concerns, then select it all and then turn it off and restart your phone.

6, if you really are the pursuit of perfection, you can also restart Android Studio, and then connect the phone, then your familiar log will appear in your Logcat log.

Using a real machine causes Androidstudio to print log

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.