Android Build Failed due to plugin kotlin-android not found
saadi-ninjasCode opened this issue · 2 comments
Current behavior
After installing yarn add @shopify/react-native-performance
When trying to run the android app. I am getting the following error in android studio ( Electric Eel )
Plugin with id 'kotlin-android' not found
A screenshot is also attached
While the kotlin version is mentioned in my project gradle
kotlinVersion = "1.6.0"
Platform:
- Android
Packages
Which packages are affected by the issue?
- @shopify/react-native-performance
- @shopify/react-native-performance-navigation
Environment
package | version |
---|---|
@shopify/react-native-performance | 4.1.2 |
@shopify/react-native-performance-navigation | 3.0.0 |
@react-navigation/native | 6.1.2 |
@react-navigation/stack | 6.3.11 |
react-native | 0.71.1 |
Hi, @saadi-ninjasCode – I had the same issue and worked around it by applying the advice suggested in the following article: https://sebhastian.com/plugin-with-id-kotlin-android-not-found
The same change might need to be made to the package itself but it provides a workaround for now.
Hi, @saadi-ninjasCode – I had the same issue and worked around it by applying the advice suggested in the following article: https://sebhastian.com/plugin-with-id-kotlin-android-not-found
The same change might need to be made to the package itself but it provides a workaround for now.
Thanks. I fixed that by following the changes
add following line in android/gradle
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
while kotlinVersion is mentioned in the same file under the ext section.