AndroidStudio导入极光推送JAR包Build错误
出现了这样的错误
Error:Execution failed for task ':app:compileDebugNdk'.
> Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.
设置android.useDeprecatedNdk=true
在 gradle.properties 后rebuild出现了这样的错误
> Warning:Native C/C++ source code is found, but it seems that NDK option is not configured. Note that if you have an Android.mk, it is not used for compilation. The recommended workaround is to remove the default jni source code directory by adding:
android {
sourceSets {
main {
jni.srcDirs = []
}
}
to build.gradle, manually compile the code with ndk-build, and then place the resulting shared object in src/main/jniLibs.
> Error:Execution failed for task ':app:compileDebugNdk'.
> NDK not configured.
> Download the NDK from http://developer.android.com/tools/sdk/ndk/.Then add ndk.dir=path/to/ndk in local.properties.
> (On Windows, make sure you escape backslashes, e.g. C:\\ndk rather than C:\ndk)
到底怎么回事啊啊,