diff options
author | Robert Ly <robertly@google.com> | 2014-09-10 18:04:16 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-10 18:04:16 +0000 |
commit | 5debe44b88e41b61ecbbc48c60a006cd6abd734d (patch) | |
tree | b926ec408a05885b31821e5cecb1aa727bb312c4 /docs | |
parent | 9f60bc3f129037f2f1b05a09902c8e97d66322f3 (diff) | |
parent | 0743bca58961582078f4e8199fe9a6fa044036eb (diff) | |
download | frameworks_base-5debe44b88e41b61ecbbc48c60a006cd6abd734d.zip frameworks_base-5debe44b88e41b61ecbbc48c60a006cd6abd734d.tar.gz frameworks_base-5debe44b88e41b61ecbbc48c60a006cd6abd734d.tar.bz2 |
am 0743bca5: docs: add 64k method limit note
* commit '0743bca58961582078f4e8199fe9a6fa044036eb':
docs: add 64k method limit note
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/tools/building/index.jd | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/html/tools/building/index.jd b/docs/html/tools/building/index.jd index c64942f..c1f3019 100644 --- a/docs/html/tools/building/index.jd +++ b/docs/html/tools/building/index.jd @@ -79,3 +79,14 @@ page.title=Building and Running running on a device.</li> </ul> +<p class="note"><b>Note:</b> Apps are limited to a 64K method reference limit. If your app reaches +this limit, the build process outputs the following error message: + +<pre>Unable to execute dex: method ID not in [0, 0xffff]: 65536.</pre> + +To avoid this, you can +<a href="http://android-developers.blogspot.com.es/2011/07/custom-class-loading-in-dalvik.html">load +secondary dex files at runtime</a> and use +<a href="http://developer.android.com/tools/help/proguard.html">ProGuard</a> to strip out unnecessary +class references (Proguard only works when building in release mode). +</p>
\ No newline at end of file |