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值。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值