사용자 도구

사이트 도구


android_studio

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
android_studio [2019/08/31 09:58] – add some shortcut information lindolandroid_studio [2022/10/09 12:54] (현재) lindol
줄 22: 줄 22:
  
 단어 단위로 뒤로 이동: Option(Alt) + -> 단어 단위로 뒤로 이동: Option(Alt) + ->
 +
 +show method signature: Command + P
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
줄 245: 줄 247:
   * 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
 +
 +
android_studio.1567213131.txt.gz · 마지막으로 수정됨: 2019/08/31 09:58 저자 lindol