问题描述:
今天在调试程序的时候出现这个问题
如下:
Parameter specified as non-null is null: method com.android.build.gradle.internal.cxx.configure.JsonGenerationVariantConfiguration., parameter ndkVersion
解决方法:
NDK版本不适配的问题,高版本的NDK被使用时会被从source.properties文件获取NDK的版本号,你现在使用的NDK版本没有这个文件。
1.升级NDK版本到最新(需要重新编译可能遇到各种问题)。
2,临时方案,找到高版本的NDK版本复制source.properties文件到使用的NDK版本中,就可以解决这个问题。