Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Cannot delete Android Dependencies Folder
Cannot delete Android Dependencies Folder [message #1219242] Mon, 02 December 2013 20:38 Go to next message
Robert Emmons is currently offline Robert EmmonsFriend
Messages: 29
Registered: July 2009
Junior Member
I have an Android API 10 project which was running fine until I upgraded to Eclipse Kepler from Juno. Now, when I try to run it, I get these errors:

• [2013-11-27 16:39:42 - RoboSkorz] Dx trouble writing output: already prepared

• [2013-11-27 16:39:42 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

• [2013-11-27 16:39:42 - RoboSkorz] Conversion to Dalvik format failed: Unable to execute dex:java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

I did a clean install of the latest Eclipse Kepler, Android SDK and the Eclipse ADT plugin. No help.

Eclipse adds the annotations.jar in Android Dependencies folder. If I remove the jar from the build path, the project builds and runs OK. But, when I exit and re-start Eclipse, it adds the jar back, and the project fails to run again.

Is the annotations.jar needed for API 10? If not, how can I get rid of it?
Re: Cannot delete Android Dependencies Folder [message #1219245 is a reply to message #1219242] Mon, 02 December 2013 20:48 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 12/2/2013 1:38 PM, Robert Emmons wrote:
> I have an Android API 10 project which was running fine until I upgraded
> to Eclipse Kepler from Juno. Now, when I try to run it, I get these errors:
>
> • [2013-11-27 16:39:42 - RoboSkorz] Dx trouble writing output: already
> prepared
>
> • [2013-11-27 16:39:42 - Dex Loader] Unable to execute dex:
> java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
>
> • [2013-11-27 16:39:42 - RoboSkorz] Conversion to Dalvik format failed:
> Unable to execute dex:java.nio.BufferOverflowException. Check the
> Eclipse log for stack trace.
>
> I did a clean install of the latest Eclipse Kepler, Android SDK and the
> Eclipse ADT plugin. No help.
>
> Eclipse adds the annotations.jar in Android Dependencies folder. If I
> remove the jar from the build path, the project builds and runs OK. But,
> when I exit and re-start Eclipse, it adds the jar back, and the project
> fails to run again.
>
> Is the annotations.jar needed for API 10? If not, how can I get rid of it?

http://www.eclipse.org/forums/index.php/t/225513/
Re: Cannot delete Android Dependencies Folder [message #1219251 is a reply to message #1219245] Mon, 02 December 2013 21:41 Go to previous messageGo to next message
Robert Emmons is currently offline Robert EmmonsFriend
Messages: 29
Registered: July 2009
Junior Member
Thanks for the links. I will certainly research them.

However, I think there is one question appropriate to Eclipse. I repeatedly remove "Android Dependencies/annotatons.jar" from my project, and every time I re-start Eclipse, it puts the folder and jar back in my project. Why does keep re-inserting the jar?
Re: Cannot delete Android Dependencies Folder [message #1219255 is a reply to message #1219251] Mon, 02 December 2013 22:05 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 12/02/2013 02:41 PM, Robert Emmons wrote:
> Thanks for the links. I will certainly research them.
>
> However, I think there is one question appropriate to Eclipse. I
> repeatedly remove "Android Dependencies/annotatons.jar" from my project,
> and every time I re-start Eclipse, it puts the folder and jar back in my
> project. Why does keep re-inserting the jar?

It may be an ADT thing which you should understand now having read the
sticky post. If you remove the JAR file and/or the dependency from Build
Path -> Libraries, there's no way Eclipse is putting it back in for you
by itself. While I recognize the JAR filename, it's been three years
since I last developed and Android application. I don't remember all the
dependencies and they may have changed anyway.

Per the post, it's doubtful you'll get an answer to this here. I would
suggest one of the forums at this link:

http://www.javahotchocolate.com/tutorials/android.html#support
Re: Cannot delete Android Dependencies Folder [message #1219945 is a reply to message #1219255] Sat, 07 December 2013 04:18 Go to previous message
Robert Emmons is currently offline Robert EmmonsFriend
Messages: 29
Registered: July 2009
Junior Member
I have fixed the problem which caused the annotations.jar to crash my program, but I'm not sure exactly which change did the trick.

It seemed like the problem resulted from some version incompatibility between the annotations.jar, and other things in the project. I uninstalled both Eclipse and the Android SDK. I re-installed the SDK in a new folder with no spaces in its name and no previous security restrictions (c:\programs). I ran the Android SDK Manager and added components and APIs I needed. I re-installed Eclipse in the same folder. I installed the Android plugin in Eclipse.

It worked.

[Updated on: Sat, 07 December 2013 04:21]

Report message to a moderator

Previous Topic:Eclipse IDE preferences survey
Next Topic:Self-signing tool
Goto Forum:
  


Current Time: Wed Apr 24 17:15:22 GMT 2024

Powered by FUDForum. Page generated in 0.07973 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top