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)

굵은 글씨가 추가한 파일들

이걸 왜 수동으로 해야하는지 이해 불가

Posted by 쵸코케키

블로그 이미지
chocokeki
쵸코케키

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.5
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 31

최근에 올라온 글

최근에 달린 댓글

글 보관함