我的構建最近停止了爲開源gradle/android項目工作。直到今天(2016年10月10日),他們一直工作得很好。我在gradle和gradle android插件的多個版本(在travis上)運行構建矩陣。從本質上講,它現在在gradle 3.0和3上都失敗了,都是用gradle android 2.2.0插件。其他版本使用不同的android插件是可以的。這只是2.2.0插件失敗。Android aar's已停止使用extractDebugAnnotations com/intellij/psi/PsiJavaFile構建Android
是令我感到困惑的部分是錯誤信息
:hello-world-aar:preBuild UP-TO-DATE
:hello-world-aar:preDebugBuild UP-TO-DATE
:hello-world-aar:checkDebugManifest
:hello-world-aar:preDebugAndroidTestBuild UP-TO-DATE
:hello-world-aar:preDebugUnitTestBuild UP-TO-DATE
:hello-world-aar:preReleaseBuild UP-TO-DATE
:hello-world-aar:preReleaseUnitTestBuild UP-TO-DATE
:hello-world-aar:prepareOrgOsmdroidOsmdroidAndroid541ReleaseLibrary
:hello-world-aar:prepareDebugDependencies
:hello-world-aar:compileDebugAidl
:hello-world-aar:compileDebugNdk UP-TO-DATE
:hello-world-aar:compileLint
:hello-world-aar:copyDebugLint SKIPPED
:hello-world-aar:compileDebugRenderscript
:hello-world-aar:generateDebugBuildConfig
:hello-world-aar:generateDebugResValues
:hello-world-aar:generateDebugResources
:hello-world-aar:mergeDebugResources
:hello-world-aar:processDebugManifest
:hello-world-aar:processDebugResources
:hello-world-aar:generateDebugSources
:hello-world-aar:incrementalDebugJavaCompilationSafeguard
:hello-world-aar:compileDebugJavaWithJavac
:hello-world-aar:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:hello-world-aar:extractDebugAnnotations FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':hello-world-aar:extractDebugAnnotations'.
> com/intellij/psi/PsiJavaFile
再次,這是在Android檔案(AAR)項目。我已經搜索過,並且無法在該課堂上找到太多內容。它在我的代碼中沒有被引用。我最好的猜測是,谷歌改變了一個支持庫或一些打破了一些東西。我也通過travis從命令行構建。我不知道intellij的東西來自哪裏。
我開始看到這個今天還一個我詹金斯建立了幾個不同的AAR項目中。 – sparkym3
我從使用AIDE for Android的Gradle構建中看到它。問題剛剛開始不久前... – jb15613
https://bintray.com/android/android-tools/com.android.tools.build.gradle看起來像一個新版本被推出中心,2.2.1 – spy