Friday, 15 May 2015

android - SherlockActionBar: Export signed apk, then Eclipse crashes :( -



android - SherlockActionBar: Export signed apk, then Eclipse crashes :( -

today finished testing new android app..

i utilize sherlockactionbar.

import /library

my os ubuntu 12.10 64bit..

i can build .apk eclipse , app runs on android 2.3.3(mobile) , android 4.0(tablet).

but when seek to: android tools -> export signed application package, eclipse crashes :(

i error:(before export/crash)

invalid zip archive: /home/voidcode/ubuntu one/workspace/jakewharton-actionbarsherlock-e5c2d1c/library/bin/library.jar

this error log find in eclipse-folder after crash: http://paste.ubuntu.com/1677938/

my androidmanifest.xml this:

<uses-sdk android:minsdkversion="4" android:targetsdkversion="15" />

and project.properties this:

# file automatically generated android tools. # not modify file -- changes erased! # # file must checked in version command systems. # # customize properties used ant build scheme edit # "ant.properties", , override values adapt script # project structure. # # enable proguard shrink , obfuscate code, uncomment (available properties: sdk.dir, user.home): #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # project target. target=android-14 android.library.reference.1=../jakewharton-actionbarsherlock-e5c2d1c/library

you may want check couple of things in project.

your project.properties file targets android api14, manifest targets api15. these should same sherlock actionbar works on api7+. may issue actually. seek changing android:minsdkversion="4" android:minsdkversion="7" obviously not allow prior android 2.1, you'll still target 100% of ecosystem.

if doesn't work, i've had lots of problem , exporting packages solutions random.

my general solution disable auto build, clean , manually build library projects.

for example

under project menu uncheck build automatically then project > clean... on window, uncheck start build immediately choose clean projects , click ok select sherlock actionbar project do project > build project (not build all). this build 1 library do library projects have included. click now, export project signed apk.

that works me , stops lot of unexplained export issues.

android eclipse ubuntu actionbarsherlock

No comments:

Post a Comment