Tag: Data led up and down generate info war image Quick UI
1. * What went wrong:
Task ' generatedebugsources ' not found in root project ' branches '.
* Try:
Run gradle tasks to get a list of available tasks. Run with--STACKTRACE option to get the stack trace. Run with--info or--debug option to get more log output.
Clean project, restart Android Studio
2, Android studio unexpectedly restart after the original import all error, but reported the wrong or can be compiled to run.
File--Invalidate Cashes/restart, it can be solved.
3. Solve the problem of loading the third-party jar package in Android Studio, and the package is loaded repeatedly:
Compile (' in.srain.cube:cube-sdk:1.0.42.1 ') {
Exclude module: ' Support-v4 '
}
Remove the conflicting packages directly
3. Error: (1, 0) Your project path contains non-ascii characters
All the paths in Android Studio are in English. is to include the SDK JDK ADT Eclipse or the project storage location, all the paths are changed to English.
4. When you clean, the following error occurs
Error:execution failed for task ': App:clean ' .> unable to delete file:e:\caibao\dangkelanqiu\dunk\app\build\ Intermediates\exploded-aar\com.android.support\appcompat-v7\23.1.1\jars\classes.jar
Or a v7/appcompat/r$anim.class mistake.
Workaround: Open the Task Manager of the computer, find the following process, end it, clean it again OK
Or you can do it.
5. Your project path contains non-ascii characters. This is the most likely cause the build-to-fail on Windows.
In fact, it is very good to solve, is your project path or item name contains the Chinese, modify the relevant name is good!
6. Ignoring unknown package filter ' Build-tools-23.0.0-preview ' warning:the package filter removed all
Androidstudio Project Error ignoring unknown package filter ' Build-tools-23.0.0-preview ' warning:the package filter removed all PAC Kages. There is nothing to install. Consider trying to update the again without a package filter. WORKAROUND:
Open the project directory under the App/build.gradle, the buildtoolsversion "23.0.0 RC2" in the RC2 removed.
If the project contains other items to compile, if also reported the same error, then modify the Build.gradle file contained in the project to remove RC2 from buildtoolsversion "23.0.0 RC2".
7, Androidstudio shortcut key finishing
Shortcut keys
Ctrl N Find Class
No open contains not item:
Open contains not this item:
Ctrl Shift N Lookup (not just Java class)
Ctrl+alt+l Formatting Code
Ctrl+alt+o Optimizing imported classes and Packages
is to remove the useless packets
Alt+insert generate code (such as Get,set method, constructor, etc.)
Ctrl+e recently changed code
Ctrl+shift+space Auto-Complete code
Ctrl+p Method Parameter Hints
Ctrl+shift+alt+n find a method or variable in an entire project
CTRL+SHIFT+PGUP/DN move up or down a method or line of code
Ctrl+j Popup Code Shortcut template
CTRL+H Display class structure diagram
Alt+f1 find where the code is located
Can be opened quickly in Explorer, or you can quickly open the Progect view
ALT + Left/right Toggle Code View
Open multiple files to quickly switch
F2 or SHIFT+F2 highlighting error or warning quick location
When the code tag is entered, press TAB to generate the code.
Press ENTER directly for better
Select the text, press CTRL+SHIFT+F7, highlight all the text, and press ESC to highlight the disappear.
It's easier to press CTRL+F7.
Shift+click can close the file (left-click)
ctrl+[or] can jump to the beginning of the curly brace
Ctrl+shift+backspace can jump to the last edited place
CTRL+F12, the structure of the current file can be displayed
Unlike the CTRL H one is the inheritance structure of the display class one is a class containing methods and variables
Alt+f7 can query the current element's reference in the current file
Ctrl+alt+v can introduce variables. For example, to assign a variable to a SQL in parentheses
You can also quickly generate variables
Ctrl+alt+t can wrap code inside a piece, such as Try/catch
Android Studio fully organized