In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
How to understand the efficiency and errors of Android R file automatic generation in eclipse, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
I really don't understand why I can't find the reason for reporting errors in R files of Android programs written in eclipse. There are a lot of answers on the Internet, but none of them can solve some problems. They are BUG of ADT and eclipse. It's such a waste of time. Why do you want to edit XML files? it doesn't matter if you edit them with XML files, but the format is strictly abnormal, and there are problems of not reporting errors, and there are often no prompts when writing things. This IDE tool really needs to be improved, at least a little bit when XML is doing layout programming! @ google @ sun @ world does not have a better solution to such a tricky problem up to now. Later, we see that it is a tricky way to CLEAN several times, BUILD several times, and restart the software several times. It is suggested to kill the R file directly, as long as you can see the effect of the interface, don't worry about it, and then build a new project, pass all the files, save and update them, and don't CLEAN. Accidentally get rid of the R file, they are so fooling
SetContentView (R.layout.activity.main)
"
R.layout.activity.main "this is always wrong, and there is no good solution on the Internet at present."
(activity cannot be resolved or is not a field)
When you see this prompt,
Do not always go to Clean, I never use this, it will lead directly to your R file to be cleared, and if there are errors in your configuration file, then the R file will never be automatically generated before you can not find the error, which will be a serious waste of programmers' time.
Sometimes it may be the configuration of your computer, or the efficiency of the development tool itself to automatically generate addresses, so there is an error. If you write a program that is not wrong, you can ignore it and don't be blocked by a pebble.
However, there are a few small solutions to improve efficiency, such as your SDK path can be set as short as possible.
And when writing programs, especially when importing programs, it is best to COPY into the empty space, which will improve the compilation efficiency of the address generated by IDE, which is really not good. You can try and run on the real machine. In many cases, the real machine can run on the simulator but cannot be started, because these tools themselves are affected by the running environment and memory of the computer system.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.