AndroidStudio tutorial (second bullet) and androidstudio tutorial
AndroidStudio tutorial (2)
MigrationEclipseProjectAndroid Studio
The official document says:Android StudioCompatibleEclipseBut some operations are required:
EclipseBuild a project
Upgrade firstADTTo the latest version, it seems that after 22, select fromEclipseExport Project, right-click and selectExportAnd selectAndroidUnderGenerate Gradle Build Files,
After running, you will find that one morebuild.gradle, This isAndroid StudioThe file you recognize.
PS: if notGrade buildFile, you can also import the projectAndroid Studio, It will use the existingAnt buildFile for configuration.
However, in order to better use subsequent functions and make full use of building variables,
We strongly recommend that youADTGenerated in the plug-inGradleFile re-importAndroid Studio.
Import
InAndroid StudioSelectImport ProjectAnd selectbuild.gradleYou can.
Sometimes it is not displayed on the left of the running button after the import.ModuleYes, it may be before you importSDKIf the version is differentbuild.gradleConfigure the correspondingSDKThe version is enough.
android { compileSdkVersion 19 buildToolsVersion "21.1.1" ... }
Create a project
Create a project andEclipseThe process is almost the same. You can see it at first glance.
UseAndroidProject View
This is purely personal interests, but for standardAndroidStudioProjects, which are commonly used inAndroidThe project view is displayed.
The effect is as follows:
Use layout editor
The timely and multi-screen preview of the layout editor is indeed a highlight.
ClickPreviewButton to preview.
To preview the multi-screen effect, selectPreview All Screen Sizes.
Select Topic
To set a topic for the application, clickThemeIcon,
The selection dialog box is displayed.
Internationalization
For international adaptation, select the international icon,
Then, in the pop-up list, select the countries to be internationalized for adaptation.
Common functions
Some people may not be able to find it when they come in.DDMSNow.
The three icons in are,AVD Manager,SDK Manager,DDMS
- Email: charon.chui@gmail.com
- Good Luck!