From 9b5ea488714667fd7c0bda0ad536331e2882f581 Mon Sep 17 00:00:00 2001 From: Dirk Dougherty Date: Thu, 17 Dec 2009 10:15:23 -0800 Subject: [PATCH] doc change: Move commit 4075b4ced from guide/appendix/faq to resources/faq. Bug: 2315781 Change-Id: I75bb4c98fa48af47c935787a5ab30ca7c1a8091d --- docs/html/resources/faq/troubleshooting.jd | 74 ++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/docs/html/resources/faq/troubleshooting.jd b/docs/html/resources/faq/troubleshooting.jd index 0cf1ab006d1e..f3252b055b85 100644 --- a/docs/html/resources/faq/troubleshooting.jd +++ b/docs/html/resources/faq/troubleshooting.jd @@ -22,7 +22,10 @@ parent.link=index.html
  • Eclipse isn't talking to the emulator
  • When I go to preferences in Eclipse and select "Android", I get the following error message: Unsupported major.minor version 49.0.
  • I can't install ApiDemos apps in my IDE because of a signing error
  • +
  • I can't install the GestureBuilder sample +app in the emulator
  • I can't compile my app because the build tools generated an expired debug certificate
  • +
  • Unable to view manifest files from within Eclipse
  • ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".

    @@ -233,6 +236,55 @@ commands to the emulator instance that you are targeting. To do that you can add

    For more information about adb, see the Android Debug Bridge documentation.

    +

    I can't install the GestureBuilder sample +app in the emulator

    + +

    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.

    + +

    Symptoms

    + + + +

    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.

    + +

    For example, here's how you could do this in Eclipse:

    + +
      +
    1. Right-click on the package name +(src/com.android.gesture.builder).
    2. +
    3. Select Refactor > Rename and change the name, for example to +com.android.gestureNEW.builder.
    4. +
    5. Open the manifest file. Inside the <manifest> +tag, change the package name to +com.android.gestureNEW.builder.
    6. +
    7. Open each of the two Activity files and do Ctrl-Shift-O to add +missing import packages, then save each file.
    8. +
    9. Run the GestureBuilder application on the emulator.
    10. +
    + +

    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 +-c +option in the android create avd command.

    I can't compile my app because the build tools generated an expired debug certificate

    @@ -259,3 +311,25 @@ C:\Users\<user>\.android

    For general information about signing Android applications, see Signing Your Applications.

    +

    Unable to view manifest files from within +Eclipse

    + +

    When you try to open an application's manifest file from within +Eclipse, you might get an error such as this one:

    +
    An error has occurred. See error log for more details.
    +org.eclipse.wst.sse.ui.StructuredTextEditor.isBlockSelectionModeEnabled()Z
    + +

    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:

    + +
      +
    1. Select Help > Software Updates...
    2. +
    3. Select the Installed Software tab.
    4. +
    5. Select Eclipse XML Editors and Tools.
    6. +
    7. Click Uninstall.
    8. +
    9. Click Finish.
    10. +
    + +

    When you restart Eclipse, you should be able to view the manifest +files.

    \ No newline at end of file -- 2.11.0