Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
280 views
in Technique[技术] by (71.8m points)

android - Exporting APK from eclipse (ADT) silently crashes

Every time I try to export an APK from Eclipse (tried Juno and Indigo) on Mac, eclipse crashes after a few seconds

This used to work fine on my current setup.

Running the app straight (debug mode) on my phone works fine.

The error from the console is:

Invalid memory access of location 0x10073f113 rip=0x101f656f7
Bus error: 10

I'm using Mac OS X 10.7.4 on a ~2010 MacBook Pro, with the following java:

java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

I'm using ADT 20.

I've tried reinstalling Eclipse and the Android SDK, and re-downloading ADT.

The Eclipse error view doesn't show anything

Any ideas of different methods I can try, or other ways to investigate what's going wrong?

Cheers

Update: For anyone coming along post-2014, you should be using Android Studio, which doesn't have this problem.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Disable Project/Build Automatically when you are exporting

I think is a problem of Eclipse unable to detect the Android command is still working or something similar.

Of course there is ever the option of APK generation using Ant outside Eclipse you can generate an Ant build.xml from your Eclipse project more info in official Android docs


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...