1. cmake
as 2.3.1版本後使用cmake來配置native**的編譯,所以在這裡總結下cmake的常用配置:
新增引用路徑:
include_directories($/src/main/cpp/include)
新增待編譯模組:
add_library( # sets the name of the library.imagetargetsnative
# sets the library as a shared library.
shared
#shared output .so static output .a
# provides a relative path to your source file(s).新增已編譯好的模組:src/main/cpp/imagetargets.cpp
src/main/cpp/sampleutils.cpp
src/main/cpp/texture.cpp
)
add_library( vuforia shared imported )新增系統待鏈結模組:set_target_properties(vuforia properties imported_location $/src/main/jnilibs/$/libvuforia.so)
find_library( # sets the name of the path variable.log-lib
# specifies the name of the ndk library that
# you want cmake to locate.
log )
find_library( # sets the name of the path variable.
glesv2-libtarget_link_libraries( # specifies the target library.
imagetargetsnative
vuforia
# links the target library to the log library
# included in the ndk.$$
)
新增編譯引數和選擇編譯平台需要在build.grandle中進行配置:
externalnativebuild}ndk
Android Studio配置問題
1.gradle sync failed unable to start the daemon process.以為是配置檔案的內容問題,結果一開啟檔案,發現把properties單詞拼錯了,studio不認識也難怪t t 解決方案 在c user administrator gradle資料夾下,...
Android Studio 配置Gradle總結
2 報錯 error failed to open zip file.gradle s dependency cache may be corrupt this sometimes occurs after a network connection timeout.re download depen...
Android Studio啟動配置gradle
環境 debian 第一次建立android工程的時候,現配置gradle,但是一般會卡在?1 download gradle directly from 字樣解決方法 找到?1?網上還有其他的一些方法,比如複製檔案,修改環境變數之類的,也可以試試。另外,可以注意一下這個templates資料夾裡面...