Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Packaging Problem: resources.ap_ does not exist
    primarykey
    data
    text
    <p>I am trying to fix a problem in Eclipse for like 3 hours and I haven't made any progress. Tomorrow is the customer coming to look at my app, and I have no time left. This is really frustrating!</p> <p>This morning when I was coding and I wanted to run my app on my device Eclipse crashed all of a sudden. 'aapt.exe has stopped working'</p> <p>After this Eclipse wasn't starting anymore. It froze at the splash image.</p> <p>I looked on the internet and tried different solutions like going back to Java SE 6 update 20, changing .ini file etc. in the end reinstalling Eclipse did the job.</p> <p>Shortly after that the 'aapt.exe has stopped working' returned. I found a solution by changing my projects target. 1.5, 1.6, 2.2 doesn't matter, as long as it's different than the one before.</p> <p>Now I get the <code>Error generating final archive: java.io.FileNotFoundException: C:\xxx\bin\resources.ap_ does not exist</code> error.</p> <p>I tried clean but that doesn't work. Deleting and automatically regenarting R.java also didn't work.</p> <p>I ran the same code in Netbeans with the Android plugin and there it gives me the 'aapt.exe has stopped working' again :(</p> <p>Please guys, how can I fix this?</p> <p><strong>Edit:</strong> </p> <p>I think I <strong>may</strong> have found the reason. These are the error lines in the console:</p> <pre><code>org.xmlpull.v1.XmlPullParserException: Binary XML file line #3: &lt;bitmap&gt; requires a valid src attribute at android.graphics.drawable.BitmapDrawable.inflate(BitmapDrawable.java:341) at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:779) at android.graphics.drawable.Drawable.createFromXml(Drawable.java:720) at com.android.layoutlib.bridge.ResourceHelper.getDrawable(ResourceHelper.java:150) at com.android.layoutlib.bridge.BridgeTypedArray.getDrawable(BridgeTypedArray.java:668) at android.view.View.&lt;init&gt;(View.java:1846) at android.view.View.&lt;init&gt;(View.java:1795) at android.view.ViewGroup.&lt;init&gt;(ViewGroup.java:282) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) at org.eclipse.equinox.launcher.Main.run(Main.java:1407) at org.eclipse.equinox.launcher.Main.main(Main.java:1383) [2011-01-17 16:37:20 - gegevens.xml] Unable to resolve drawable "com.android.layoutlib.utils.ResourceValue@267e33de" in attribute "background" </code></pre> <p>The file it's talking about is 'bg.png'. It's a small png file which I repeat in a .xml file.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/bg" android:tileMode="repeat" /&gt; </code></pre> <p>This file has worked from the first time without any problems. I deleted it from the drawable folder, waited for an error message, and then added it back. The red x next to the foldername got away, but still nothing different...</p>
    singulars
    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.
 

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