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.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
相關文章
- couldn't set locale correctly報錯解決
- PHP編譯錯誤及解決辦法PHP編譯
- ios交叉比編譯android錯誤解決iOS編譯Android
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- Unable to locate package錯誤解決辦法Package
- Idea編譯錯誤解決辦法Idea編譯
- 編譯EJB出現錯誤的解決編譯
- Flutter: 解決執行時錯誤 java.lang.UnsatisfiedLinkError...couldn't find "libflutter.so"FlutterJavaError
- PHP編譯安裝時常見錯誤解決辦法,php編譯常見錯誤PHP編譯
- JNI命令列下編譯錯誤解決方案命令列編譯
- OpenCV1.0編譯錯誤解決辦法OpenCV編譯
- 編譯notepad++的錯誤解決編譯
- 執行無法解決的編譯錯誤編譯
- PHP原始碼包編譯安裝錯誤及解決方法彙總PHP原始碼編譯
- Linux Couldn’t resolve host 解決辦法Linux
- 關於收到localhost modprobe: modprobe: Can't locate module ethX的錯誤localhost
- 解決jpa查詢時,Unable to locate Attribute with the the given name錯誤
- ubuntu安裝軟體出現Unable to locate package錯誤解決UbuntuPackage
- Android Studio 編譯錯誤集錦Android編譯
- 錯誤:Dx unsupported class file version 52.0(解決)
- MySQL錯誤Incorrect file format解決方案薦MySqlORM
- TNS-04414 file error 錯誤解決Error
- 解決The jar file has no source attachment問題JAR
- VS 編譯錯誤編譯
- 【crontab】“bad minute”及“errors in crontab file, can't install”錯誤處理Error
- Ubuntu 安裝包時提示錯誤E: Unable to locate package mysql-server錯誤 解決辦法UbuntuPackageMySqlServer
- Android編譯通過,執行編譯錯誤問題總結Android編譯
- 【iOS報錯】“The operation couldn’t be completed (LaunchServicesError erroiOSError
- 【已解決】報錯 NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driverAI
- Android Studio:couldn't find .so檔案Android
- linux解決“XXX is not in the sudoers file”錯誤Linux
- Couldn't be opened because you don't have permission to view it 執行時報錯View
- 解決WiFi韌體編譯錯誤:STATION_INFO_ASSOC_REQ_IESWiFi編譯
- ipvs編譯錯誤編譯
- php編譯小錯誤PHP編譯
- 編譯PHP的錯誤編譯PHP
- Android使用cmake編譯串列埠通訊.so檔案報錯cannot locate symbol "tcgetattr"Android編譯串列埠Symbol
- can't assign requested address 錯誤解決