Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the frequently asked questions about MyEclips

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, the editor will bring you what are the common questions about MyEclips. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

1.Eclipse does not play Log.

If you make sure that the code is all right, but Log just won't type it. First of all, let's judge whether the filter of Logcat is set too high, above the level of Log.

Second, open DDMS and click at will.

After 2.Eclipse will project clean, there is no automatic generation of R files.

If the R file is not automatically generated, it is generally possible that there is an error in a resource file. If you do not fix this error, you will clean, and the R file cannot be generated.

Therefore, if there is a problem with the resource file, be sure not to clean the project, otherwise you will find it difficult to find out what went wrong.

When is clean usually used:

1) when an inexplicable error occurs in the program

2) import a class library or something.

When 3.Eclipse creates a new java project, the project has an exclamation point, and the new class will report an error.

Error screenshot:

Solution:

The JDK path is inconsistent. Just reset it.

4. After updating ADT and SDK, the simulator running the Intel architecture will have the following problems:

Failed to sync vcpu reg emulator: Failed to sync HAX vcpu context

The cause of the problem:

The Intel acceleration plug-in for the updated ADT corresponding to SDK is not updated.

Solution:

5.Eclipse has been build wrokspace, especially when associated with the source code, and then the project in the workspace can not be opened.

Online methods are not good, in fact, as long as in the Import project, choose the java project, not the Android project, and add

Into the work control.

6.ADT is updated to 23, and often the icons of SDK Manager and DDMS do not appear.

Window-CustomPersective

7. Some problems after upgrading SDK and ADT

1. Resolve the problem of appcompat_v7 and error reporting when ADT creates a project

Http://my.oschina.net/ximidao/blog/486741

When you create a project, don't create Activity automatically.

two。 "androidmanifest.xml: file ends early" appears when importing the project. The project was not fully imported.

Solution:

"do not put the project folder downloaded on the Internet under the same folder as your workspace, then pass it in eclipse.

File > import > android/Existin Android Code Into Workspace > next, open the project folder downloaded from the Internet, and select

Copy projects into workspace-- > finish so that the red exclamation mark does not appear on the project name. "

8. There was a problem importing another project.

Li Xuebin had the following problems when he imported the company's project into Eclipse:

There are various versions to solve this problem on the Internet. I did it, but it still didn't work, and then I copied the plat-forms under my SDK to

Under his sdk, and then Eclipse gave a very important hint: the current version of the Android project is, while the version of Eclipse

Yes, it is. Then I understood at once that this was a problem caused by the version of the development tool:

Li's development tool for this project is the latest version of Eclipse, but Li's Eclipse is the old version, which leads to this.

The emergence of the problem. I actually opened his project with my latest version of Eclipse, and there was no problem. Proved my judgment again.

It's right.

9.adb.exegery StartMurray server' failed-- run manually if necessary

Because Baidu Mobile Assistant is installed, it can compete with adb.exe in SDK.

10. Import project questions:

The attribute No resource identifier found for attribute 'parentActivityName' in package' android'parentActivityName appears after API16

The reason is that the compiled SDK version is too low, the targetSDK specified in Manifest is invalid and needs to be manually modified in the toolbar.

11. Press Ctrl to jump to the R file instead of the resource file?

In fact, all pop-up options can be disabled.

Http://tieba.baidu.com/p/2488806035

12.Eclipse imports other people's projects

Workspace modifies the encoding.

13.Eclipse opens the original project and prompts you to confuse the package:

Warning: org.apache.commons.httpclient.methods.OptionsMethod: can't find referenced class org.apache.commons.logging.LogFactory

Keep apache's bag in proguard, but it still doesn't work. Later, with reference to https://blog.csdn.net/u011494050/article/details/41734713, add "- dontwarn" to the confusion file to solve the problem.

These are the common MyEclips questions shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report