Android的工作室:如何删除或从项目生成关闭Javadoc一代? [英] Android Studio: How to remove or disable javadoc generation from project build?

查看:687
本文介绍了Android的工作室:如何删除或从项目生成关闭Javadoc一代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个第三方SDK(脸谱)引起​​我的Andr​​oid应用程序的构建失败,因为它的javadoc不能创建!这是Android的1.2工作室RC0的闪亮的新功能之一,因为一切都在更新之前完美。
这里是确切的错误信息:

A third party SDK (Facebook) causes the build of my Android App to fail because its javadocs can not be created! This is one of the shiny new features of Android Studio 1.2 RC0, as everything worked perfectly before the update. Here's the exact error message:

22:39:55.176 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
22:39:55.176 [ERROR] [org.gradle.BuildExceptionReporter] 
22:39:55.177 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
22:39:55.177 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':facebook-sdk:androidJavadocs'.
22:39:55.177 [ERROR] [org.gradle.BuildExceptionReporter] > Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/..../project/libraries/facebook-android-sdk/facebook/build/tmp/androidJavadocs/javadoc.options'

现在我不关心Facebook的的javadoc了!所以,我有什么做的,从构建删除Javadoc生成Facebook的SDK的?即我怎样才能获得该项目编译并再次执行?结果
任何意见是值得欢迎的,谢谢!

Now I don't care about the Facebook javadocs at all! So what do I have to do to remove the javadoc generation of the Facebook SDK from the build? I.e. How can I get the project to compile and execute again?
Any advice is welcome, thank you!

推荐答案

找到解决方案在这里:
https://bitbucket.org/hvisser/android-apt/issue/35/$p$pvent-facebook-module-to-compile
我过去的这行: tasks.findByPath(:Facebook的:androidJavadocs)。启用=假在我的build.gradle文件

Found the solution here: https://bitbucket.org/hvisser/android-apt/issue/35/prevent-facebook-module-to-compile I am past this line:tasks.findByPath(":facebook:androidJavadocs").enabled = false in my build.gradle file

这篇关于Android的工作室:如何删除或从项目生成关闭Javadoc一代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆