Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.lang.VerifyError in 2.2.2 but not 2.3.3
    text
    copied!<p>I am building for minSDK 8 and targetSDK 11.</p> <pre><code>&lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="11"/&gt; </code></pre> <p>I get this in logcat:</p> <pre><code>WARN/dalvikvm(2114): VFY: rejected Lcom/examplecompany/project/TidalStreams/Data/gTidalStreamsHourlyHW;.&lt;clinit&gt; ()V WARN/dalvikvm(2114): Verifier rejected class Lcom/digitaliridium/tides/TidalStreams/Data/gTidalStreamsHourlyHW; </code></pre> <p>I have two Desires, amongst several other devices; one running 2.2.2 and one running 2.3.3.</p> <p>On 2.2.2, I get a <code>java.lang.VerifyError</code> at this line:</p> <pre><code>public void onCreate(){ ... gTidalStreamsHourlyHW.init(); ... } </code></pre> <p>Here's the the <code>init()</code> method. it's the only method of a very ordinary class.</p> <pre><code>public static void init(){ int insertPosition; System.arraycopy(gTidalStreamHourlyHW1, 0, gTidalStreamHourlyHW, 0, gTidalStreamHourlyHW1.length); insertPosition = gTidalStreamHourlyHW1.length; System.arraycopy(gTidalStreamsHourlyHW2.gTidalStreamHourlyHW1, 0, gTidalStreamHourlyHW, insertPosition, gTidalStreamsHourlyHW2.gTidalStreamHourlyHW1.length); insertPosition += gTidalStreamsHourlyHW2.gTidalStreamHourlyHW1.length; System.arraycopy(gTidalStreamsHourlyHW3.gTidalStreamHourlyHW1, 0, gTidalStreamHourlyHW, insertPosition, gTidalStreamsHourlyHW3.gTidalStreamHourlyHW1.length); ... </code></pre> <p><code>gTidalStreamsHourlyHW</code> is a large array of data, approx 350k. I have had to split it into multiple files to get around Java's 64k compilation unit limit.</p> <p>The <code>init</code> method simply uses System.arraycopy() to concatenate these multiple static arrays into one.</p> <p>I've tried dropping the minSDK level to 7 but the problem is the same.</p> <p>It also fails in an emulator running 2.2.2.</p>
 

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