일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 그레이들
- DFS
- Python
- db
- 프로그래머스
- DP
- react
- 백준
- Redux
- BFS
- Graph
- 자바
- LeetCode
- 다이나믹 프로그래밍
- 리트코드
- java
- CS
- frontend
- network
- VIM
- Algorithm
- 알고리즘
- TypeScript
- 안드로이드
- Data Structure
- git
- vscode
- 동적 계획법
- Javascript
- Database
- Today
- Total
늘 겸손하게
안드로이드 cannot resolve symbol cannot resolve symbol '@integer/google_play_services_version' 본문
안드로이드 cannot resolve symbol cannot resolve symbol '@integer/google_play_services_version'
besforyou999 2021. 8. 18. 11:29
안녕하세요 besforyou 입니다
이번 글에서는 제목의 오류를 해결하는 방법에 대하여 소개하겠습니다
프로젝트의 코드를 다른 프로젝트에 복사했더니 AndroidManifest.xml의 meta-data, android:value="@integer/google_play_services_version"이 빨간색으로 뜨며 제목과 같은 오류를 출력하네요
이 문제의 원인은 라이브러리가 프로젝트에 제대로 링크되지 않았던가, google-play-services library version이 옛날 버전인 것입니다.
해결법
출처 : 구글 https://developers.google.com/android/guides/setup
Set up Google Play services | Google Developers
To develop an app using Google Play services APIs, set up your project with the relevant SDKs, which are available from the Google maven repository. For more detailed instructions, view the Android Studio page about how to update the SDK tools that your ap
developers.google.com
Gradle Scripts -> build.gradle(Module:...) -> dependencies 브라켓 안쪽에
implementation 'com.google.android.gms:play-services-location:18.0.0'
를 추가하고 sync gradle를 클릭하면 안드로이드 스튜디오가 자동으로 라이브러리를 링크시켜줍니다
'Programming > Android' 카테고리의 다른 글
안드로이드 블루투스 신호 강도(RSSI) 찾기 (0) | 2021.08.19 |
---|---|
안드로이드 스튜디오 그레이들 버전 바꾸기 (0) | 2021.08.18 |
안드로이드 디렉토리 속 파일 찾기 (0) | 2021.08.17 |
안드로이드 DownloadManager 로 Url 다운로드 (0) | 2021.08.17 |
안드로이드 홈 액티비티로 이동하기 (0) | 2021.08.13 |