Search code examples
androideclipseapkandroid-build

What is the difference between running app and exporting unsigned app?


What is the difference between running an app and exporting unsigned app (regarding the built .apk) file?

As my app fails to export with Conversion to Dalvik format failed with error 1, but when running it via Run as Android App it runs and installs on the device.

I searched all the questions and tried all the answers but nothing worked, I don't even know how to debug it, there are no errors, and no problems in the logs.

FYI, my app uses:

  • ActionBarSherlock (by JakeWarton)
  • ViewPagerIndicator (by JakeWarton)
  • PullToRefresh
  • GoogleAdMob
  • GoogleAnalytics

Solution

  • In both cases you're applying a private key to the app, it's just that in one of the cases, it's the debug key (which is generated automatically, at least in Eclipse environments) and in the other case it can be used to publish it, for instance, on Google Play.

    (from the link):

    The important points to understand about signing Android applications are:

    All applications must be signed. The system will not install an application on an emulator or a device if it is not signed. To test and debug your application, the build tools sign your application with a special debug key that is created by the Android SDK build tools.

    I actually have had your problem, but in my case I solved it by cleaning my App (and associated libraries) in Eclipse and repeating the Export procedure.