我收到以下錯誤運行gradle 6,7,8時,設置jdk8的路徑是什麼意思?
Information:Gradle tasks [:omniNotes:assembleDebug]
Warning:Dependency commons-logging:commons-logging:1.1.3 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency commons-logging:commons-logging:1.1.3 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
:omniNotes:preBuild UP-TO-DATE
:omniNotes:preDebugBuild UP-TO-DATE
:omniNotes:checkDebugManifest
:omniNotes:preReleaseBuild UP-TO-DATE
:omniNotes:prepareBeBillingtonCalendarRecurrencepickerLibrary111Library UP-TO-DATE
:omniNotes:prepareChAcraAcra470RC1Library UP-TO-DATE
:omniNotes:prepareComAndroidSupportAnimatedVectorDrawable2321Library UP-TO-DATE
:omniNotes:prepareComAndroidSupportAppcompatV72321Library UP-TO-DATE
:omniNotes:prepareComAndroidSupportDesign2321Library UP-TO-DATE
:omniNotes:prepareComAndroidSupportRecyclerviewV72321Library UP-TO-DATE
:omniNotes:prepareComAndroidSupportSupportV42321Library UP-TO-DATE
:omniNotes:prepareComAndroidSupportSupportVectorDrawable2321Library UP-TO-DATE
:omniNotes:prepareComArtemzinRxjavaProguardRules10142Library UP-TO-DATE
:omniNotes:prepareComGetbaseFloatingactionbutton1101Library UP-TO-DATE
:omniNotes:prepareComGithubAfollestadMaterialDialogsCommons0856Library UP-TO-DATE
:omniNotes:prepareComGithubAfollestadMaterialDialogsCore0856Library UP-TO-DATE
:omniNotes:prepareComGithubFedericoiosueChecklistview313Library UP-TO-DATE
:omniNotes:prepareComGithubFedericoiosuePixlui25Library UP-TO-DATE
:omniNotes:prepareComGithubFedericoiosueSimpleGallery120Library UP-TO-DATE
:omniNotes:prepareComGithubFlavienlaurentDatetimepickerLibrary002Library UP-TO-DATE
:omniNotes:prepareComGithubGabrielemariottiChangeloglibChangelog200Library UP-TO-DATE
:omniNotes:prepareComGithubPaolorotoloAppintro130Library UP-TO-DATE
:omniNotes:prepareComGoogleAndroidGmsPlayServicesBase810Library UP-TO-DATE
:omniNotes:prepareComGoogleAndroidGmsPlayServicesBasement810Library UP-TO-DATE
:omniNotes:prepareComGoogleAndroidGmsPlayServicesLocation810Library UP-TO-DATE
:omniNotes:prepareComGoogleAndroidGmsPlayServicesMaps810Library UP-TO-DATE
:omniNotes:prepareComLarswerkmanHoloColorPicker14Library UP-TO-DATE
:omniNotes:prepareComNhaarmanListviewanimationsLibCore310Library UP-TO-DATE
:omniNotes:prepareComNhaarmanListviewanimationsLibManipulation310Library UP-TO-DATE
:omniNotes:prepareComPnikosisMaterialishProgress15Library UP-TO-DATE
:omniNotes:prepareComPushbulletAndroidExtensions104Library UP-TO-DATE
:omniNotes:prepareComSquareupLeakcanaryLeakcanaryAndroid13Library UP-TO-DATE
:omniNotes:prepareComTbruyelleRxpermissionsRxpermissions042Library UP-TO-DATE
:omniNotes:prepareDeKeyboardsurferAndroidWidgetCrouton184Library UP-TO-DATE
:omniNotes:prepareIoNlopezSmartlocationLibrary320Library UP-TO-DATE
:omniNotes:prepareIoReactivexRxandroid101Library UP-TO-DATE
:omniNotes:prepareMeZhanghaiAndroidMaterialprogressbarLibrary114Library UP-TO-DATE
:omniNotes:prepareDebugDependencies
:omniNotes:compileDebugAidl UP-TO-DATE
:omniNotes:compileDebugRenderscript UP-TO-DATE
:omniNotes:generateDebugBuildConfig UP-TO-DATE
:omniNotes:generateDebugAssets UP-TO-DATE
:omniNotes:mergeDebugAssets UP-TO-DATE
:omniNotes:generateDebugResValues UP-TO-DATE
:omniNotes:generateDebugResources UP-TO-DATE
:omniNotes:mergeDebugResources UP-TO-DATE
:omniNotes:processDebugManifest UP-TO-DATE
:omniNotes:processDebugResources UP-TO-DATE
:omniNotes:generateDebugSources UP-TO-DATE
:omniNotes:compileDebugJavaWithJavac FAILED
Error:Execution failed for task ':omniNotes:compileDebugJavaWithJavac'.
當用java 5,6或7的gradle運行,必須將路徑設置爲jdk8,無論是與屬性retrolambda.jdk或環境變量JAVA8_HOME
Information:BUILD FAILED
Information:Total time: 13.861 secs
Information:1 error
Information:2 warnings
Information:See complete output in console
當前您正在處理哪個版本的'java'? @'ambharath –
@VikrantKashyap jdk1.7.0_51 – 1ambharath
這是您的第一個構建,還是您曾經成功構建過? @ 1ambharath –