summaryrefslogtreecommitdiffstats
path: root/docs/html/guide/appendix/faq/troubleshooting.jd
diff options
context:
space:
mode:
Diffstat (limited to 'docs/html/guide/appendix/faq/troubleshooting.jd')
-rw-r--r--docs/html/guide/appendix/faq/troubleshooting.jd48
1 files changed, 2 insertions, 46 deletions
diff --git a/docs/html/guide/appendix/faq/troubleshooting.jd b/docs/html/guide/appendix/faq/troubleshooting.jd
index 7c703e6..0cf1ab0 100644
--- a/docs/html/guide/appendix/faq/troubleshooting.jd
+++ b/docs/html/guide/appendix/faq/troubleshooting.jd
@@ -23,7 +23,6 @@ parent.link=index.html
<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="#signingcalendar">I can't compile my app because the build tools generated an expired debug certificate</a></li>
- <li><a href="#addjunit">I can't run a JUnit test class in Eclipse/ADT</a></li>
</ul>
<a name="installeclipsecomponents" id="installeclipsecomponents"></a><h2>ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".</h2>
@@ -245,8 +244,8 @@ documentation.</p>
<ol>
<li>First, delete the debug keystore/key already generated by the Android build tools. Specifically, delete the <code>debug.keystore</code> file. On Linux/Mac OSX, the file is stored in <code>~/.android</code>. On Windows XP, the file is stored in <code>
-C:\Documents and Settings\&lt;user&gt;\Local Settings\Application Data\Android</code>. On Windows Vista, the file is stored in <code>
-C:\Users\&lt;user&gt;\AppData\Local\Android</code></li>
+C:\Documents and Settings\&lt;user&gt;\.android</code>. On Windows Vista, the file is stored in <code>
+C:\Users\&lt;user&gt;\.android</code></li>
<li>Next, you can either
<ul>
<li>Temporarily change your development machine's locale (date and time) to one that uses a Gregorian calendar, for example, United States. Once the locale is changed, use the Android build tools to compile and install your app. The build tools will regenerate a new keystore and debug key with valid dates. Once the new debug key is generated, you can reset your development machine to the original locale. </li>
@@ -260,46 +259,3 @@ C:\Users\&lt;user&gt;\AppData\Local\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="addjunit">I can't run a JUnit test class in Eclipse/ADT</h2>
-
-<p>If you are developing on Eclipse/ADT, you can add JUnit test classes to your application. However, you may get an error when trying to run such a class as a JUnit test:</p>
-
-<pre>Error occurred during initialization of VM
-java/lang/NoClassDefFoundError: java/lang/ref/FinalReference</pre>
-
-<p>This error occurs because android.jar does not include complete Junit.* class implementations, but includes stub classes only. </p>
-
-<p>To add a JUnit class, you have to set up a JUnit configuration:.
-
-<ol>
-<li>In the Package Explorer view, select your project. </li>
-<li>Open the launch configuration manager.
- <ul>
- <li>In Eclipse 3.3 (Europa), select <strong>Run </strong>&gt;
- <strong>Open Run Dialog... </strong>or <strong>Run </strong>&gt;
- <strong>Open Debug Dialog... </strong>.
- </li>
-
- <li>In Eclipse 3.4 (Ganymede), select <strong>Run </strong>&gt;
- <strong>Run Configurations... </strong>or <strong>Run </strong>&gt;
- <strong>Debug Configurations... </strong>.
- </li>
- </ul>
- </li>
-<li>In the configuration manager, right-click the "JUnit" configuration type and select <strong>New</strong></li>
-<li>In the new configuration's <strong>Test</strong> tab, specify the project and test class, as well as any options for running the test. </li>
-<li>In the new configuration's <strong>Classpath</strong> tab, find "Android Library" under Bootstrap Entries and remove it. </li>
-<li>Still in the <strong>Classpath</strong> tab, select Bootstrap Entries and click the Advanced button. </li>
-<ol type="a">
-<li>Choose Add Library and click OK.</li>
-<li>Select JRE System Library and click Next. </li>
-<li>Select Workspace Default JRE and click Finish.</li>
-</ol>
-<li>Select Bootstrap Entries again and click Advanced.</li>
-<ol type="a">
-<li>Choose Add Library and click OK.</li>
-<li>Select JUnit 3 and click Finish. </li>
-</ol>
-</ol>
-<p>When configured in this way, your JUnit test class should now run properly.</p>
-