In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the method of using Android Studio breakpoint debugging". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the method of debugging using Android Studio breakpoint".
1. First of all, you need to have the system source code and the linux environment.
two。 Execute after the above environment is configured
Source build/envsetup.sh
Initialize some functions and then execute
Make idegen-J32
After executing this, an idegen.jar is generated and then executed
Sh. / development/tools/idegen/idegen.sh
After executing this, some files android.ipr and android.iml needed by AS will be generated.
Android.ipr: usually save the project compiler configuration, entry, related LIBRARIES configuration, etc.
Android.iml: mainly describes the path of modules, dependency, etc.
3. At this point, double-click android.ipr to open the project with AS, but if you really want to open it directly, AS will load very slowly. After all, the Android source code is very large, so you need to deal with android.iml, just add the directory we need. Here is a brief introduction to the android.iml tag, and then we will upload a template.
About labels:
Add the required files to this, and delete other files, such as package and framework
About labels:
As the name implies, exclude means not included, and it is not needed to add to it, such as vendor, external
About labels:
Just keep these two.
Android.iml
In this way, the AS will only index the sourceFolder you added, and if you don't add anything else, it will be much faster.
4. The file is under the AS installation directory and under the bin folder
64-bit modified studio64.exe.vmoptions, 32-bit modified studio.exe.vmoptions
-Xms1024m modifies this to indicate the amount of memory allocated to studio
-Xmx1280m
5. Open AS and select open exist..., to select the android.ipr that you just generated
It will be much faster at this time, because we have removed many indexes and, if necessary, just add them back.
Waiting for a long indexing...
6. Add an Android app and select the process to debug
8. The final result is as follows. For example, I debugged the launcher3 of the system.
Thank you for your reading, the above is the content of "using Android Studio breakpoint debugging method". After the study of this article, I believe you have a deeper understanding of the problem of using Android Studio breakpoint debugging method, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.