天天看點

ndk的source.properties問題

因為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

  1. Download NDK version 11 or higher
  2. Copy the source.properties from the downloaded NDK root folder and paste it into the NDK r10e folder
  3. 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值。