标签:根目录 compile col UNC uil pil app ati builds
问题:android studio编译项目时出现:
Error:(12, 24) 警告: [deprecation] android.hardware中的Camera已过时
解决:(只是让其不提示)
1.app的 build.gradle中
1 android { 2 ... 3 lintOptions { 4 checkReleaseBuilds false 5 abortOnError false 6 7 } 8 }
2.根目录的build.gradle中
allprojects { ... gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" } } }
Error:(12, 24) 警告: [deprecation] android.hardware中的Camera已过时.android
标签:根目录 compile col UNC uil pil app ati builds
原文地址:https://www.cnblogs.com/tomarsNi/p/9428668.html