2015 work problems: 131-140 (There is a picture of the truth)

Source: Internet
Author: User
Tags git commands



starting with the "work problem" in this article, try adding some pictures.
There is a picture, only the truth ~ (*^__^*)
No picture, you say a jj~ o (︶^︶) o


Some of the most common problems with 131.Android environments.

First, the Android version of Project.Properties
Target=android-21


Second, the Gen directory cannot be generated, and one of the possible reasons is that the RES resource directory has an error.
A third, res error is a situation, drawable-xxhdpi directory error, not supported by the environment.
On the Internet to find 1 statements is that the development environment is a bit old, Adt,sdkmanager and the like.
But I'm not done. Manually delete the "drawable-xxhdpi" and manually "clean Project".


In the future, it's possible to use Android Studio and not eclipse anymore.


Resources:
Gen file cannot be generated
http://blog.csdn.net/cuihongxing1010/article/details/7893714


Http://www.eoeandroid.com/thread-311188-2-1.html
[Environment Construction] drawable-xxhdpi folder error


132.Android Environment, the code is not a problem, but still "reported red", do not know how to solve.
Today, download installs AndroidStudio2.0 preview version, need Android SDK directory for "Ancii" character.
In this way, I need to move "d:/system software/android" to "d:/android".
After the change, start Eclipse, prompt for the SDK not found, reset the SDK directory, Eclipse updates the engineering environment,
Then the project will not error.


It's a coincidence.




133.Windows Environment Output "variable".
Echo%java_home%


Linux under
Echo $JAVA _home


134.SVN can also be ignore.
Under Eclipse, select File, right-click, Team, add to Svn:ignore.
I always thought git was the only thing.


135. Project refactoring Delete Trash code.
Some of the code in the project was left over from the previous version.
Because of the great changes, many of the previous code and resources are not needed at all.
This time you want to remove them, only need to be based on the version of the code to manage the "update time" to know.
If 1 months, the code does not change, most likely the previous "Dirty Code".


136.Android Studio shortcut, which returns the location of the last browse,
This article organizes common shortcut keys
Http://www.android-studio.org/index.php/docs/experience/142-androidstudio-shortcut-keys
ctrl+alt+ Left/right back to the last viewed location


After use, the screen is just spinning.
Finally, the use of ctrl+alt+up recovered.


Must be the shortcut key repeated, the Internet to find an answer.


How to eliminate Ctrl+alt+up desktop rotation problem in Win7
Http://jingyan.baidu.com/article/8065f87fdaaa0a23312498fc.html


Desktop-Right-click menu-Screen resolution-Advanced settings-Intel graphics and Control Panel-graphics Properties-Advanced mode-options and technical support → remove "enable hotkey".


Fix It ~


137.Android Studio Git doesn't work and has to learn a few git commands.
Git init
git Add.
Git common ""
Git remote add origin "Https://git.oschina.net/fansunion/puzzle.git"


However, the problem of git was solved by the way of new project.
command-line command, there is no interest in continuing to study.


in 138.EasyUI, the Tab tab is required to open.
The AddTab function is defined, but the tab page is opened with an IFRAME, and some page call functions are used directly with AddTab.
Some need to use Parent.addtab.


139. Waiting for available sockets.
System restart, open the QQ browser, visit Baidu, stuck, the lower left corner of the "Waiting for available sockets" prompt.
Baidu searched the next, did not find very good information.
Most of the information that is slightly used is "the same domain name, the browser has a maximum of 2~6 socket sockets".


The biggest benefit is that, under Google Chrome, you can get a lot of valuable information by visiting the following address.
chrome://net-internals/#sockets


I learned something new.


140. Last time in the Android Elite biography puzzle a spit slot in the article.
About the Android variable naming convention, I spit out the "Mpopupwindow" naming method,
Book authors say "M" begins with the official Android code.
Went to see the activity of the source code, is really the beginning of M, some pure Java code, not the beginning of M.
There are other netizens who suggest going to source.android.com to look at the official documents.


This time is more tangled, first write down this question, to see the official recommendations, other developer's choice.
Forever tangled in variables, functions, class naming ~

2015 work problems: 131-140 (There is a picture of the truth)

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.