Android的 - 应用程序(APK)最大尺寸 [英] Android - Application (apk) Maximum size

查看:185
本文介绍了Android的 - 应用程序(APK)最大尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要安装第一个应用程序在我的Andr​​oid手机,但有一些疑虑 有关Android的内存(APK的最大尺寸)。

所以,请帮助我了解和解决的问题:

  1. 什么是的APK 可以由机器人来支持最大尺寸
  2. 当我们在真正的手机上安装任何apk文件,安装在它的应用程序(在SD卡或其他存储器)??

我已经提到此链接:<一href="http://groups.google.com/group/android-developers/browse_thread/thread/7965885da4d1a03a">http://groups.google.com/group/android-developers/browse_thread/thread/7965885da4d1a03a并且还搜查很多。

我碰到的搜寻条件的在网络上很多人都面临着同样的问题 什么是应用的搭载Android支持的最大尺寸。我认为这个问题也有利于谁是与Android的应用程序编程与开发连接的人。

更新:

这一次我有58MB的应用程序从52.5MB图像,它运行在我的HTC Hero手机,但在模拟器,它显示了一个错误:

 上传失败my_application.apk设备'模拟器-5554
java.io.IOException异常:无法上传文件:设备上没有剩余空间
启动取消!
 

现在请建议我来存储绘制对象文件夹内图像的方式?有没有什么办法来压缩图像或这样的方法?

解决方案
  1. 它大概设备特定的设备具有可用于应用不同的内存量。裁判的http://groups.google.com/group/android-developers/browse_thread/thread/18cbb2404778618e?pli=1

  2. 它的应用依赖。开发人员可以指出应用程序应该是preferrebly安装在内部存储器,SD卡,或让从SD卡和内存的用户选择。这是只支持Android 2.2的。关于Android的版本和LT旧版本= 2.1,该应用程序将被安装到内存中。它通过的AndoridMainfest.xml中定义的机器人:INSTALLLOCATION 元素。它支持值 internalOnly preferExternal 汽车。但同样,只支持Android 2.2的。裁判 http://developer.android.com/intl/de/ SDK / Android的2.2.html#API

我测试了我的HTC Desire拥有超过500 MB的内存。由于几乎没有任何应用程序的安装我可以安装APK是43MB,但一个apk文件是57MB过大,即使我有足够的可用内存...它失败,

失败[INSTALL_FAILED_INSUFFICIENT_STORAG​​E]

借助文件管理器应用程序告诉我使用60 / 147MB(40%),即时通讯。限制似乎是147 MB​​,但在实践中,我已经测试,这是不正确的......

更新:

我做了一些测试,并公布了结果的此处

:::
我从来没有改变这个答案的任何事情刚刚更新此。 <一href="http://android-developers.blogspot.in/2015/09/support-for-100mb-apks-on-google-play.html?linkId=17389452"相对=nofollow>更新由开发者博客的尺寸请参考以下链接了解更新的答案。

I am going to install first application in my android phone, but having some doubts related to Android Memory (Maximum size of APK).

So please help me know and solve the problems:

  1. What is maximum size of the apk that can be supported by the android ?
  2. When we install any apk file in real phone, where does application installed (in SD-card or other memory) ??

I have referred this link: http://groups.google.com/group/android-developers/browse_thread/thread/7965885da4d1a03a and also searched lot.

I came Across the search on the web that many people are facing the same issue What is the maximum size of Application supported by Android. I think this question also help to the people who are connected with Android application programming and development.

Update:

This time i am having 58Mb application from that 52.5MB Images and it runs on the my HTC Hero mobile but On Emulator, it shows an error:

Failed to upload my_application.apk on device 'emulator-5554'
java.io.IOException: Unable to upload file: No space left on device
Launch canceled!

Now please suggest me the way to store images inside the Drawable folder? is there any way to zip the images or such method?

解决方案

  1. Its probably device specific as devices has a different amount of memory available for application. ref http://groups.google.com/group/android-developers/browse_thread/thread/18cbb2404778618e?pli=1

  2. Its application dependant. The developer may state that the app should be preferrebly install on internal memory, the SD-card, or to let the user choose from SD-card and memory. This is only supported on Android 2.2. On older version of android, version <= 2.1, the app will be installed into the memory. Its defined inside the AndoridMainfest.xml via the android:installLocation element. It supports the values internalOnly, preferExternal or auto. But again, only supported on Android 2.2. ref http://developer.android.com/intl/de/sdk/android-2.2.html#api

I tested on my HTC Desire with more than 500 MB of memory. With almost none apps installed I can install an apk that is 43MB, but an apk that is 57MB is too large, even i got plenty of available memory... it fails with

Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]

The "File Manager" application tells me that im using 60/147MB (40%). The limit seems be 147 MB, but in practice, as i have tested, this is not true...

Update:

I did some testing, and published the results here:

::Edit::
I never changes the any thing in this answer just update this. Update size by Developer blog please refer this link about the updated answer.

这篇关于Android的 - 应用程序(APK)最大尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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