因为ndk 14版编译出来的库体积太大了,我的deepin盘分得太小,我就改用ndk 10re版本,android studio修改了ndk后,工程报如下错误,不能clean。
Parameter specified as non-null is null: method com.android.build.gradle.internal.cxx.configure.JsonGenerationVariantConfiguration., parameter ndkVersion
查了下
https://stackoverflow.com/questions/52802134/android-studio-3-2-1-ndk-r10e-sync-fail
- Download NDK version 11 or higher
- Copy the source.properties from the downloaded NDK root folder and paste it into the NDK r10e folder
- Modify the source.properties Pkg.Revision to match the x.y.z format (optional)
我是直接在windows 的ndk16里面拷贝一个放到deepin的ndk 10根目录下,然后android工程可以clean了。
https://forum.cocos.com/t/android-studio/70658/5 这里提到的问题在我这边没事,我没有修改Pkg.Revision值。