안드로이드 스튜디오에서 교육예제 lab403-DeviceAPI를 열면 첨부파일과 같은 오류가 발생합니다.
- 작성자 :
- 김*길
- 작성일 :
- 2025-01-20 11:34:52
- 조회수 :
- 220
- 구분 :
- 모바일 / 기타
- 진행상태 :
- 완료
Q
전자정부 표준프레임워크 4.2.0 교육 중
Device API 실습에서
안드로이드 스튜디오에서 lab403-DeviceAPI 프로젝트를 open 하면 첨부파일 스크린샷 2025-01-20 105109.png 과 같이 오류가 발생합니다.
메시지 내용으로 봐서는 'C:\eGovFrame-4.2.0\bin\Window-SDK' 에 있는 SDK를 사용한다는데 왜 에러가 발생하는 것인지 모르겠습니다.
local.properties 파일에는
sdk.dir=C\:\\eGovFrame-4.2.0\\bin\\Window-SDK
로 잘 되어 있습니다.
메시지는 다음과 같이 창이 나타났습니다.
(주의)-----
Multiple Gradle daemons might be spawned because the Gradle JDK and JAVA_HOME locations are different.
Project 'lab403-DeviceAPI' is using the following JDK location when running Gradle: 'C:/Users/USER/.jdks/corretto-11.0.25'
The system environment variable JAVA_HOME is: 'C:\Program Files\java\jdk8u402-b06' If you dont need to use different paths (or if JAVA_HOME is undefined), you can avoid spawning multiple daemons by setting JAVA_HOME and the JDK location to the same path.
More info...
Select the Gradle JDK location
Do not show this warning again
----------
(오류)-----
Gradle sync failed in 5 s 102 ms
----------
(정보)-----
Gradle sync started
----------
(정보)-----
The IDE has detected Microsoft Defender with Real-Time Protection enabled. It might severely degrade IDE performance. It is recommended to make sure the following paths are added to the Defender folder exclusion list:
C:\eGovFrame-4.2.0\bin\Window-SDK
C:\eGovFrame-4.2.0\workspace.edu\lab403-DeviceAPI
C:\Users\USER\.gradle
C:\Users\USER\AppData\Local\Google\AndroidStudio2024.2
If you previously excluded them either automatically or manually, please select "Ignore for this project". Note: running "Automatically" will ask for administrative privileges.
----------
Device API 실습에서
안드로이드 스튜디오에서 lab403-DeviceAPI 프로젝트를 open 하면 첨부파일 스크린샷 2025-01-20 105109.png 과 같이 오류가 발생합니다.
메시지 내용으로 봐서는 'C:\eGovFrame-4.2.0\bin\Window-SDK' 에 있는 SDK를 사용한다는데 왜 에러가 발생하는 것인지 모르겠습니다.
local.properties 파일에는
sdk.dir=C\:\\eGovFrame-4.2.0\\bin\\Window-SDK
로 잘 되어 있습니다.
메시지는 다음과 같이 창이 나타났습니다.
(주의)-----
Multiple Gradle daemons might be spawned because the Gradle JDK and JAVA_HOME locations are different.
Project 'lab403-DeviceAPI' is using the following JDK location when running Gradle: 'C:/Users/USER/.jdks/corretto-11.0.25'
The system environment variable JAVA_HOME is: 'C:\Program Files\java\jdk8u402-b06' If you dont need to use different paths (or if JAVA_HOME is undefined), you can avoid spawning multiple daemons by setting JAVA_HOME and the JDK location to the same path.
More info...
Select the Gradle JDK location
Do not show this warning again
----------
(오류)-----
Gradle sync failed in 5 s 102 ms
----------
(정보)-----
Gradle sync started
----------
(정보)-----
The IDE has detected Microsoft Defender with Real-Time Protection enabled. It might severely degrade IDE performance. It is recommended to make sure the following paths are added to the Defender folder exclusion list:
C:\eGovFrame-4.2.0\bin\Window-SDK
C:\eGovFrame-4.2.0\workspace.edu\lab403-DeviceAPI
C:\Users\USER\.gradle
C:\Users\USER\AppData\Local\Google\AndroidStudio2024.2
If you previously excluded them either automatically or manually, please select "Ignore for this project". Note: running "Automatically" will ask for administrative privileges.
----------
환경정보
-
- OS 정보 : windows 11 Pro / 23H2
- 표준프레임워크 버전 : 4.2.0
- JDK(JRE) 정보 : jdk8u402-b06
- WAS 정보 :
- DB 정보 :
- 기타 환경 정보 :
A
안녕하세요.
표준프레임워크센터입니다.
해당 오류는 SDK가 있는 폴더 위치를 찾지 못해 생긴 문제로 보입니다.
File > Invalidate Caches/Restart 을 눌러
캐시 삭제 후 재시작해보시기 바랍니다.
지속적으로 문제 발생 시
File > Settings > Language & Frameworks 에서
Android SDK Location의 위치가 다운로드 받으신 Window-SDK가 맞는지 확인하신 후
잘못 지정되어있다면 경로를 제대로 지정해주셔야하며
경로에 문제가 없어도 지속적으로 오류가 발생하시는 경우
SDK Platforms 탭에서 SDK를 새로 다운로드 받아 설정하여 진행하셔도 무방합니다.
교육상 사용된 버전은 Android 13.0 ("Tiramisu") 버전입니다
관련 사항은 교육교재 "03.[참고]안드로이드_스튜디오_설치_및_설정_방법" 의 9페이지를 참조하시기 바랍니다.
감사합니다.
표준프레임워크센터입니다.
해당 오류는 SDK가 있는 폴더 위치를 찾지 못해 생긴 문제로 보입니다.
File > Invalidate Caches/Restart 을 눌러
캐시 삭제 후 재시작해보시기 바랍니다.
지속적으로 문제 발생 시
File > Settings > Language & Frameworks 에서
Android SDK Location의 위치가 다운로드 받으신 Window-SDK가 맞는지 확인하신 후
잘못 지정되어있다면 경로를 제대로 지정해주셔야하며
경로에 문제가 없어도 지속적으로 오류가 발생하시는 경우
SDK Platforms 탭에서 SDK를 새로 다운로드 받아 설정하여 진행하셔도 무방합니다.
교육상 사용된 버전은 Android 13.0 ("Tiramisu") 버전입니다
관련 사항은 교육교재 "03.[참고]안드로이드_스튜디오_설치_및_설정_방법" 의 9페이지를 참조하시기 바랍니다.
감사합니다.