运行时不会生成Android APK [英] Android APK won't generate when doing run

查看:35
本文介绍了运行时不会生成Android APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载/编码了几个 android 应用程序和示例代码.所有这些都在我的 eclipse 工作区中.我已经在 Eclipse 上安装了 android 开发所需的所有插件/图像.

I have several android application and sample code I have downloaded/coded. All these are in my eclipse workspace. I have installed all the required plugins/images for android development on eclipse.

这些项目在你构建时完美编译(我得到构建成功!"),并且在导出签名/未签名时会生成一个 APK 包.

The projects compile perfectly you you do Build (I get "Build Sucess!") and will generate an APK package when doing an Export signed/Unsigned.

问题出在这里:如果我确实在模拟器或连接的设备中运行,我会得到:

The problem is here: if I do run in either an emulator or connected device I get:

Error generating final archive: java.io.EOFException

与:

Location : Unkown
Type : Android Packaging Problem

我正在使用 Eclipse 4.2 运行 openSUSE 12.1(也尝试过 3.5 但没有运气)最新的 ADT 和安卓 SDK尝试编译所有 android 版本(1 到 16)

I am running openSUSE 12.1 with Eclipse 4.2 (tried also 3.5 but no luck) Latest ADT and android SDK Tried compiling for all android versions (1 to 16)

请帮忙,因为我累了或者在做导出和 adb 安装以将包放在我的设备上.

Please help because I am tired or doing export and adb install to place the package on my device.

推荐答案

删除以下文件并重试.

C:\Documents and Setting\User\Local Settings\Application数据\android\debug.keystore .

C:\Documents and Setting\User\Local Settings\Application Data\android\debug.keystore .

这篇关于运行时不会生成Android APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆