博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
android 4.2.2_r1 SDK的一个错误
阅读量:7045 次
发布时间:2019-06-28

本文共 2261 字,大约阅读时间需要 7 分钟。

hot3.png

最近同步了android 4.2.2_r1版的源码,想编译sdk。

编译了几个小时后,突然出现关于javadoc的错误:
Docs droiddoc: out/target/common/docs/doc-comment-check
DroidDoc took 215 sec. to write docs to out/target/common/docs/doc-comment-check
Docs droiddoc: out/target/common/docs/online-sdk
DroidDoc took 170 sec. to write docs to out/target/common/docs/online-sdk
Docs droiddoc: out/target/common/docs/ds
DroidDoc took 147 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

解决办法:

在SOURCE_ROOT/frameworks/base目录下,使用git revert 5f9922d7c3bce158e4c7a58929d4075e7c91e32e 命令同步到另一个没有错的版本。

git revert 5f9922d7c3bce158e4c7a58929d4075e7c91e32e
error: Your local changes to 'Android.mk' would be overwritten by merge.  Aborting.
Please, commit your changes or stash them before you can merge.
解决办法:重命名Android.mk,就不会出现overwrite的error了.

转载于:https://my.oschina.net/kangchunhui/blog/130241

你可能感兴趣的文章
vector.size() vector.capacity size_type vector.reserve()
查看>>
我的友情链接
查看>>
Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
查看>>
那些年收藏的Android开源库集合(控件)
查看>>
crontab里shell脚本将top信息写入文件
查看>>
samba实现不同权限进入不同文件夹
查看>>
如何设计让用户成瘾的体验?(三)
查看>>
什么是Ajax
查看>>
Web前端——链接和表格使用规范
查看>>
2.6.18 32位环境 src.rpm包的使用
查看>>
Windows服务创建及安装
查看>>
我的友情链接
查看>>
【教程】Excel控件Spire.XLS 教程:在C#,VB.NET中添加Excel边框
查看>>
我的友情链接
查看>>
python-tag标记工具
查看>>
Python 学习练习之用户登录接口
查看>>
canvas制图
查看>>
【别人推荐】优秀博客、网站资源
查看>>
保税仓库
查看>>
linux帮助相关命令man、info、help
查看>>