从 react-native 0.63.4 升级到 0.64.0
我的步骤:
npx react-native run-android
到版本 0.64.0 - 此步骤成功 2.
npx react-native upgrade
- 这一步成功npx react-native run-android
- 此步骤失败,跟随 2 个错误 : 顺便说一句,在 iOS 模拟器上一切正常。
最佳答案
您需要添加 ndkVersion
到android/build.gradle
文件在 buildscript.ext
, 应该类似于
buildscript {
ext {
ndkVersion = xxx //<-- Add this
buildToolsVersion = xxx
minSdkVersion = xxx
compileSdkVersion = xxx
targetSdkVersion = xxx
}
...
关于android - 无法在额外属性扩展上获取属性 'ndkVersion',因为它不存在于... react-native 0.64.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66769340/