問題:android studio編譯項目時出現:android
Error:(12, 24) 警告: [deprecation] android.hardware中的Camera已過期app
解決:(只是讓其不提示)gradle
1.app的 build.gradle中ui
1 android { 2 ... 3 lintOptions { 4 checkReleaseBuilds false 5 abortOnError false 6 7 } 8 }
2.根目錄的build.gradle中lua
allprojects { ... gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" } } }