Hi everybody, I'm the fresh to the android here. I tried to build android for my device(S3c2440 board). So, i did it step by step with the instruction of android official webSite (http://source.android.com/download).
My host environment is: OS: debian 5.0 gcc: gcc version 4.3.2 (Debian 4.3.2-1.1) arm-linux-gcc: Using built-in specs. Target: arm-maxwit-linux-gnueabi Configured with: /home/tiger/maxwit/build/gcc-4.4.0/configure --prefix=/usr --build=i486-linux-gnu --host=i486-linux-gnu --target=arm-maxwit-linux-gnueabi --with-sysroot=/home/tiger/maxwit/sysroot --with-gmp=/home/tiger/maxwit/utils_tmp --with-mpfr=/home/tiger/maxwit/utils_tmp --disable-multilib --disable-nls --enable-shared --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix --enable-languages=c,c++ --with-float=soft --with-cpu=arm920t Thread model: posix gcc version 4.4.0 from http://maxwit.googlecode.com I have downloaded all codes from the official site using the following commands. *repo init -u git://android.git.kernel.org/platform/manifest.git repo sync * then I cd into the project directory, and type make command to make the whole project. Unfortunately the build failed. Here is the log error information. Any one here who can help me? Thanks a lot. Error log information: * ...while parsing methods[0] ...while parsing com/google/android/mms/pdu/RetrieveConf.class ...while processing com/google/android/mms/pdu/RetrieveConf.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 0000032a ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/mms/pdu/SendConf.class ...while processing com/google/android/mms/pdu/SendConf.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000e73 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/mms/util/PduCache.class ...while processing com/google/android/mms/util/PduCache.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000002d6 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/mms/util/AbstractCache$CacheEntry.class ...while processing com/google/android/mms/util/AbstractCache$CacheEntry.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000005ad ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/mms/util/AbstractCache.class ...while processing com/google/android/mms/util/AbstractCache.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000232 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/mms/util/PduCacheEntry.class ...while processing com/google/android/mms/util/PduCacheEntry.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000c0f ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/mms/util/SqliteWrapper.class ...while processing com/google/android/mms/util/SqliteWrapper.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000005f9 ...while parsing attributes[0] ...while parsing methods[1] ...while parsing com/google/android/util/AbstractMessageParser$Token$Type.class ...while processing com/google/android/util/AbstractMessageParser$Token$Type.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000004d5 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$Token.class ...while processing com/google/android/util/AbstractMessageParser$Token.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 0000051f ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$Html.class ...while processing com/google/android/util/AbstractMessageParser$Html.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000003f7 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$MusicTrack.class ...while processing com/google/android/util/AbstractMessageParser$MusicTrack.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000410 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$Link.class ...while processing com/google/android/util/AbstractMessageParser$Link.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000834 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$Video.class ...while processing com/google/android/util/AbstractMessageParser$Video.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000008c0 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$YouTubeVideo.class ...while processing com/google/android/util/AbstractMessageParser$YouTubeVideo.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000008f6 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$Photo.class ...while processing com/google/android/util/AbstractMessageParser$Photo.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000a15 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$FlickrPhoto.class ...while processing com/google/android/util/AbstractMessageParser$FlickrPhoto.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000003db ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$Smiley.class ...while processing com/google/android/util/AbstractMessageParser$Smiley.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000420 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$Acronym.class ...while processing com/google/android/util/AbstractMessageParser$Acronym.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000005e5 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$Format.class ...while processing com/google/android/util/AbstractMessageParser$Format.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000005c4 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$TrieNode.class ...while processing com/google/android/util/AbstractMessageParser$TrieNode.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000005f6 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$Part.class ...while processing com/google/android/util/AbstractMessageParser$Part.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 0000039c ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/AbstractMessageParser$1.class ...while processing com/google/android/util/AbstractMessageParser$1.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00001ebd ...while parsing attributes[0] ...while parsing methods[1] ...while parsing com/google/android/util/AbstractMessageParser.class ...while processing com/google/android/util/AbstractMessageParser.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 0000064c ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/GoogleWebContentHelper$MyWebViewClient.class ...while processing com/google/android/util/GoogleWebContentHelper$MyWebViewClient.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000fb6 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/GoogleWebContentHelper.class ...while processing com/google/android/util/GoogleWebContentHelper.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 0000021e ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/SimplePullParser$ParseException.class ...while processing com/google/android/util/SimplePullParser$ParseException.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000b42 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/SimplePullParser.class ...while processing com/google/android/util/SimplePullParser.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000845 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/SmileyParser.class ...while processing com/google/android/util/SmileyParser.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 0000059b ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/util/SmileyResources.class ...while processing com/google/android/util/SmileyResources.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000158 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/gles_jni/EGLConfigImpl.class ...while processing com/google/android/gles_jni/EGLConfigImpl.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000001f6 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/gles_jni/EGLContextImpl.class ...while processing com/google/android/gles_jni/EGLContextImpl.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 000013ca ...while parsing attributes[0] ...while parsing methods[1] ...while parsing com/google/android/gles_jni/GLImpl.class ...while processing com/google/android/gles_jni/GLImpl.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 0000014e ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/gles_jni/EGLDisplayImpl.class ...while processing com/google/android/gles_jni/EGLDisplayImpl.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00001230 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/gles_jni/EGLImpl.class ...while processing com/google/android/gles_jni/EGLImpl.class trouble processing: invalid constant pool index 0000 ...while parsing attributes[1] ...while parsing Code attribute at offset 00000176 ...while parsing attributes[0] ...while parsing methods[0] ...while parsing com/google/android/gles_jni/EGLSurfaceImpl.class ...while processing com/google/android/gles_jni/EGLSurfaceImpl.class 2375 warnings target Jar: framework (out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar) Docs droiddoc: out/target/common/docs/offline-sdk /work/maxwit/work/android/frameworks/base/docs/html/guide/topics/location/index.jd:-106: warning 3: Unknown tag: @link-fixme frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/annotation/KnownFailure.java:27: warning 3: Unknown tag: @ToBeFixed frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/DexFile.java:44: warning 3: Unknown tag: @cts frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/DexFile.java:63: warning 3: Unknown tag: @cts frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/DexFile.java:162: warning 3: Unknown tag: @cts frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/DexFile.java:190: warning 3: Unknown tag: @cts frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/TouchDex.java:32: warning 3: Unknown tag: @cts frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/TouchDex.java:49: warning 3: Unknown tag: @cts frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/VMDebug.java:28: warning 3: Unknown tag: @cts frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/AttributeList.java:72: warning 13: Class org.xml.sax.AttributeList: @Deprecated annotation and @deprecated comment do not match frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/DocumentHandler.java:47: warning 13: Class org.xml.sax.DocumentHandler: @Deprecated annotation and @deprecated comment do not match frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/HandlerBase.java:45: warning 13: Class org.xml.sax.HandlerBase: @Deprecated annotation and @deprecated comment do not match frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/Parser.java:52: warning 13: Class org.xml.sax.Parser: @Deprecated annotation and @deprecated comment do not match frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/helpers/AttributeListImpl.java:66: warning 13: Class org.xml.sax.helpers.AttributeListImpl: @Deprecated annotation and @deprecated comment do not match frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/helpers/ParserFactory.java:49: warning 13: Class org.xml.sax.helpers.ParserFactory: @Deprecated annotation and @deprecated comment do not match frameworks/base/../../external/apache-http/src/org/apache/http/protocol/HttpRequestHandlerRegistry.java:76: warning 14: @deprecated tag with no explanatory comment frameworks/base/../../external/apache-http/src/org/apache/http/protocol/HttpRequestHandlerRegistry.java:78: warning 13: Method org.apache.http.protocol.HttpRequestHandlerRegistry.matchUriRequestPattern: @Deprecated annotation and @deprecated doc tag do not match frameworks/base/core/java/android/appwidget/AppWidgetProvider.java:25: warning 3: Unknown tag: @toroot frameworks/base/core/java/android/database/sqlite/SQLiteDatabase.java:520: warning 13: Method android.database.sqlite.SQLiteDatabase.yieldIfContended: @Deprecated annotation and @deprecated doc tag do not match frameworks/base/core/java/android/hardware/SensorListener.java:28: warning 13: Class android.hardware.SensorListener: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:46: warning 11: Public class android.hardware.SensorManager stripped of unavailable superclass android.view.IRotationWatcher.Stub frameworks/base/core/java/android/hardware/SensorManager.java:119: warning 13: Field android.hardware.SensorManager.SENSOR_ALL: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:123: warning 13: Field android.hardware.SensorManager.SENSOR_MIN: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:127: warning 13: Field android.hardware.SensorManager.SENSOR_MAX: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:133: warning 13: Field android.hardware.SensorManager.DATA_X: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:137: warning 13: Field android.hardware.SensorManager.DATA_Y: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:141: warning 13: Field android.hardware.SensorManager.DATA_Z: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:146: warning 13: Field android.hardware.SensorManager.RAW_DATA_INDEX: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:151: warning 13: Field android.hardware.SensorManager.RAW_DATA_X: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:155: warning 13: Field android.hardware.SensorManager.RAW_DATA_Y: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/hardware/SensorManager.java:159: warning 13: Field android.hardware.SensorManager.RAW_DATA_Z: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/os/HandlerStateMachine.java:59: warning 3: Unknown tag: @Override frameworks/base/core/java/android/os/HandlerStateMachine.java:62: warning 3: Unknown tag: @Override frameworks/base/core/java/android/os/HandlerStateMachine.java:69: warning 3: Unknown tag: @Override frameworks/base/core/java/android/os/HandlerStateMachine.java:74: warning 3: Unknown tag: @Override frameworks/base/core/java/android/provider/Gmail.java:1522: warning 14: @deprecated tag with no explanatory comment frameworks/base/core/java/android/provider/Gmail.java:1535: warning 14: @deprecated tag with no explanatory comment frameworks/base/core/java/android/provider/Gmail.java:2041: warning 14: @deprecated tag with no explanatory comment frameworks/base/core/java/android/provider/LiveFolders.java:48: warning 3: Unknown tag: @Override frameworks/base/core/java/android/provider/Settings.java:1389: warning 13: Field android.provider.Settings.System.WIFI_MAX_DHCP_RETRY_COUNT: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/provider/Settings.java:1397: warning 13: Field android.provider.Settings.System.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS: @Deprecated annotation and @deprecated comment do not match frameworks/base/core/java/android/view/animation/Animation.java:322: warning 3: Unknown tag: @throw frameworks/base/core/java/android/webkit/URLUtil.java:150: warning 13: Method android.webkit.URLUtil.isCookielessProxyUrl: @Deprecated annotation and @deprecated doc tag do not match frameworks/base/core/java/android/webkit/UrlInterceptHandler.java:34: warning 3: Unknown tag: @Deprecated frameworks/base/core/java/android/webkit/UrlInterceptHandler.java:37: warning 13: Method android.webkit.UrlInterceptHandler.service: @Deprecated annotation and @deprecated doc tag do not match frameworks/base/core/java/android/webkit/UrlInterceptRegistry.java:93: warning 3: Unknown tag: @Deprecated frameworks/base/core/java/android/webkit/UrlInterceptRegistry.java:96: warning 13: Method android.webkit.UrlInterceptRegistry.getSurrogate: @Deprecated annotation and @deprecated doc tag do not match frameworks/base/core/java/android/webkit/gears/UrlInterceptHandlerGears.java:335: warning 3: Unknown tag: @Deprecated frameworks/base/media/java/android/media/AudioManager.java:152: warning 13: Field android.media.AudioManager.NUM_STREAMS: @Deprecated annotation and @deprecated comment do not match frameworks/base/test-runner/android/test/ProviderTestCase.java:18: warning 13: Class android.test.ProviderTestCase: @Deprecated annotation and @deprecated comment do not match frameworks/base/test-runner/android/test/TouchUtils.java:568: warning 13: Method android.test.TouchUtils.dragViewBy: @Deprecated annotation and @deprecated doc tag do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:308: warning 13: Field android.R.attr.autoText: @Deprecated annotation and @deprecated comment do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:508: warning 13: Field android.R.attr.capitalize: @Deprecated annotation and @deprecated comment do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:1340: warning 13: Field android.R.attr.editable: @Deprecated annotation and @deprecated comment do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:1385: warning 13: Field android.R.attr.enabled: @Deprecated annotation and @deprecated comment do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:2338: warning 13: Field android.R.attr.inputMethod: @Deprecated annotation and @deprecated comment do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:3708: warning 13: Field android.R.attr.numeric: @Deprecated annotation and @deprecated comment do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:3880: warning 13: Field android.R.attr.password: @Deprecated annotation and @deprecated comment do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:3984: warning 13: Field android.R.attr.phoneNumber: @Deprecated annotation and @deprecated comment do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:4727: warning 13: Field android.R.attr.searchButtonText: @Deprecated annotation and @deprecated comment do not match out/target/common/obj/APPS/framework-res_intermediates/src/android/R.java:4999: warning 13: Field android.R.attr.singleLine: @Deprecated annotation and @deprecated comment do not match host Java: apicheck (out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/classes) Install: out/host/linux-x86/framework/apicheck.jar Copy: apicheck (out/host/linux-x86/obj/EXECUTABLES/apicheck_intermediates/apicheck) Install: out/host/linux-x86/bin/apicheck Checking API: checkapi-last frameworks/base/api/3.xml:253614: error 1: required string: "implements" ****************************** You have tried to change the API from what has been previously released in an SDK. Please fix the errors listed above. ****************************** make: *** [out/target/common/obj/PACKAGING/checkapi-last-timestamp] Error 38 * --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
