http://www.rover12421.com/2013/06/30/android-4-2-2_r1-sdk-compile-error-resolution.html
online-gcm-ref
错误信息
Docs droiddoc: out/target/common/docs/online-sdk
DroidDoc took 278 sec. to write docs to out/target/common/docs/online-sdk
Docs droiddoc: out/target/common/docs/ds
DroidDoc took 272 sec. to write docs to out/target/common/docs/ds
Docs droiddoc: out/target/common/docs/online-gcm-ref
javadoc: error - No packages or classes specified.
usage: javadoc [options] [packagenames] [sourcefiles] [@files]
-overview <file> Read overview documentation from HTML file
-public Show only public classes and members
-protected Show protected/public classes and members (default)
-package Show package/protected/public classes and members
-private Show all classes and members
-help Display command line options and exit
-doclet <class> Generate output via alternate doclet
-docletpath <path> Specify where to find doclet class files
-sourcepath <pathlist> Specify where to find source files
-classpath <pathlist> Specify where to find user class files
-exclude <pkglist> Specify a list of packages to exclude
-subpackages <subpkglist> Specify subpackages to recursively load
-breakiterator Compute 1st sentence with BreakIterator
-bootclasspath <pathlist> Override location of class files loaded
by the bootstrap class loader
-source <release> Provide source compatibility with specified release
-extdirs <dirlist> Override location of installed extensions
-verbose Output messages about what Javadoc is doing
-locale <name> Locale to be used, e.g. en_US or en_US_WIN
-encoding <name> Source file encoding name
-quiet Do not display status messages
-J<flag> Pass <flag> directly to the runtime system
1 error
make: *** [out/target/common/docs/online-gcm-ref-timestamp] Error 45
解决方案
已知问题: https://android-review.googlesource.com/#/c/54452/1/src/source/known-issues.mdcd frameworks/base
git revert 5f9922d7c3bce158e4c7a58929d4075e7c91e32e
couldn't locate source file
错误信息
Package android-support-v7-gridlayout.jar: out/target/common/obj/PACKAGING/android-support-v7-gridlayout_intermediates/android-support-v7-gridlayout.jar
Package SDK: out/host/linux-x86/sdk/android-sdk_eng.mcg_linux-x86.zip
SDK: warning: including GNU target out/target/product/generic_x86/system/lib/libgccdemangle.so
development/build/sdk.atree:250: couldn't locate source file: system/app/ConnectivityTest.apk
development/build/sdk.atree:251: couldn't locate source file: system/app/GpsLocationTest.apk
make: *** [out/host/linux-x86/sdk/android-sdk_eng.mcg_linux-x86.zip] Error 44
原文解决方案
source build/envsetup.sh
lunch sdk-eng
make sdk
我的解决方案
我下载的代码里没有sdk-eng的配置(lunch按Tab找不到)。. build/envsetup.sh
lunch full_x86-eng
make sdk -j1 # if -jX(X>1), stop at Docs droiddoc: forever
development$ git diff build/sdk.atree
diff --git a/build/sdk.atree b/build/sdk.atree
index fe9c3cf..51ded55 100644
--- a/build/sdk.atree
+++ b/build/sdk.atree
@@ -247,5 +247,5 @@ ${OUT_DIR}/target/common/obj/PACKAGING/android-support-v7-gridlayout_intermediat
# Tests Component
##############################################################################
framework/layoutlib-tests.jar tests/libtests/layoutlib-tests.jar
-system/app/ConnectivityTest.apk tests/emulator-test-apps/ConnectivityTest.apk
-system/app/GpsLocationTest.apk tests/emulator-test-apps/GpsLocationTest.apk
+#system/app/ConnectivityTest.apk tests/emulator-test-apps/ConnectivityTest.apk
+#system/app/GpsLocationTest.apk tests/emulator-test-apps/GpsLocationTest.apk