Closed cojobs closed 1 month ago
Hi @cojobs. Amplify (and its dependencies) use Java 8 features, so if your minimum SDK is below 26 you need to enable core library desugaring for your app. This is covered in the install Amplify libraries section of the docs.
Here's an example:
// build.gradle.kts
android {
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
}
dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
}
This should resolve your issue. Please let us know if you have any other questions.
Thanks for the detailed answer, I'll give it a try!
Great. I'll close this issue but please feel free to open a new one if necessary.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Before opening, please confirm:
Language and Async Model
Kotlin, Kotlin - Coroutines
Amplify Categories
Analytics
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
https://docs.amplify.aws/android/start/project-setup/prerequisites/
Describe the bug
Running the app with amplify SDK V2.14.13 on Android OS version 7 and 7.1 devices immediately crashes.
The documentation https://docs.amplify.aws/android/start/project-setup/prerequisites/ specifies android 7.0 or later.
Does the amplify SDK only support Android 8.0 and above, contrary to what the guide documentation says? If not, could you please revise it to support from android 7.0 onwards?
(https://developer.android.com/reference/java/time/Duration says that the Duration class was added as of API level 26.)
Reproduction steps (if applicable)
Code Snippet
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response