Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse doesn't generate R.java
    primarykey
    data
    text
    <p>I am writing a calculator app to familiarize myself with the ADK, but my project will not build. There is no generated <code>R.java</code>, and when I click build I get the following message:</p> <pre><code>Errors occurred during the build. Errors running builder 'Android Pre Compiler' on project 'JakobCalculator'. java.lang.NullPointerException </code></pre> <p>I don't use subversion, so all of <a href="https://www.google.com/search?q=android+pre+compiler+NullPointerException&amp;aq=f&amp;oq=android+pre+compiler+NullPointerException&amp;aqs=chrome.0.57j62l3.4514&amp;sourceid=chrome&amp;ie=UTF-8" rel="nofollow">These questions</a> which point to it as the problem don't help me. </p> <p>The Eclipse console shows the following text:</p> <pre><code>[2013-04-20 10:42:54 - JakobCalculator] Android Launch! [2013-04-20 10:42:54 - JakobCalculator] adb is running normally. [2013-04-20 10:42:54 - JakobCalculator] Performing edu.us.jweisblat14.calculator.MainActivity activity launch [2013-04-20 10:42:54 - JakobCalculator] Automatic Target Mode: using device '015d43637e60021b' [2013-04-20 10:42:54 - JakobCalculator] Uploading JakobCalculator.apk onto device '015d43637e60021b' [2013-04-20 10:42:54 - JakobCalculator] Installing JakobCalculator.apk... [2013-04-20 10:42:57 - JakobCalculator] Success! [2013-04-20 10:42:57 - JakobCalculator] Starting activity edu.us.jweisblat14.calculator.MainActivity on device 015d43637e60021b [2013-04-20 10:42:57 - JakobCalculator] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=edu.us.jweisblat14.calculator/.MainActivity } [2013-04-20 10:49:08 - JakobCalculator] Error in an XML file: aborting build. </code></pre> <p>I can't figure out what that XML error might be. The only yellow warnings I can find anywhere are:</p> <ul> <li>on my <code>EditText</code> elements in the <code>MainActivity</code> xml (no label view points to them) </li> <li>on the xml declaration of the manifest (no grammar constraints).</li> </ul> <p>Where might I find the error?</p> <p>EDIT: here is my manifest file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="edu.us.jweisblat14.calculator" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17" /&gt; &lt;application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" &gt; &lt;activity android:name="edu.us.jweisblat14.calculator.MainActivity" android:label="@string/app_name" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload