My APK is coming out to around 19 MB. I have no pictures or sound files in my project and only one class. Looking through the directory of my project folder (which is about 50 MB), most of the size seems to be coming from the .git folder in my src folder, and the .git folder in my bin folder, but I am under the impression that the .git folder is not included in the final APK. Does anyone know what could be causing this large size? I have tried cleaning the project as well with no luck. I am not referencing any other libraries, and my only private library is Google AdMobs. I am also using ProGuard.
问问题
1772 次
2 回答
1
最好的方法是在项目的根文件夹而不是 src 文件夹中初始化 git 存储库。项目的根文件夹就是 AndroidManifest.xml 所在的文件夹!
.git 文件夹是所有 git 版本控制文件的存储位置,随着项目的开发,它会变得更大。
于 2013-05-20T17:53:22.100 回答
0
看看 Android 尺寸分析器。此页面上的详细信息:reduce-apk-size
于 2019-10-03T01:08:18.950 回答