Error: Your project contains C++ files but it is not using a supported native build system.

解決方案
這個是由於我們的移植的代碼中包含JNI相關的代碼,需要在AndroidStudio中設置。

第一步:在gradle.properties的末尾加上

Android.useDeprecatedNdk=true

第二步:在build.gradle的android中加入

sourceSets{
main{
jni.srcDirs=[]
}
}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章