라벨이 error인 게시물 표시

Android Studio Build Error

이미지
Android Studio(AS)로 새 프로젝트를 생성 후 초기 빌드 시 다음과 같은 에러가 발생한다. Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details. <해결방안> 모듈용 "build.gradle"파일을 열고 dependencies 영역에 다음을 추가하고 우측 상단의 "Sync Now"를 클릭한다.

swift compiler error : could not build objective-c module 'Firebase'

Google Firebase를 이용해서 Apple iOS 기기로 푸시 메시지를 보내기위해 작업중이다. Firebase에 iOS 앱을 추가하고 안내에 따라 진행을 하는 중 마지막 단계인 Firebase 코드를 추가하니 AppDelegate.swift파일의 import Firebase 라인에서 다음과 같은 에러가 발생했다. could not build objective-c module 'Firebase' google과 stackoverflow 검색을 해보니 역시나 많은 질문과 답변들이 있고 해결책들은 대동소이하지만 다음과 같다. Quit Xcode. Delete project's temp files located at  ~/Library/Developer/Xcode/DerivedData Delete  ProjectName.xcworkspace Delete  Podfile.lock  file and  Pods  folder Run  pod install . Open the newly created  ProjectName.xcworkspace  file and build. 이와 같은 방법으로 여러 차례 시도해 보았지만 해겨이 되지 않았는데 여기서 중요한 것은 6번이다. Xcode를 실행할때 Dock이나 Spotlight를 통해서 직접 실행하면 안되고  반드시 Finder에서 해당 프로젝트내에 있는 ProjectName.xcworkspace 파일을 더블클릭해서 Xcode를 실행해야 한다는 것이다. 이렇게 실행을 하니 오류가 바로 해결되고 빌드가 정상적으로 이루어졌다.