2016. 10. 26. 11:45 devel/etc
android studio - This file is not part of the project. Please include it in the appropriate build file (build.gradle, CMakeLists.txt or Android.mk etc.) and sync the project
This file is not part of the project. Please include it in the appropriate build file (build.gradle, CMakeLists.txt or Android.mk etc.) and sync the project
Android Studio 2.2.2 인데 단순하게 프로젝트에 c랑 h 파일을 New 메뉴를 통해 생성했는데
개발툴이 이놈들이 무슨 파일인지 아예 인지를 못 한다
게다가 일부 파일은 방금 추가한 C 파일 자체가 있는지 없는지 찾지를 못해 Project Files browser에 나타나지 않는다
Sync Now를 해도 전혀 소용이 없고 아예 linking 할 때 못 찾는다
->
CMakeLists.txt에 직접 수동으로 c 파일들을 써줘야 한다
cmake_minimum_required(VERSION 3.4.1)
add_library(i2c_test SHARED
i2c_core.c
i2c_func.c
i2c_test.c)
# Include libraries needed for i2c-test lib
target_link_libraries(i2c_test
android
log)
굵은 글씨가 추가한 파일들
이걸 왜 수동으로 해야하는지 이해 불가
'devel > etc' 카테고리의 다른 글
android studio 패키지 이름, 어플리케이션 이름 바꾸기 (0) | 2016.10.28 |
---|---|
beaglebone black device tree generator (0) | 2016.10.27 |
linux 1초 부팅 수정 방법 (0) | 2016.09.07 |
연산자 우선순위 헷갈리기 쉬운 예제 (0) | 2016.08.11 |
volatile 극혐 (0) | 2016.07.11 |