Android compilation Optimizer-crash log save line number

Source: Internet
Author: User

the phenomenon that occurs :

1. Because the Android upload error stack (the stack is a data structure) has no line number , resulting in poor positioning.

2. The escalated error stack is Unknown Sourcewith no line number

Reason:

There is a line number in the report, there is no line number because the final output of the installation package there is no line number information .

Java file --javac---- class file--progurad---Confusing class file .

To have a line number in the error stack, you must ensure that the two links (Javac compilation, Progurad obfuscation) retain the downlink number information .

Javac compile reserved line number information configuration :

①javac compile file under: Sdk\tools\ant\build.xml

The Ant build.xml under Java Eclipse can also be placed under the project root directory:

Example: http://www.cnblogs.com/zdz8207/p/jva-eclipse-ant.html

Android compilation optimization-crash log save line number

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.