diff options
author | Ricardo Cervera <rcervera@google.com> | 2014-05-15 00:00:53 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-15 00:00:53 +0000 |
commit | e7db83426e9979a0b6ecf124a013dc944dd3ccce (patch) | |
tree | 7a2c97413e15e45ef8de1f0a6b6d478bed91ca4c /docs | |
parent | ddfe0c77b459ff4f5fe7ad1e2d930814c9a611a5 (diff) | |
parent | d850be5d1491d255a64db9bc95334748e455c782 (diff) | |
download | frameworks_base-e7db83426e9979a0b6ecf124a013dc944dd3ccce.zip frameworks_base-e7db83426e9979a0b6ecf124a013dc944dd3ccce.tar.gz frameworks_base-e7db83426e9979a0b6ecf124a013dc944dd3ccce.tar.bz2 |
am d850be5d: am 7c05fd85: am 59ab011e: am 0e286ab1: Merge "docs: Removed outdated troubleshooting guidelines for Android Studio" into klp-docs
* commit 'd850be5d1491d255a64db9bc95334748e455c782':
docs: Removed outdated troubleshooting guidelines for Android Studio
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/images/tools/studio_error_gradle5.png | bin | 48854 -> 0 bytes | |||
-rw-r--r-- | docs/html/images/tools/studio_error_supportlib.png | bin | 171678 -> 0 bytes | |||
-rw-r--r-- | docs/html/sdk/installing/studio.jd | 68 |
3 files changed, 2 insertions, 66 deletions
diff --git a/docs/html/images/tools/studio_error_gradle5.png b/docs/html/images/tools/studio_error_gradle5.png Binary files differdeleted file mode 100644 index 13de607..0000000 --- a/docs/html/images/tools/studio_error_gradle5.png +++ /dev/null diff --git a/docs/html/images/tools/studio_error_supportlib.png b/docs/html/images/tools/studio_error_supportlib.png Binary files differdeleted file mode 100644 index 603b54c..0000000 --- a/docs/html/images/tools/studio_error_supportlib.png +++ /dev/null diff --git a/docs/html/sdk/installing/studio.jd b/docs/html/sdk/installing/studio.jd index 8ea5e7e..a2c32f0 100644 --- a/docs/html/sdk/installing/studio.jd +++ b/docs/html/sdk/installing/studio.jd @@ -312,11 +312,6 @@ the Android SDK Manager.</p> </div> -<p>Also note that due to the update to Android Gradle Plugin 0.6, you will encounter errors when opening -existing projects. See the <a href="#Troubleshooting">Troubleshooting</a> notes below for -information about how to resolve them.</p> - - <h2 id="Installing">Installing Android Studio</h2> <p>Android Studio requires JDK 6 or greater (JRE alone is not sufficient). To check if you have JDK installed (and which version), open a terminal and type <code>javac -version</code>. @@ -491,8 +486,7 @@ style="vertical-align:bottom;margin:0;height:19px" /> in the toolbar.</p> <li>Android Gradle plug-in updated to 0.5.0. <p class="caution"><strong>Caution:</strong> This new version is not backwards compatible. When opening a project that uses an older version of the plug-in, Studio will show an error - stating <strong>Gradle <project_name> project refresh failed.</strong> See <a - href="#Troubleshooting">Troubleshooting</a> below for details.</p> + stating <strong>Gradle <project_name> project refresh failed.</strong></p> <p>The updated Gradle plug-in includes the following changes:</p> <ul> <li>Fixed IDE model to contain the output file even if it's customized through the DSL. Also @@ -566,65 +560,7 @@ Check for updates</strong>).</p> <h2 id="Troubleshooting">Troubleshooting</h2> - -<div class="figure" style="width:330px"> -<img src="{@docRoot}images/tools/studio_error_gradle5.png" width="330"/> -<p class="img-caption"><strong>Figure 1.</strong> Error dialog when opening an existing project.</p> -</div> - -<h3>Error: Gradle project refresh failed</h3> - -<p>Android Studio 0.2.0 has updated the Gradle plug-in to 0.5.0, which is not backwards compatible. -When opening a project that uses an older version of the plug-in, Studio will display the error -shown in figure 1 in the upper right corner of the IDE. -To resolve the error, you must change the version of the Android Gradle plug-in to 0.5.0.</p> - -<ol> - <li>Click the link in the error dialog <strong>Search in build.gradle files</strong>. If the dialog -is no longer visible, click <strong>Event Log</strong> -<img src="{@docRoot}images/tools/studio_error_eventlog.png" -style="vertical-align:bottom;margin:0;height:19px"/> in the bottom-right corner of the IDE, -then click <strong>Search in build.gradle files</strong>.</li> - <li>Double-click the line under the <em>build.gradle</em> usage. For example: - <strong>classpath 'com.android.tools.build:gradle:0.4</strong>. This opens the project - <code>build.gradle</code> file.</li> - <li>Edit the <code>classpath</code> to change the gradle version to <code>0.5.+</code>. - For example: - <pre class="no-pretty-print"> -dependencies { - classpath 'com.android.tools.build:gradle:<strong>0.5.+</strong>' -} -</pre> - </li> - <li>Save the file and rebuild your project.</li> -</ol> - - - -<div class="figure" style="width:330px"> -<img src="{@docRoot}images/tools/studio_error_supportlib.png" width="330"/> -<p class="img-caption"><strong>Figure 2.</strong> Error dialog when creating a new project -or opening a project using the support library.</p> -</div> - -<h3>Error: Failed to import Gradle project</h3> - -<p>If, after updating to Android Studio 0.2.x and creating or opening a project, you receive an -error stating <em>"Could not find any version that matches -com.android.support:support-v4:13.0.+"</em>, then you must install the <strong>Android Support -Repository</strong>. This was likely caused because you're pointing Android Studio to an external -Android SDK location that does not have the new Maven repository included with Android Studio -0.2.x. This new Maven repository is used by the new build system for the Support Library, instead -of using the Support Library JAR files, so must be present in the SDK.</p> - - -<ol> - <li>Open the <strong>Android SDK Manager</strong>.</li> - <li>Expand the <strong>Extras</strong> directory -and install <strong>Android Support Repository</strong>.</li> -</ol> - -<p>If you've encountered other problems in Android Studio, look at the following page +<p>If you encounter problems in Android Studio, look at the following page for possible resolutions to known issues: <a href="http://tools.android.com/knownissues" >http://tools.android.com/knownissues</a>.</p> |