android studio configuration

1.setttings --> key map can choose eclise shortcut key
2.settings --> updates to remove system update
3. Modify auxiliary generation class name completion, settings --> keymap -->main menu -->code -->completion --> cyclic Expand word --> Right click on alt+slash on the right, delete, and add
4.auto import: settings --> editor --> General --> Auto import
5.show line number: settings -- > editor --> appearance
6. The last project is not opened by default General --> reopen last project on startup
7. Code folding is prohibited --> deselect "one-line", "closure", "Generic"
8. utf8: file encoding
9. Download the emulator https://www.genymotion.com
10. In the studio terminal, execute gradlew -v under the project (testProgress/) to check the gradle version. If it is executed for the first time, Will download gradle
11. Each moudle has a build. gradle


StickyScrollViewItems-master control, the top one does not move when swiping up

Summary: The general practice of creating a third-party library in the form of a module is:

(1) Create a module in the form of a library and delete all the files in the src/main directory in the module (including deleting java, res, AndroidManifest.xml)

(2) Copy the AndroidMainfest.xml, res, and src files (folders) of the third-party library to the src/main directory of the library directory

(3) Rename (Shift+F6) the src directory under the src/main directory to java

( 4) Delete the dependencies and release modules in the build.gradle file in the library module (be careful not to modify the wrong place). Problems encountered in



running :
1. Modify app/build.gradle to remove the app
    compile 'com that cannot be referenced in it. android.support:appcompat-v7:23.+'
    compile 'com.android.support:support-v4:23.+'
2. Error:Execution failed for task ':app:compileDebugAidl'.
> aidl is missing
app right click- -> open module setting --> Set the sdk version of the current project

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326102731&siteId=291194637