Resolve error ':react-native-camera-kit:compileDebugKotlin'

This commit is contained in:
DIBYAJYOTI MISHRA 2021-12-09 12:32:04 +05:30 committed by GitHub
parent f288d5bf83
commit 7ffb6095be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ Add the `kotlin_version` to `buildscript.ext`
buildscript {
ext {
...
kotlin_version = '1.4.10'
kotlin_version = '1.5.10'
}
```
@ -35,6 +35,7 @@ Add the Kotlin classpath to `buildscript.dependencies`
```
dependencies {
...
classpath("com.android.tools.build:gradle:7.0.2") // or recent
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
}
```
@ -47,3 +48,9 @@ Add Kotlin imports
apply plugin: "kotlin-android"
apply plugin: "kotlin-android-extensions"
```
3, Open AndroidManifest.xml and add the following line activity:
```
android:exported="true"
```