| 양쪽 이전 판이전 판다음 판 | 이전 판 |
| android_studio [2019/08/31 03:11] – lindol | android_studio [2022/10/09 03:54] (현재) – lindol |
|---|
| * https://stackoverflow.com/questions/300639/use-of-noverify-when-launching-java-apps | * https://stackoverflow.com/questions/300639/use-of-noverify-when-launching-java-apps |
| * https://stackoverflow.com/questions/45936475/why-noverify-added-at-the-end-of-jvm-arguments | * https://stackoverflow.com/questions/45936475/why-noverify-added-at-the-end-of-jvm-arguments |
| | |
| | ==== major version 53 is newer than 52 ==== |
| | |
| | <code Bash> |
| | > Task :app:compileDebugJavaWithJavac |
| | warning: /Users/lindol/.gradle/caches/transforms-2/files-2.1/0147da73be67184dae3524a6fab40462/jetified-basic.jar(kr/lindol/test/Calc.class): major version 53 is newer than 52, the highest major version supported by this compiler. |
| | It is recommended that the compiler be upgraded. |
| | 1 warning |
| | /Users/lindol/.gradle/caches/transforms-2/files-2.1/0147da73be67184dae3524a6fab40462/jetified-basic.jar(kr/lindol/test/Calc.class): major version 53 is newer than 52, the highest major version supported by this compiler. |
| | |
| | </code> |
| | |
| | 원인: 프로젝트에서 사용하는 class (여기서는 basic.jar 에 포함된 Calc 클래스) 가 현재 컴파일러 (jdk8) 보다 상위의 컴파일러(jdk9)에서 컴파일 됨. |
| | |
| | 해결방법: jdk8로 .jar library 소스 재빌드?? |
| | |
| | -Xlint:deprecation |
| | |
| | <code bash> |
| | > Task :app:compileDebugJavaWithJavac |
| | Note: /Users/lindol/Job/AndroidStudioProjects/My-Cashbook/MyCashbook/app/src/main/java/kr/lindol/mycashbook/list/CashLogListFragment.java uses or overrides a deprecated API. |
| | Note: Recompile with -Xlint:deprecation for details. |
| | </code> |
| | |
| | 소스 구현에 deprecated API 를 사용한 부분이 있다. |
| | 자세한 내용을 확인 하려면 -Xlint:deprecation을 추가해서 빌드하라는 의미 |
| | |
| | 안드로이드 스튜디오에서는 아래처럼 app/build.gradle 에 추가하면 자세한 내용을 확인 할 수 있다. |
| | |
| | <code> |
| | allprojects { |
| | |
| | ... |
| | |
| | gradle.projectsEvaluated { |
| | tasks.withType(JavaCompile) { |
| | options.compilerArgs << "-Xlint:deprecation" |
| | } |
| | } |
| | } |
| | </code> |
| | |
| | 출처: https://stackoverflow.com/questions/49711773/how-to-recompile-with-xlintdeprecation |
| | |
| | |