Closed gloredo closed 1 year ago
Downgrading kotlinVersion
to 1.4.2
is not a solution:
export default {
...
plugins: [
[
'expo-build-properties',
{
android: {
kotlinVersion: '1.4.2',
},
},
],
],
}
Returns
Error: `android.kotlinVersion` needs to be at least version 1.6.10.
That's because you're trying to downgrade the kotlinVersion
instead of upgrading it on the lib. Using patch-package
, go to ./node_modules/react-native-text-input-mask/android/build.gradle
and on buildscript
change kotlinVersion
to 1.6.10
Edit: No need to use patch-package
, just edit kotlinVersion
of your project directly if it's bareflow, if it's managed just do this:
{
"expo": {
"plugins": [
[
"expo-build-properties",
{
"android": {
"kotlinVersion": "1.6.10"
}
}
]
]
}
}
@gerzonc wow, I didn't know the patch-package
, very cool and it worked. Using expo-build-properties
I got the same error, I think it's 1.6.x
by default.
Closing as unresolved why kotlin version needs to be updated.
Full error log