Monday, 28 April 2014

Signing Android projects in Eclipse - Suddenly crash

Sometimes I found Eclipse suddenly crashes if I try to sign an Android project. The a new text document like the below appears:

# A fatal error has been detected by the Java Runtime Environment:
#  SIGBUS (0x7) at pc=0xb45a1713, pid=2780, tid=2105924416
# JRE version: Java(TM) SE Runtime Environment (7.0_55-b13) (build 1.7.0_55-b13)
# Java VM: Java HotSpot(TM) Client VM (24.55-b03 mixed mode linux-x86 )
# Problematic frame:
# C  []  newEntry+0x73
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

The fact is this error appears sometimes and using the solution given above it still appears. This could be a good solution:

1. On the menu, Open Project and click on "Build Automatically" to uncheck it.
2. Clean the projects by clicking on Project -> Clean
3. Build manually your project (only your project, not any other libraries) by right click on your project and select Project -> Build project
4. Now try to export the signed version of your project by right click on your project and select Android Tools -> Export signed Application.


No comments:

Post a Comment