- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
1. Getting started with Android Studio Introduction
Getting started with Android Studio, Android is associate degree software system for mobile devices developed by Google, that is made upon UNIX system kernel. mechanical man competes with Apple's iOS (for iPhone/iPad), RIM's Blackberry, Microsoft's Windows Phone, Symbian OS, and lots of different proprietary mobile OSes.
The latest mechanical man seven (Nougat) and mechanical man eight (Oreo) supports Phone/Tablet, TV, Wear (watch and glass), Automobile and web of things.
Android relies on UNIX system with a group of native core C/C++ libraries. mechanical man applications area unit written in Java. However, they run on Android's own Java Virtual Machine, known as Dalvik Virtual Machine (DVM) (instead of JDK's JVM) that is optimized to work on the little and mobile devices.
In May 2017, Google announced support for Android app development in the Kotlin programming language, supported in Android Studio 3.0. Kotlin will not be discussed in this article.
The mother site for Android is https://www.android.com. For programmers and developers, visit https://developer.android.com to download the SDK, Android Training, API Guides and API documentation.
2. Putting in "Android Studio IDE" and "Android SDK"
Installing robot software system is maybe the foremost difficult a part of this project - for the unfortunate ones. It takes times - from half-hour to n hours to forever - betting on your luck (in truth, your IT knowledge) and your laptop. you most likely would like a reasonably tight laptop (with 8GB RAM) and 10GB of free disc space to run the robot emulator!!! Running on actual robot devices (phone, tablet) needs abundant lesser resources.
Getting started with Android Studio
Step 0: Pre-Installation Check List
Before putting in robot SDK, you would like to put in Java Development Kit (JDK). scan "How to put in JDK". make sure that your JDK is at or on top of one.8. you'll check your JDK version with command "javac -version".
Uninstall older version(s) of "Android Studio" and "Android SDK", if any.
The installation and lots of operations take a protracted time to finish. don't stare at your screen or at the ceiling. flick thru the "Android Developers" @ https://developer.android.com. There area unit 3 main menus: "Design", "Develop", and "Distribute". opt for "Develop", you'll notice the robot "Guides", "Reference" and "Samples". For beginners, flick thru the "Guides".
We need to install:
Android Studio IDE, that is AN Integrated Development setting (IDE) supported IntelliJ (a fashionable Java IDE); andAndroid software system Development Kit (SDK).
Step 1: Install "Android Studio IDE"
(For Windows)
Check that setting variable JAVA_HOME is ready to the JDK installation directory via command "set JAVA_HOME".
Otherwise, Follow the steps HERE.
Check the system necessities for robot
Studio/SDK @ https://developer.android.com/sdk/index.html#Requirements, e.g., Windows 7/8/10, suggested 8GB of RAM and 4GB of disc space.
Goto "Android Developer" @ https://developer.android.com/index.html ⇒ Select "Get Android Studio" ⇒ "Download Android Studio 3.x.x for Windows (683MB)", e.g., android-studio-ide-171.xxxxxxx-windows.exe.
Run the downloaded installer ⇒ In "Choose Components", choose "Android Studio" and "Android Virtual Device". ⇒ Follow the on-screen instruction and accept the defaults to complete the installation. you would like concerning 3-4GB of free disk space! note (and take photo) on the installation locations of "Android Studio" (by default @ "C:\Program Files\Android\Android Studio") and therefore the "Android SDK" (by default @ c:\Users\username\AppData\Local\Android\Sdk).
Getting started with Android Studio (For macintosh OS X)
Check the system necessities @ https://developer.android.com/sdk/index.html#Requirements, e.g., macintosh OS X ten.10 to 10.13, suggested 8GB of RAM and 4GB of disc space.
Goto "Android Developer" @ https://developer.android.com/index.html ⇒ Select "Get Android Studio" ⇒ "Download Android Studio 3.x.x for macintosh (738MB)", e.g., android-studio-ide-171.xxxxxxx-mac.dmg.
Launch the downloaded ".dmg" installation file. choose "Custom" (instead of "Standard"), beneath the SDK parts Setup, select ALL, together with "Performance (Intel HAXM)" and "Android Virtual Device (731MB)".
Drag and drop robot Studio into the "Applications" folder.
Note: If you see a warning that claims the package is broken and will be enraptured to the trash, go to System Preferences ⇒ Security & Privacy ⇒ under Allow applications downloaded from ⇒ select Anywhere. Then run once more.
The "Android SDK" is/will be put in in "~/Library/Android/sdk" by default, wherever ~ denotes your home directory.
Step 2: putting in robot SDK
Notes: Adding too several SDK packages, particularly the questionable system pictures for emulating completely different device (e.g., numerous phone/tablet), can take a particularly while, particularly if everyone seems to be downloading and jam up the network. The system pictures additionally take up plenty of disc space - a number ofGBytes per API level!!! For our toy project, we have a tendency to solely would like atiny low set of SDK packages.
[TODO] Check if it's doable to repeat the SDK rather than downloading the 1GB throughout installation?
(For Windows)
Launch Android Studio ⇒ It will run the "setup" wizard for the first launch ⇒ do not import previous settings ⇒ In "Installation Type", choose "Standard" ⇒ Check the SDK folder, by default @ c:\Users\username\AppData\Local\Android\Sdk ⇒ Finish.
This step can transfer another 1GB of SDK package and take times to finish.
Note: In Windows, "AppData" could be a hidden directory. You need to choose "View" ⇒ Check "Show Hidden Items" to see this directory.
(Optional) You can check the SDK packages installed by selecting "Configure" ⇒ "SDK Manager":
- Under "SDK Platforms":
- Android API twenty seven
- Under "SDK Tools":
- Android SDK Build Tools
- Android imitator twenty seven.x.x
- Android SDK Platform-Tools twenty seven.x.x
- Android SDK Tools twenty six.x.x
- Intel x86 imitator Accelerator (HAXM installer)
- Android Support Repository
- Google Repository
Getting started with Android Studio (For macintosh OS X)
Launch Android Studio ⇒ It will run the "setup" wizard for the first launch ⇒ do not import previous settings ⇒ In "Installation Type", choose "Standard" ⇒ Check the SDK folder, by default @ "/Users/username/Library/Android/sdk" (aka "~/Library/Android/sdk") ⇒ Finish.
This step can transfer another 1GB of SDK package and take quite generally to finish.
(Optional) You can check the SDK packages installed by selecting "Configure" ⇒ "SDK Manager":
Under "SDK Platforms" tab:
- Android API twenty seven
- Under "SDK Tools" tab:
- Android SDK Build Tools
- Android imitator twenty seven.x.x
- Android SDK Platform-Tools twenty seven.x.x
- Android SDK Tools twenty six.x.x
- Intel x86 imitator Accelerator (HAXM installer)
- Android Support Repository
- Google Repository
Problems of Error after Getting started with Android Studio
Common Errors:
- If everything fails, select "File" menu ⇒ "Invalidate Caches / Restart..." ⇒ and wait ...
- Cannot find "AVD manager" in the "Tool" menu: You may not have enough packages needed for the project. You should have a window with Gradle alert with a link which you can click and you will see a window with a prompt to download missing packages. When all stuff downloaded the "ADV manager" should be enabled.
- If you get an error message "Fail to find target with hash string 'android-26'". Either click the link "Install missing platform(s) and sync project" to install API-26 (another GB download!); or Under "Gradle Scripts" ⇒ Open "build.gradle (Module: app)" ⇒ Change "
compileSdkVersion
" and "targetSdkVersion
" from 26 to 27 (we have installed API-27) and "com.android.support:appcompat-v7:26.x.x
" to "27.0.0
". - If you get an error message "Re-download dependencies and sync project (requires network)", click the link to download. If the message appears again:
- (Windows) Goto "
C:\Users\username\.gradle\wrapper\dists
" and delete "gradle-x.x-all
". Take note the ".gradle
" is a hidden directory and you need to enable viewing of hidden directory. - (Macs) Goto "
~\.gradle\wrapper\dists
" and delete "gradle-x.x-all
". Take note the ".gradle
" is a hidden directory and you need to enable viewing of hidden directory.
This error is due to poor network condition, resulted in corrupted download. - (Windows) Goto "
- If you encountered error "HAX is not working..." ⇒ Open "SDK Manager" ⇒ SDK Tools ⇒ Check if "Intel x86 Emulator Accelerator (HAXM Installer)" is installed ⇒ Goto SDK Location (by default, "
C:\Users\your-username\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager
" for Windows or "~/Library/Android/sdk
/extras/intel/Hardware_Accelerated_Execution_Manager
" for Mac OS X) ⇒ run "intelhaxm-android.exe
" to install HAXM ⇒ Be patient! The installer may take a while to launch ⇒ Follow the screen instructions to complete the setup.
Take note that: (a) In Windows, the "AppData
" directory is hidden. You need to unhide via "Control Panel" ⇒ "Folder Options" (or "File Explorer Options" in Windows 10) ⇒ Check "Show hidden files, folders, and drives". (b) In Mac OS X, the "Library
" folder is hidden. You can unhide via "Finder" ⇒ Go ⇒ Home ⇒ Settings ⇒ Show View Option.
If the problem persists, remove and then re-install. - If you encountered error "Intel virtualization technology (VT-x) is not turned on" ⇒ Check your BIOS setting to ensure that "Intel virtualization technology" is enabled. Shutdown and re-boot your PC to enter the BIOS setup. This is machine dependent. Google "Your-PC-brand-and-model enter BIOS setup".
If "Intel virtualization technology" is already enabled, this error is probably caused by your antivirus software. Disable your antivirus for this session and rerun.
See http://stackoverflow.com/questions/21635504/error-during-installing-haxm-vt-x-not-working. - If you have problem creating AVD via "AVD Manager" (On Mac OS X having error "Studio quit unexpectedly"), open the AVD manager via command line as follows:
// For Mac OS X cd ~/Library/Android/sdk/tools ./android avd // For Windows cd C:\Users\your-username\AppData\Local\Android\sdk\tools android avd
- How do I get started with Android Development?How to Start Your Android Development Journey – 4 Basic Steps
- Official Android Website. Visit the official Android Developer website. ...
- Get to know Material Design. Material Design. ...
- Download Android Studio IDE. Download Android Studio (not Eclipse). ...
- Write some code. It's time to look a bit at the code and write something.
- Is Android studio easy?As Android devices become increasingly more common, demand for new apps will only increase. Android Studio is an easy to use (and free) development environment to learn on. It's best if one has a working knowledge of the Java programming language for this tutorial because it is the language used by Android.
- Get link
- X
- Other Apps
Comments
Post a Comment