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
相關文章
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- Flutter: 解決執行時錯誤 java.lang.UnsatisfiedLinkError...couldn't find "libflutter.so"FlutterJavaError
- Idea編譯錯誤解決辦法Idea編譯
- PHP編譯安裝時常見錯誤解決辦法,php編譯常見錯誤PHP編譯
- linux解決“XXX is not in the sudoers file”錯誤Linux
- 解決jpa查詢時,Unable to locate Attribute with the the given name錯誤
- 【已解決】報錯 NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driverAI
- Android編譯通過,執行編譯錯誤問題總結Android編譯
- 解決ubuntu系統“XXX is not in the sudoers file”錯誤Ubuntu
- 解決The jar file has no source attachment問題JAR
- ipvs編譯錯誤編譯
- Android使用cmake編譯串列埠通訊.so檔案報錯cannot locate symbol "tcgetattr"Android編譯串列埠Symbol
- Ubuntu 安裝包時提示錯誤E: Unable to locate package mysql-server錯誤 解決辦法UbuntuPackageMySqlServer
- Hugging Face 無法連線問題 OSError: We couldn‘t connect to ‘https://huggingface.co‘ to load this file 解決方案Hugging FaceErrorHTTP
- Android開發:Android虛擬機器啟動錯誤Can't find 'Linux version ' string in kernel image fileAndroid虛擬機Linux
- Android Studio 解決編譯報錯 Could not download aapt2-windows.jarAndroid編譯APTWindowsJAR
- 解決Ubuntu報錯 E: Unable to locate package yumUbuntuPackage
- opencv 編譯常見錯誤OpenCV編譯
- Hadoop常見錯誤及解決方案Hadoop
- IDEA報錯java: 編譯失敗: 內部 java 編譯器錯誤IdeaJava編譯
- Windows 下 Laravel Mix 資源編譯過程以及產生的錯誤解決WindowsLaravel編譯
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- 平臺配置及測試錯誤提示及解決方案
- iOS路上遇到的錯誤及解決辦法iOS
- Oracle 錯誤總結及問題解決 ORAOracle
- No bean named 'xxx' is defined錯誤,原因及解決方案Bean
- Oracle的TNS-12502 錯誤原因及解決Oracle
- ORA-39006錯誤原因及解決辦法
- AndroidStudio之NDK常見編譯錯誤Android編譯
- Include檔案易犯編譯錯誤編譯
- path_provider 編譯錯誤指導IDE編譯
- Ocelot錯誤解決
- 編譯Redis時報錯: jemalloc/jemalloc.h: No such file or directory編譯Redis
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- kaldi的編譯安裝與報錯解決方法編譯
- 【譯】使用 Source Link 提高除錯效率除錯
- iOS:The operation couldn’t be completed. (DVTCoreSimulatorAdditionsErrorDomain eiOSErrorAI
- Elasticsearch常見的5個錯誤及解決策略Elasticsearch
- 帝國CMS搬家常見錯誤及解決方法