android - 运行应用程序和导出未签名的应用程序有什么区别?

标签 android eclipse apk android-build

运行应用程序和导出未签名的应用程序(关于构建的 .apk)文件有什么区别?

由于我的应用无法导出,Conversion to Dalvik format failed with error 1,但是当通过Run as Android App 运行它时,它会运行并安装在设备上。

我搜索了所有问题并尝试了所有答案,但没有任何效果,我什至不知道如何调试它,没有错误,日志中也没有问题。

仅供引用,我的应用使用:

  • ActionBarSherlock(作者 JakeWarton)
  • ViewPagerIndicator(由 JakeWarton 设计)
  • 下拉刷新
  • GoogleAdMob
  • 谷歌分析

最佳答案

在这两种情况下,您都将私钥应用于应用程序,只是在其中一种情况下,它是 debug key (它是自动生成的,至少在 Eclipse 环境中是这样),在其他情况下,它可以用于发布它,例如,在 Google Play 上。

(来自链接):

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.

我确实遇到过你的问题,但就我而言,我通过在 Eclipse 中清理我的应用程序(和相关库)并重复导出过程来解决它。

关于android - 运行应用程序和导出未签名的应用程序有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15284847/

相关文章:

线性布局中的 Android Tabview

java - 我正在准备一个音乐应用程序以及如何将函数从 Song.java 调用到 SongDisplay.java

eclipse - 您如何在 eclipse/springsource 工具套件中安装 jre?

java - 如何在所有 Activity 中显示 Timer 的剩余时间?

android - 自动聚焦下一个 TextView

java - 将 TextBox 的字符串文本转换为 Java 中的数字

java - 如何以编程方式访问 Eclipse 帮助系统?

android-studio - map 尝试初始化时来自 APK 的应用程序崩溃

android - 为三星商店转换 Google Play 中的 android 应用程序

azure - 为什么下载的 apk 文件会被缓冲并给用户提供旧版本