How do you set APP_PLATFORM in Gradle NDK plug-in in Android Studio?

房东的猫 提交于 2019-12-05 15:51:01
mstorsjo

You can set this:

android.ndk {
   platformVersion = "19"
}

See https://stackoverflow.com/a/33982735/3115956 for details on this. (In practice, I think your library is built targeting android-23, which has the same effect as targeting android-21 - compileSdkVersion is the one that affects it (for both the java and native code, unless the native one is overridden).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!