make:进入目录'/opt/FriendlyARM/tiny4412/05android/android-4.1.2'
target Dex: framework

trouble writing output: Too many methods: 65540; max is 65536. By package:
    26 android
   145 android.accessibilityservice
   702 android.accounts
   436 android.animation
     8 android.annotation
  3793 android.app
   240 android.app.admin
   308 android.app.backup
   105 android.appwidget
  1066 android.bluetooth
  1742 android.content
   956 android.content.pm
   499 android.content.res
   522 android.database
   497 android.database.sqlite
    91 android.ddm
     5 android.debug
   163 android.drm
    51 android.drm.mobile1
    30 android.emoji
    23 android.filterfw
   817 android.filterfw.core
    26 android.filterfw.format
    42 android.filterfw.geometry
    46 android.filterfw.io
    83 android.filterpacks.base
   410 android.filterpacks.imageproc
     6 android.filterpacks.numeric
    17 android.filterpacks.performance
    18 android.filterpacks.text
    29 android.filterpacks.ui
    18 android.filterpacks.videoproc
    21 android.filterpacks.videosink
    86 android.filterpacks.videosrc
   222 android.gesture
  1264 android.graphics
   718 android.graphics.drawable
    36 android.graphics.drawable.shapes
   341 android.hardware
   125 android.hardware.input
   187 android.hardware.usb
    43 android.icu.text
   423 android.inputmethodservice
   613 android.location
  1948 android.media
   264 android.media.audiofx
    48 android.media.effect
    39 android.media.effect.effects
   500 android.media.videoeditor
   134 android.mtp
  1575 android.net
     3 android.net.arp
   102 android.net.dhcp
   122 android.net.ethernet
   379 android.net.http
   100 android.net.nsd
    49 android.net.rtp
   441 android.net.sip
  1213 android.net.wifi
   400 android.net.wifi.p2p
    96 android.net.wifi.p2p.nsd
     1 android.net.wimax
   342 android.nfc
   166 android.nfc.tech
  1351 android.opengl
  2016 android.os
   226 android.os.storage
   821 android.preference
   548 android.provider
   970 android.renderscript
    35 android.sax
   129 android.security
   643 android.server
    42 android.server.search
    90 android.service.dreams
    30 android.service.textservice
   126 android.service.wallpaper
   147 android.speech
   133 android.speech.srec
   433 android.speech.tts
   553 android.telephony
    47 android.telephony.cdma
    68 android.telephony.gsm
    52 android.test
   742 android.text
    93 android.text.format
   365 android.text.method
   252 android.text.style
    48 android.text.util
   609 android.util
  4326 android.view
   377 android.view.accessibility
   242 android.view.animation
   319 android.view.inputmethod
   135 android.view.textservice
  3282 android.webkit
  6901 android.widget
    15 com.android.i18n.phonenumbers
     2 com.android.i18n.phonenumbers.geocoding
    23 com.android.internal
   636 com.android.internal.app
    92 com.android.internal.appwidget
    67 com.android.internal.backup
    61 com.android.internal.content
    23 com.android.internal.database
     8 com.android.internal.http
    78 com.android.internal.http.multipart
    37 com.android.internal.location
    12 com.android.internal.logging
    26 com.android.internal.net
   638 com.android.internal.os
    22 com.android.internal.os.storage
    54 com.android.internal.policy
    26 com.android.internal.preference
   171 com.android.internal.statusbar
  2794 com.android.internal.telephony
   361 com.android.internal.telephony.cat
   823 com.android.internal.telephony.cdma
    87 com.android.internal.telephony.cdma.sms
   794 com.android.internal.telephony.gsm
    28 com.android.internal.telephony.ims
   419 com.android.internal.telephony.sip
   246 com.android.internal.telephony.test
     6 com.android.internal.telephony.uicc
    94 com.android.internal.textservice
   436 com.android.internal.util
   489 com.android.internal.view
   717 com.android.internal.view.menu
  1138 com.android.internal.widget
   335 com.android.internal.widget.multiwaveview
     1 com.android.org.bouncycastle.asn1
     4 com.android.org.bouncycastle.asn1.x509
     3 com.android.org.bouncycastle.jce.netscape
     6 com.android.org.bouncycastle.openssl
     2 com.android.org.bouncycastle.util.encoders
    34 com.android.server
   400 com.android.server.sip
    10 com.google.android.collect
   313 com.google.android.gles_jni
    22 com.google.android.mms
   330 com.google.android.mms.pdu
    47 com.google.android.mms.util
   170 com.google.android.util
     7 com.slsi.sec.android
     1 dalvik.bytecode
    63 dalvik.system
     7 dalvik.system.profiler
     5 default
     1 gov.nist.javax.sip
     1 gov.nist.javax.sip.clientauthutils
     8 gov.nist.javax.sip.header
     4 gov.nist.javax.sip.header.extensions
     2 gov.nist.javax.sip.message
   240 java.io
   424 java.lang
     8 java.lang.ref
    27 java.lang.reflect
     4 java.math
    91 java.net
    97 java.nio
     5 java.nio.channels
    16 java.nio.charset
    21 java.security
    15 java.security.cert
     1 java.security.spec
     1 java.sql
    36 java.text
   384 java.util
    55 java.util.concurrent
    19 java.util.concurrent.atomic
    17 java.util.concurrent.locks
    12 java.util.jar
    13 java.util.logging
    17 java.util.regex
    24 java.util.zip
     8 javax.crypto
     2 javax.crypto.spec
    33 javax.microedition.khronos.egl
   267 javax.microedition.khronos.opengles
    24 javax.net.ssl
    52 javax.sip
    16 javax.sip.address
    24 javax.sip.header
    13 javax.sip.message
    10 junit.framework
     6 libcore.icu
     2 libcore.internal
    18 libcore.io
     9 libcore.net
    10 libcore.net.http
     2 libcore.util
     2 org.apache.commons.codec.binary
     4 org.apache.commons.logging
    16 org.apache.harmony.dalvik.ddmc
     2 org.apache.harmony.luni.internal.util
     2 org.apache.harmony.security.asn1
     6 org.apache.harmony.security.pkcs7
     2 org.apache.harmony.security.provider.cert
     1 org.apache.harmony.xml
    18 org.apache.harmony.xnet.provider.jsse
    32 org.apache.http
    10 org.apache.http.client
     3 org.apache.http.client.methods
     1 org.apache.http.client.params
     1 org.apache.http.client.utils
     1 org.apache.http.conn
     2 org.apache.http.conn.routing
     4 org.apache.http.conn.scheme
     1 org.apache.http.conn.ssl
    10 org.apache.http.entity
     3 org.apache.http.impl
     3 org.apache.http.impl.client
     1 org.apache.http.impl.conn
     1 org.apache.http.impl.conn.tsccm
     3 org.apache.http.impl.entity
     6 org.apache.http.impl.io
     6 org.apache.http.io
    12 org.apache.http.message
    13 org.apache.http.params
     9 org.apache.http.protocol
    11 org.apache.http.util
     3 org.ccil.cowan.tagsoup
    14 org.json
     2 org.kxml2.io
    13 org.xml.sax
     1 org.xml.sax.helpers
    27 org.xmlpull.v1
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] 错误 2
make:离开目录“/opt/FriendlyARM/tiny4412/05android/android-4.1.2”
root@phone-desktop:/opt/FriendlyARM/tiny4412/05android/android-4.1.2#

解决方法:分离一些新的jar包

https://github.com/CyanogenMod/android_frameworks_base/commit/854f6f736b90d33b59b5a85bcecf72a416c43b7d

一:base/android.mk

@@ -, +, @@ framework_res_source_path := APPS/framework-res_intermediates/src
# the library
# ============================================================
+#
+# These will be included in framework2 to avoid issues with the limit
+# on the number of classes/dex
+SECONDARY_FRAMEWORKS_SUBDIRS := \
+ core/java/android/test \
+ core/java/android/gesture \
+ core/java/android/speech/srec \
+ media/java/android/media/videoeditor \
+ media/java/android/media/audiofx \
+ media/mca/effect/java/android/media/effect \
+ media/mca/effect/java/android/media/effect/effects
+
include $(CLEAR_VARS)
# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
LOCAL_SRC_FILES := $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS))
+SECONDARY_SRC_FILES := $(call find-other-java-files,$(SECONDARY_FRAMEWORKS_SUBDIRS))
+
+LOCAL_SRC_FILES := $(filter-out $(SECONDARY_SRC_FILES),$(LOCAL_SRC_FILES))
# EventLogTags files.
LOCAL_SRC_FILES += \
@@ -, +, @@ $(full_classes_compiled_jar): $(framework_res_R_stamp)
$(LOCAL_INSTALLED_MODULE): | $(dir $(LOCAL_INSTALLED_MODULE))framework-res.apk
framework_built := $(call java-lib-deps,framework)
+framework_built += $(call java-lib-deps,framework2)
# AIDL files to be preprocessed and included in the SDK,
# relative to the root of the build tree.
@@ -, +, @@ framework_docs_LOCAL_JAVA_LIBRARIES := \
core \
ext \
framework \
+ framework2 \
framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
@@ -, +, @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
-LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) framework
+LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) framework framework2
LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
@@ -, +, @@ LOCAL_DX_FLAGS := --core-library
include $(BUILD_JAVA_LIBRARY)
+include $(CLEAR_VARS)
+
+# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
+LOCAL_SRC_FILES := $(call find-other-java-files,$(SECONDARY_FRAMEWORKS_SUBDIRS))
+
+LOCAL_NO_STANDARD_LIBRARIES := true
+LOCAL_JAVA_LIBRARIES := bouncycastle core core-junit ext framework
+
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE := framework2
+LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+
+LOCAL_NO_EMMA_INSTRUMENT := true
+LOCAL_NO_EMMA_COMPILE := true
+
+#LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
+
+LOCAL_DX_FLAGS := --core-library
+
+include $(BUILD_JAVA_LIBRARY)
# Include subdirectory makefiles
# ============================================================
@@ -, +, @@ include $(BUILD_JAVA_LIBRARY)
ifeq (,$(ONE_SHOT_MAKEFILE))
include $(call first-makefiles-under,$(LOCAL_PATH))
endif
+

二:  test-runner/Android.mk

@@ -, +, @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src)
-LOCAL_JAVA_LIBRARIES := core core-junit framework
+LOCAL_JAVA_LIBRARIES := core core-junit framework framework2
LOCAL_MODULE:= android.test.runner

packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/Filter.java:61: 找不到符号

----

05-11 11:35