summaryrefslogtreecommitdiffstats
path: root/docs/html/tools
diff options
context:
space:
mode:
authorRobert Ly <robertly@google.com>2014-09-10 10:50:46 -0700
committerRobert Ly <robertly@google.com>2014-09-10 10:50:46 -0700
commit0743bca58961582078f4e8199fe9a6fa044036eb (patch)
tree33a0da9a3e9b293842cd70728fb4936314136492 /docs/html/tools
parent52a1816180c7a85b13c543a5cdb6a7506cb8f01d (diff)
downloadframeworks_base-0743bca58961582078f4e8199fe9a6fa044036eb.zip
frameworks_base-0743bca58961582078f4e8199fe9a6fa044036eb.tar.gz
frameworks_base-0743bca58961582078f4e8199fe9a6fa044036eb.tar.bz2
docs: add 64k method limit note
Change-Id: I6590fc996331c1f2024276d338c4035f2cb0f18d
Diffstat (limited to 'docs/html/tools')
-rw-r--r--docs/html/tools/building/index.jd11
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