In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces you what the Android source code operation skills are, the content is very detailed, interested friends can refer to, hope to be helpful to you.
The following article mainly explains the relevant knowledge and simple operation skills of the Android source code.
1. First of all, get the Android source code (refer to the previous article-- how to get the Android source code and compile .doc), and compile to get output file. Under the (Android source) / out directory, you can also get Android source code (take androidsrc.tgz as an example) and output file (out.tgz) compiled by others through other ways.
two。 Extract the two tgz files and place the extracted out directory in the myandroid directory, as shown in the following figure.
3. Copy myandroid "development" ide "eclipse". Classpath to myandroid ".classpath.
4. Copy myandroid "out" target "product" generic "* .img to {Android SDK}" tools "lib" images and overwrite the source file.
5. Run emulator.exe under the {Android SDK} "tools directory.
6. Run ddms.bat under the {Android SDK} "tools directory. You can see the following window, which lists the processes running in the current emulator:
7. Start the Android source code and follow this step File- > New- > Java Project (not Android Project!)-> Create project from existing source to select the myandroid directory.
8. After a long wait, the Android source code will be imported into project. Normally, there should be no error, but there will be a lot of warning. If there is a debug after error, it will not succeed. The reason may be that output file and out.tgz make an error in the process of decompression, re-copy out.tgz, or completely copy the out/ directory to the local directory.
9. Select the process you want to debug in DDMS. Take the phone process as an example. Ddms must be started before eclipse, otherwise a ddms will be started when eclipse starts, which will cause conflicts.
What about the Android source code operation skills are shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.