diff options
author | Dirk Dougherty <ddougherty@google.com> | 2009-12-17 10:33:23 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-12-17 10:33:23 -0800 |
commit | fe3ad1913f20a591b4b0fdf8d6848839d3f8ee95 (patch) | |
tree | ddde9f5adf95ebb98a8fd21d4d2d92b485cf85b9 /docs/html | |
parent | 6fda019bdcf9f9c172155aa2f2bb07afbe01fad9 (diff) | |
parent | 24780ea60fab2c7fb399c88cd51151eccbbf383f (diff) | |
download | frameworks_base-fe3ad1913f20a591b4b0fdf8d6848839d3f8ee95.zip frameworks_base-fe3ad1913f20a591b4b0fdf8d6848839d3f8ee95.tar.gz frameworks_base-fe3ad1913f20a591b4b0fdf8d6848839d3f8ee95.tar.bz2 |
am 24780ea6: Merge change I75bb4c98 into eclair
Merge commit '24780ea60fab2c7fb399c88cd51151eccbbf383f' into eclair-plus-aosp
* commit '24780ea60fab2c7fb399c88cd51151eccbbf383f':
doc change: Move commit 4075b4ced from guide/appendix/faq to resources/faq.
Diffstat (limited to 'docs/html')
-rw-r--r-- | docs/html/resources/faq/troubleshooting.jd | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/docs/html/resources/faq/troubleshooting.jd b/docs/html/resources/faq/troubleshooting.jd index 0cf1ab0..f3252b0 100644 --- a/docs/html/resources/faq/troubleshooting.jd +++ b/docs/html/resources/faq/troubleshooting.jd @@ -22,7 +22,10 @@ parent.link=index.html <li><a href="#eclipse">Eclipse isn't talking to the emulator</a></li> <li><a href="#majorminor">When I go to preferences in Eclipse and select "Android", I get the following error message: Unsupported major.minor version 49.0.</a></li> <li><a href="#apidemosreinstall">I can't install ApiDemos apps in my IDE because of a signing error</a></li> + <li><a href="#gesturebuilderinstall">I can't install the GestureBuilder sample +app in the emulator</a></li> <li><a href="#signingcalendar">I can't compile my app because the build tools generated an expired debug certificate</a></li> + <li><a href="#manifestfiles">Unable to view manifest files from within Eclipse</a></li> </ul> <a name="installeclipsecomponents" id="installeclipsecomponents"></a><h2>ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".</h2> @@ -233,6 +236,55 @@ commands to the emulator instance that you are targeting. To do that you can add <p>For more information about adb, see the <a href="{@docRoot}guide/developing/tools/adb.html">Android Debug Bridge</a> documentation.</p> +<h2 id="gesturebuilderinstall">I can't install the GestureBuilder sample +app in the emulator</a></h2> + +<p>This is similar to the ApiDemos problem described above, except that +you cannot fix it by uninstalling GestureBuilder from the emulator. The +GestureBuilder app cannot be uninstalled because it is currently installed +within the system files themselves.</p> + +<p><strong>Symptoms</strong></p> + +<ul><li><p>You cannot run GestureBuilder in the emulator:</p> + +<pre>[2009-12-10 14:57:19 - GestureBuilderActivity]Re-installation failed due to different application signatures. +[2009-12-10 14:57:19 - GestureBuilderActivity]You must perform a full uninstall of the application. WARNING: This will remove the application data! +[2009-12-10 14:57:19 - GestureBuilderActivity]Please execute 'adb uninstall com.android.gesture.builder' in a shell.</pre> +</li> + +<li><p>Running <code>adb uninstall com.android.gesture.builder</code> fails:</p> +<pre>$ adb uninstall com.android.gesture.builder + Failure</pre> +</li></ul> + +<p>For now, the work-around is to change the sample's package name +so that the system can install it as a new app rather than as a +replacement for the existing GestureBuilder app. To change the +package name, open the manifest file and modify the package attribute +of the manifest element. Next, update imports and other references to +the package name, rebuild the app, and run it in an AVD.</p> + +<p>For example, here's how you could do this in Eclipse:</p> + +<ol> + <li>Right-click on the package name +(<code>src/com.android.gesture.builder</code>).</li> + <li>Select <strong>Refactor > Rename</strong> and change the name, for example to +<code>com.android.gestureNEW.builder</code>. </li> + <li>Open the manifest file. Inside the <code><manifest></code> +tag, change the package name to +<code>com.android.gestureNEW.builder</code>.</li> + <li>Open each of the two Activity files and do Ctrl-Shift-O to add +missing import packages, then save each file.</li> +<li>Run the GestureBuilder application on the emulator.</li> +</ol> + +<p>If you get an error message such as "Could not load /sdcard/gestures. +Make sure you have a mounted SD card," be sure that your target AVD has an +SD card. To create an AVD that has an SD card, use the +<a href="{@docRoot}guide/developing/tools/avd.html#options"><code>-c</code> +option</a> in the <code>android create avd</code> command.</p> <h2 id="signingcalendar">I can't compile my app because the build tools generated an expired debug certificate</h2> @@ -259,3 +311,25 @@ C:\Users\<user>\.android</code></li> <p>For general information about signing Android applications, see <a href="{@docRoot}guide/publishing/app-signing.html">Signing Your Applications</a>. </p> +<h2 id="manifestfiles">Unable to view manifest files from within +Eclipse</a></h2> + +<p>When you try to open an application's manifest file from within +Eclipse, you might get an error such as this one:</p> +<pre>An error has occurred. See error log for more details. +org.eclipse.wst.sse.ui.StructuredTextEditor.isBlockSelectionModeEnabled()Z</pre> + +<p>Try reverting to the 3.0 version of the Eclipse XML Editors and +Tools. If this does not work, remove the 3.1 version of the tool. To do +this in Eclipse 3.4:</p> + +<ol> + <li>Select <strong>Help > Software Updates...</strong></li> + <li>Select the <strong>Installed Software</strong> tab.</li> + <li>Select <strong>Eclipse XML Editors and Tools</strong>.</li> + <li>Click <strong>Uninstall</strong>.</li> + <li>Click <strong>Finish</strong>.</li> +</ol> + +<p>When you restart Eclipse, you should be able to view the manifest +files. </p>
\ No newline at end of file |