一、
htmlDir not a directory: out/target/common/docs/gen
/bin/bash: line 26: 21282 Killed LD_LIBRARY_PATH=out/host/linux-x86/lib javadoc \@out/target/product/sdkDemo/obj/JAVA_LIBRARIES/doc-comment-check_intermediates/droiddoc-src-list -J-Xmx768m -J-Djava.library.path=out/host/linux-x86/lib -quiet -doclet DroidDoc -docletpath out/host/linux-x86/framework/clearsilver.jar:out/host/linux-x86/framework/droiddoc.jar:out/host/linux-x86/framework/apicheck.jar -templatedir build/tools/droiddoc/templates-sdk -templatedir build/tools/droiddoc/templates -htmldir frameworks/base/docs/html -htmldir out/target/common/docs/gen -bootclasspath /home/yang/jdk1.6.0_27/lib/../jre/lib/rt.jar -classpath out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar -sourcepath frameworks/base/core/java:frameworks/base/graphics/java:frameworks/base/location/java:frameworks/base/media/java:frameworks/base/opengl/java:frameworks/base/sax/java:frameworks/base/telephony/java:frameworks/base/wifi/java:frameworks/base/vpn/java:frameworks/base/keystore/java:frameworks/base/voip/java:frameworks/base/ethernet/java:out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar -d out/target/common/docs/doc-comment-check -hdf page.build GINGERBREAD-eng.yang.20111016.204637 -hdf page.now "16 Oct 2011 20:46" -knowntags ./frameworks/base/docs/knowntags.txt -since ./frameworks/base/api/1.xml 1 -since ./frameworks/base/api/2.xml 2 -since ./frameworks/base/api/3.xml 3 -since ./frameworks/base/api/4.xml 4 -since ./frameworks/base/api/5.xml 5 -since ./frameworks/base/api/6.xml 6 -since ./frameworks/base/api/7.xml 7 -since ./frameworks/base/api/8.xml 8 -since ./frameworks/base/api/9.xml 9 -werror -hide 13 -overview frameworks/base/core/java/overview.html -hdf sdk.version 2.3 -hdf sdk.rel.id 1 -parsecomments
make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45
解决办法
卸载Ubuntu上的opensdk,命令:apt-get purge openjdk*。
注意:要使用命令进行卸载。
卸载完成后到官网上下载jdk6,在Ubuntu上安装完成后,设置jdk的环境变量。
我在解决这个问题的时候安装了:libsdl-dev。命令:apt-get libsdl-dev。
二、
error: undefined reference to '__cxa_end_cleanup'
error: undefined reference to '__gxx_personality_v0'
解决办法
STL_PATH=$(NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a
LOCAL_LDLIBS += -L$(STL_PATH) -lsupc++