diff options
Diffstat (limited to 'docs/html/sdk')
-rw-r--r-- | docs/html/sdk/index.jd | 61 | ||||
-rw-r--r-- | docs/html/sdk/installing/migrate.jd | 32 | ||||
-rw-r--r-- | docs/html/sdk/installing/studio-tips.jd | 60 |
3 files changed, 103 insertions, 50 deletions
diff --git a/docs/html/sdk/index.jd b/docs/html/sdk/index.jd index 9c63438..5a03197 100644 --- a/docs/html/sdk/index.jd +++ b/docs/html/sdk/index.jd @@ -4,45 +4,47 @@ page.template=sdk header.hide=1 page.metaDescription=Download the official Android IDE and developer tools to build apps for Android phones, tablets, wearables, TVs, and more. -studio.version=1.1.0 +studio.version=1.2.0.12 -studio.linux_bundle_download=android-studio-ide-135.1740770-linux.zip -studio.linux_bundle_bytes=259336386 -studio.linux_bundle_checksum=e8d166559c50a484f83ebfec6731cc0e3f259208 +studio.linux_bundle_download=android-studio-ide-141.1890965-linux.zip +studio.linux_bundle_bytes=259139652 +studio.linux_bundle_checksum=72149f65911ca18d8f0d360e6b7a1e2dc57e9935 -studio.mac_bundle_download=android-studio-ide-135.1740770-mac.dmg -studio.mac_bundle_bytes=261303345 -studio.mac_bundle_checksum=f9745d0fec1eefd498f6160a2d6a1b5247d4cda3 +studio.mac_bundle_download=android-studio-ide-141.1890965-mac.dmg +studio.mac_bundle_bytes=260877150 +studio.mac_bundle_checksum=06fe5a2d9ab6c99bf42fb2014e519a073fc7e90d -studio.win_bundle_exe_download=android-studio-bundle-135.1740770-windows.exe -studio.win_bundle_exe_bytes=856233768 -studio.win_bundle_exe_checksum=7484b9989d2914e1de30995fbaa97a271a514b3f +studio.win_bundle_download=android-studio-ide-141.1890965-windows.zip +studio.win_bundle_bytes=261548058 +studio.win_bundle_checksum=29416e54ad074881a1e668e61e3d0c2316108dbe -studio.win_notools_exe_download=android-studio-ide-135.1740770-windows.exe -studio.win_notools_exe_bytes=242135128 -studio.win_notools_exe_checksum=5ea77661cd2300cea09e8e34f4a2219a0813911f -studio.win_bundle_download=android-studio-ide-135.1740770-windows.zip -studio.win_bundle_bytes=261667054 -studio.win_bundle_checksum=e903f17cc6a57c7e3d460c4555386e3e65c6b4eb +studio.win_bundle_exe_download=android-studio-bundle-141.1890965-windows.exe +studio.win_bundle_exe_bytes=928285584 +studio.win_bundle_exe_checksum=47be67749409f0d710c05b9a8f22d9191c47a9d0 +studio.win_notools_exe_download=android-studio-ide-141.1890965-windows.exe +studio.win_notools_exe_bytes=243621072 +studio.win_notools_exe_checksum=760d45212bea42f52adb1cbeab2390156d49c74d -sdk.linux_download=android-sdk_r24.1.2-linux.tgz -sdk.linux_bytes=168121693 -sdk.linux_checksum=68980e4a26cca0182abb1032abffbb72a1240c51 -sdk.mac_download=android-sdk_r24.1.2-macosx.zip -sdk.mac_bytes=89151287 -sdk.mac_checksum=00e43ff1557e8cba7da53e4f64f3a34498048256 -sdk.win_download=android-sdk_r24.1.2-windows.zip -sdk.win_bytes=159778618 -sdk.win_checksum=704f6c874373b98e061fe2e7eb34f9fcb907a341 +sdk.linux_download=android-sdk_r24.2-linux.tgz +sdk.linux_bytes=168119905 +sdk.linux_checksum=1a29f9827ef395a96db629209b0e38d5e2dd8089 -sdk.win_installer=installer_r24.1.2-windows.exe -sdk.win_installer_bytes=111364285 -sdk.win_installer_checksum=e0ec864efa0e7449db2d7ed069c03b1f4d36f0cd +sdk.mac_download=android-sdk_r24.2-macosx.zip +sdk.mac_bytes=88949635 +sdk.mac_checksum=256c9bf642f56242d963c090d147de7402733451 + +sdk.win_download=android-sdk_r24.2-windows.zip +sdk.win_bytes=155944165 +sdk.win_checksum=2611ed9a6080f4838f1d4e55172801714a8a169b + +sdk.win_installer=installer_r24.2-windows.exe +sdk.win_installer_bytes=107849819 +sdk.win_installer_checksum=e764ea93aa72766737f9be3b9fb3e42d879ab599 @@ -426,8 +428,7 @@ href="" >Download Android Studio</a> <p style="margin:0"> For more details about features available in Android Studio, -read the guide to <a href="{@docRoot}tools/studio/index.html" - >Android Studio Basics</a>.</p> +read the overview at <a href="{@docRoot}tools/studio/index.html">Android Studio</a>.</p> </div> diff --git a/docs/html/sdk/installing/migrate.jd b/docs/html/sdk/installing/migrate.jd index 3c04cb4..345e89a 100644 --- a/docs/html/sdk/installing/migrate.jd +++ b/docs/html/sdk/installing/migrate.jd @@ -24,17 +24,31 @@ Android, so you should migrate to Android Studio to receive all the latest IDE u <p>To migrate existing Android projects, simply import them using Android Studio:</p> <ol> - <li>In Android Studio, close any projects currently open. You should see the - <strong>Welcome to Android Studio</strong> window.</li> - <li>Click <strong>Import Non-Android Studio project</strong>.</li> - <li>Locate the project you exported from Eclipse, expand it, select the - <strong>build.gradle</strong> file and click <strong>OK</strong>.</li> - <li>In the following dialog, leave <strong>Use gradle wrapper</strong> selected and click - <strong>OK</strong>. (You do not need to specify the Gradle home.)</li> + <li>In Android Studio, from the main menu or the <strong>Welcome to Android Studio</strong> page, + choose <strong>File > Import Project</strong>.</li> + <li> Select the Eclipse root project directory</strong> and click <strong>OK</strong>. + <p class="note"><strong>Note:</strong> The Eclipse root directory must contain the + <code>AndroidManifest.xml</code> file. Also, the root directory must contain either the + <code>.project</code> and <strong>.classpath</strong> files from Eclipse or the + <code>res/</code> and <code>src/</code> directories.</p> + </li> + <li>Follow the steps in the import wizard. </li> </ol> -<p>Android Studio properly updates the project structure and creates the appropriate -Gradle build file.</p> +<p>Android Studio imports the current dependencies, downloads libraries, and +creates an Android Studio project with the imported Eclipse project as the main module. Android +Studio also creates the required Gradle build files. </p> + +<p>The import process replaces any JAR files and libraries with Gradle dependencies, and replaces +source libraries and binary libraries with Maven dependencies, so you no longer need to maintain +these files manually.</p> + + <p class="note"><strong>Note:</strong> If there are references to Eclipse workspace library files, + comment them out in the <code>project.properties</code> or <code>.classpath</code> files + that you imported from the Eclipse project. You can then add these files in the + <code>build.gradle</code> file. See + <a href="{@docRoot}tools/building/configuring-gradle.html">Configuring Gradle Builds</a>. </p> + <p>For more help getting started with Android Studio and the IntelliJ user experience, <a href="{@docRoot}tools/studio/index.html">learn more about Android Studio</a> and diff --git a/docs/html/sdk/installing/studio-tips.jd b/docs/html/sdk/installing/studio-tips.jd index 69c188c..a40050f 100644 --- a/docs/html/sdk/installing/studio-tips.jd +++ b/docs/html/sdk/installing/studio-tips.jd @@ -36,8 +36,8 @@ This section notes a few of the key features to help you work quickly and effici <h3>Smart Rendering</h3> <p>With smart rendering, Android Studio displays links for quick fixes to rendering errors. For example, if you add a button to the layout without specifying the <em>width</em> and -<em>height</em> atttributes, Android Studio displays the rendering message <em>Automatically -add all missing attributs</em>. Clicking the message adds the missing attributes to the layout.</p> +<em>height</em> attributes, Android Studio displays the rendering message <em>Automatically +add all missing attributes</em>. Clicking the message adds the missing attributes to the layout.</p> <h3> Bitmap rendering in the debugger</h3> @@ -82,7 +82,50 @@ window. Clicking <strong>Designer</strong> on the right side of the window revea with a layout hierarchy and a list of properties for each view in the layout.</p> -<h2 id="intellij">Working with IntelliJ</h3> +<h3>Annotations</h3> +<p>Android Studio provides coding assistance for using annotations from the +{@link android.support.annotation Support-Annotations} library, part of the +Support Repository. + +Adding a dependency for this library enables you to decorate your code with annotations to help +catch bugs, such as null pointer exceptions and resource type conflicts. You can also create +enumerated annotations to, for example, check that a passed parameter value matches a value from +a defined set of constants. For more information, see +<a href="{@docRoot}tools/debugging/annotations.html#annotations">Improving Code Inspection with +Annotations</a>. +</p> + + +<h3>Java class decompiling</h3> +<p>Android Studio allows you to look at what’s inside Java libraries when you don’t have access +to the source code. </p> + +<p>The decompiler is built into Android Studio for easy access. To use this feature, right-click +a class, method, or field from a library for which you do not have source file access and select +<strong>decompile</strong>.</p> The decompiled source code appears. </p> + +<p>To adjust the Java decompiler settings, select +<strong>File > Settings > Other Settings > Java Decompiler</strong>. </p> + + +<h3>Debugging and performance enhancements</h3> +<p>Android Studio offers debugging and performance enhancements such as:</p> +<ul> + <li>Auto detect an expanded set of code styles. To modify the current code style, choose + <strong>File > Settings > Code Styles</strong>. </li> + <li>Support for high density (Retina) displays on Windows and Linux. </li> + <li>Scratch files for quick prototyping without creating any project files. + <p>Choose <strong>Tools > New Scratch File</strong> to open a scratch file to quickly + build and run code prototypes. Together with Android Studio coding assistance, scratch + files allow you to quickly run and debug code updates with the support of all file operations. + By embedding code created with scripting languages, you can run your code from within the + scratch file.</p> + </li> +</ul> + + + +<h2 id="intellij">Working with IntelliJ-based Coding Practices</h3> <p>This section list just a few of the code editing practices you should consider using when creating Android Studio apps. </p> @@ -114,23 +157,17 @@ individual classes. </p> you can set a scope to identify all code related to a specific action bar. </p> -<h3>External annotations</h3> -<p>Specify annotations within the code or from an external annotation file. The Android Studio -IDE keeps track of the restrictions and validates compliance, for example setting the data type -of a string as not null.</p> - - <h3>Injecting languages</h3> <p>With language injection, the Android Studio IDE allows you to work with islands of different languages embedded in the source code. This extends the syntax, error highlighting and coding assistance to the embedded language. This can be especially useful for checking regular expression -values inline, and validating XML and SQL statments.</p> +values inline, and validating XML and SQL statements.</p> <h3>Code folding</h3> <p>This allows you to selectively hide and display sections of the code for readability. For example, resource expressions or code for a nested class can be folded or hidden in to one line -to make the outer class structure easier to read. The inner clas can be later expanded for +to make the outer class structure easier to read. The inner class can be later expanded for updates. </p> @@ -140,6 +177,7 @@ updates. </p> reference. Pressing {@code F1} with the preview image or icon selected displays resource asset details, such as the <em>dp</em> settings. </p> + <h3>Quick F1 documentation</h3> <p>You can now inspect theme attributes using <strong>View > Quick Documentation</strong> (<strong>F1</strong>), |