Ndk Android Studio Gradle?

2019-08-09 18:22发布

问题:

i am trying to integrate ndk project in my app.it is fine in eclipse.in Android Studio its giving error..

   C:\Android\sample\app\src\main\jni\libogg\bitwise.c:24:21: fatal error: 
  ogg/ogg.h: No such file or directory #include <ogg/ogg.h>                     ^
 compilation terminated.make.exe: ***        [C:\Android\sample\app\build\intermediates\ndk\debug\obj/local/arm64-v8a/objs/app/C_\Android\sample\app\src\main\jni\libogg\bitwise.o] Error 1

回答1:

Try Android Studio 1.3 at Canary channel which supports NDK fully. Reference: http://tools.android.com/download/studio/canary/latest