0

Due to a change of computers, I had to do a new installation of Eclipse and the Android SDK. I copied over my work environment (directory) and voila, everything works fine when compiling and running my app in the emulator.

However, when creating a distribution package, the generated .apk file is just about +half the size of the previous versions+ and produces the +"There was a problem parsing the package"+ eror message when trying to install it on a phone.

On a closer check, I found that the following files are not added to the .apk file:

res/ folder
AndroidManifest.xml
resources.arsc

There are no error messages in the Error log in Eclipse and I have already disabled Proguard (just to sort it out as a possible cause). Any idea?

4

1 回答 1

0

我会尝试两件事...

首先,显而易见的是打开项目,然后使用 Project -> Clean。

其次(如果上面没有解决它),关闭项目然后在包资源管理器中右键单击它并选择删除 - 这不会删除项目文件(除非您选择了您显然不想要的复选框去做)。删除项目后,转到文件 -> 新建 -> 项目。选择“Android Project From Existing Code”,然后选择项目文件夹作为源。

于 2013-02-23T20:06:48.497 回答