6
我按照這個頁面學習「androidStudio下的NDK設置」。NDK for AndroidStudio
http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/
但我面對的一個問題,當我與配置NDK gradle.here是錯誤消息。 有人幫我嗎?
錯誤:(20,0)未找到搖籃DSL方法:「NDK()」 可能的原因:
我按照這個頁面學習「androidStudio下的NDK設置」。NDK for AndroidStudio
http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/
但我面對的一個問題,當我與配置NDK gradle.here是錯誤消息。 有人幫我嗎?
錯誤:(20,0)未找到搖籃DSL方法:「NDK()」 可能的原因:
我有這個問題,按照此博客的步驟解決它: http://ph0b.com/new-android-studio-ndk-support/
,看着這個項目的源代碼: https://github.com/googlesamples/android-ndk/tree/master/hello-jni
我希望幫助。
哪個版本的gradle android插件使用?你必須至少使用0.7.3版(已經有一年了),並且ndk {}塊必須在defaultConfig下:'android {defaultConfig {ndk {}}}' – ph0b 2015-04-02 08:57:35
@ ph0b非常感謝! – 2015-12-30 05:40:56