6
วิธีเพิ่ม -Xlint: ไม่ถูกตรวจสอบในโครงการ Android Gradle ของฉัน
ฉันพยายามเพิ่มสิ่งต่อไปนี้ในbuild.gradleไฟล์รูท: subprojects { gradle.projectsEvaluated { tasks.withType(Compile) { options.compilerArgs << "-Xlint:unchecked -Xlint:deprecation" } } } แต่ฉันได้รับสิ่งนี้: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':Libraries:ActionBarSherlock:compileRelease'. > invalid flag: -Xlint:unchecked -Xlint:deprecation ผมทำอะไรผิดหรือเปล่า?