Open George-field opened 2 weeks ago
Hi @George-field, can you share your android>build.gradle
file contents or just confirm that the kotlinVersion
is 1.9.22? From the error it might be that it was missed. Thank you.
Hi @Samaritan1011001, I've pasted the build.gradle contents below (I'm working on the same project):
buildscript {
ext {
kotlinVersion = "1.9.22"
buildToolsVersion = "34.0.0"
minSdkVersion = 26
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
ffmpegKitPackage = "https"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("com.google.gms:google-services:4.4.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}
apply plugin: "com.facebook.react.rootproject"
@George-field, is there any other or more details on the error message beyond what's in this issue? Also, can you share what version of Java you're currently on as well? Should be able to run java -version
on your CLI to check.
@George-field, is there any other or more details on the error message beyond what's in this issue? Also, can you share what version of Java you're currently on as well? Should be able to run
java -version
on your CLI to check.
Hey @Samaritan1011001 , thanks for getting back to us.
Java Version Details
openjdk version "17.0.9" 2023-10-17 LTS
OpenJDK Runtime Environment Zulu17.46+19-CA (build 17.0.9+8-LTS)
OpenJDK 64-Bit Server VM Zulu17.46+19-CA (build 17.0.9+8-LTS, mixed mode, sharing)
Are there any details you need? There is not much else I can give you aside from the logs above. I tried playing with the Kotlin version and setting classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
but this was more of wishful thinking
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Push Notifications
Amplify Version
v6
Amplify Categories
notifications
Backend
Other
Environment information
Describe the bug
When upgrading to the latest react native version and trying to build for android, I am getting the following error -
Specifically the issue seems to be with
Could not find org.jetbrains.kotlin:kotlin-serialization-compiler-plugin-embeddable:1.8.0
I have tried updating to the latest version of
@aws-amplify/rtn-push-notification
but the issue persists.While upgrading to react native version
0.74.0
I have been following the guide on what to change and I have implemented all of the android related changes mentioned hereExpected behavior
I expect the build to work or there be a guide on how to fix it in the React Native docs for amplify
Reproduction steps
Id imagine this is how you could recreate 1) Create a react native project on version
0.73.0
2) follow the android part of the react native upgrade guide here. 3) run build and the emulator locallyyou will get the error stated above.
Code Snippet
No response
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response