Android 4.2.2_r1 online-gcm-ref及couldn't locate source file编译错误解决

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.md
cd 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



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值