如何在使用Gradle时禁用代码分析?

时间:2018-05-07 01:54:10

标签: java android react-native gradle react-native-android

我正在使用React Native构建Android应用。 React Native利用Gradle构建特定于Android的Java代码。出于某种原因,我在尝试构建项目时不断收到以下错误:

Note: C:\cygwin64\home\james\code\winescan\Prototype\node_modules\react-native-blur\android\src\main\java\com\cmcewen\blurview\BlurringView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:react-native-blur:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-blur:compileReleaseJavaWithJavac'.
> Could not open local class set analysis write cache (C:\cygwin64\home\james\code\winescan\Prototype\android\.gradle\2.14.1\tasks\_react-native-blur_compileReleaseJavaWithJavac\localClassSetAnalysis).
   > java.io.FileNotFoundException: C:\cygwin64\home\james\code\winescan\Prototype\android\.gradle\2.14.1\tasks\_react-native-blur_compileReleaseJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock (Access is denied)

使用不推荐的Java API的代码由第三方库提供,因此它不受我的控制。我想让Gradle禁用这些第三方库的代码分析;我怎样才能做到这一点?感谢。

0 个答案:

没有答案